summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 18:11:31 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 18:11:31 +0000
commitaadcd1d93fc5f41fad7ccd22b97215bdd6bb7d5d (patch)
tree37adf06afb5c8a8564f47d31854be6ad414ac2f7 /views
parentcb9a0c92dc61f953a5593a773944a47fd70ecdf7 (diff)
downloadchromium_src-aadcd1d93fc5f41fad7ccd22b97215bdd6bb7d5d.zip
chromium_src-aadcd1d93fc5f41fad7ccd22b97215bdd6bb7d5d.tar.gz
chromium_src-aadcd1d93fc5f41fad7ccd22b97215bdd6bb7d5d.tar.bz2
Implements a NOTIMPLEMENTED in GoButton.
BUG=none TEST=none Review URL: http://codereview.chromium.org/216045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/view.h3
-rw-r--r--views/view_gtk.cc6
-rw-r--r--views/view_win.cc5
3 files changed, 14 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h
index 05b32ae..311e5ce 100644
--- a/views/view.h
+++ b/views/view.h
@@ -126,6 +126,9 @@ class View : public AcceleratorTarget {
View();
virtual ~View();
+ // Returns the amount of time between double clicks, in milliseconds.
+ static int GetDoubleClickTimeMS();
+
// Sizing functions
// Get the bounds of the View, relative to the parent. Essentially, this
diff --git a/views/view_gtk.cc b/views/view_gtk.cc
index 655f88f..0e53b38 100644
--- a/views/view_gtk.cc
+++ b/views/view_gtk.cc
@@ -10,6 +10,12 @@
namespace views {
+// static
+int View::GetDoubleClickTimeMS() {
+ GdkDisplay* display = gdk_display_get_default();
+ return display ? display->double_click_time : 500;
+}
+
ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() {
NOTIMPLEMENTED();
return NULL;
diff --git a/views/view_win.cc b/views/view_win.cc
index cd9911c..e5f1c4f 100644
--- a/views/view_win.cc
+++ b/views/view_win.cc
@@ -15,6 +15,11 @@
namespace views {
+// static
+int View::GetDoubleClickTimeMS() {
+ return ::GetDoubleClickTime();
+}
+
ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() {
if (accessibility_.get() == NULL) {
accessibility_.reset(new ViewAccessibilityWrapper(this));