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

Unified Diff: chrome/browser/ui/views/location_bar/click_handler.cc

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address most TODOs and sync. Created 9 years, 9 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
Index: chrome/browser/ui/views/location_bar/click_handler.cc
diff --git a/chrome/browser/ui/views/location_bar/click_handler.cc b/chrome/browser/ui/views/location_bar/click_handler.cc
index 8833998ed05f4fe547016fed52a084b9f8faa540..87b5bfc397c3d229a6df543f6ae5e735d2053e0d 100644
--- a/chrome/browser/ui/views/location_bar/click_handler.cc
+++ b/chrome/browser/ui/views/location_bar/click_handler.cc
@@ -16,9 +16,8 @@ ClickHandler::ClickHandler(const views::View* owner,
location_bar_(location_bar) {
}
-void ClickHandler::OnMouseReleased(const views::MouseEvent& event,
- bool canceled) {
- if (canceled || !owner_->HitTest(event.location()))
+void ClickHandler::OnMouseReleased(const views::MouseEvent& event) {
+ if (!owner_->HitTest(event.location()))
return;
// Do not show page info if the user has been editing the location
@@ -34,4 +33,3 @@ void ClickHandler::OnMouseReleased(const views::MouseEvent& event,
}
tab->ShowPageInfo(nav_entry->url(), nav_entry->ssl(), true);
}
-

Powered by Google App Engine
This is Rietveld 408576698