Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: chrome/browser/views/go_button.cc

Issue 216045: Implements a NOTIMPLEMENTED in GoButton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/go_button.h ('k') | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/go_button.cc
===================================================================
--- chrome/browser/views/go_button.cc (revision 26812)
+++ chrome/browser/views/go_button.cc (working copy)
@@ -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 @@
// 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 @@
// some delay).
MessageLoop::current()->PostDelayedTask(FROM_HERE,
stop_timer_.NewRunnableMethod(&GoButton::OnButtonTimer),
- button_delay_);
+ GetDoubleClickTimeMS());
}
}
« no previous file with comments | « chrome/browser/views/go_button.h ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698