summaryrefslogtreecommitdiffstats
path: root/views/metrics_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/metrics_gtk.cc')
-rw-r--r--views/metrics_gtk.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/views/metrics_gtk.cc b/views/metrics_gtk.cc
new file mode 100644
index 0000000..01be70e
--- /dev/null
+++ b/views/metrics_gtk.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "views/metrics.h"
+
+#include <gtk/gtk.h>
+
+namespace views {
+
+int GetDoubleClickInterval() {
+ GdkDisplay* display = gdk_display_get_default();
+ return display ? display->double_click_time : 500;
+}
+
+int GetMenuShowDelay() {
+ return kDefaultMenuShowDelay;
+}
+
+} // namespace views