summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/go_button.cc
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 /chrome/browser/views/go_button.cc
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 'chrome/browser/views/go_button.cc')
-rw-r--r--chrome/browser/views/go_button.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/chrome/browser/views/go_button.cc b/chrome/browser/views/go_button.cc
index ca9c155..4f55244 100644
--- a/chrome/browser/views/go_button.cc
+++ b/chrome/browser/views/go_button.cc
@@ -20,7 +20,6 @@
GoButton::GoButton(LocationBarView* location_bar, Browser* browser)
: ToggleImageButton(this),
- button_delay_(0),
ALLOW_THIS_IN_INITIALIZER_LIST(stop_timer_(this)),
location_bar_(location_bar),
browser_(browser),
@@ -63,16 +62,6 @@ void GoButton::ButtonPressed(views::Button* button, const views::Event& event) {
// If the go button is visible and not within the double click timer, go.
browser_->Go(event_utils::DispositionFromEventFlags(mouse_event_flags()));
- // Figure out the system double-click time.
- if (button_delay_ == 0) {
-#if defined(OS_WIN)
- button_delay_ = GetDoubleClickTime();
-#else
- NOTIMPLEMENTED();
- button_delay_ = 500;
-#endif
- }
-
// Stop any existing timers.
stop_timer_.RevokeAll();
@@ -83,7 +72,7 @@ void GoButton::ButtonPressed(views::Button* button, const views::Event& event) {
// some delay).
MessageLoop::current()->PostDelayedTask(FROM_HERE,
stop_timer_.NewRunnableMethod(&GoButton::OnButtonTimer),
- button_delay_);
+ GetDoubleClickTimeMS());
}
}