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

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

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed LocatedEvent::AsLocatedIfLocatedEvent() as FromIfValid(). Created 4 years, 6 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/location_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
index c4c56c4b4ca851007d8f7be4dc5b28751583911c..03382cc2a54d3a2991f4245b0b071d5787b8ac90 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -109,7 +109,7 @@ void LocationIconView::OnClickOrTap(const ui::LocatedEvent& event) {
void LocationIconView::ProcessLocatedEvent(const ui::LocatedEvent& event) {
if (HitTestPoint(event.location()))
- OnActivate();
+ OnActivate(event);
}
gfx::Size LocationIconView::GetMinimumSize() const {
@@ -131,7 +131,7 @@ SkColor LocationIconView::GetBorderColor() const {
return GetTextColor();
}
-bool LocationIconView::OnActivate() {
+bool LocationIconView::OnActivate(const ui::Event& event) {
WebContents* contents = location_bar_->GetWebContents();
if (!contents)
return false;
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.h ('k') | chrome/browser/ui/views/toolbar/toolbar_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698