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

Unified Diff: chrome/browser/ui/cocoa/location_bar/button_decoration.h

Issue 233623002: Shows the info bubble when the location bar icon is clicked in the origin chip. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 7 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/cocoa/location_bar/button_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/button_decoration.h b/chrome/browser/ui/cocoa/location_bar/button_decoration.h
index 3810637b26b50c9f56bd27f37ea27131095ad21f..3306721077e34aa911a94c65ab97c09e799c1005 100644
--- a/chrome/browser/ui/cocoa/location_bar/button_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/button_decoration.h
@@ -38,6 +38,10 @@ class ButtonDecoration : public LocationBarDecoration {
void SetButtonState(ButtonState state);
ButtonState GetButtonState() const;
+ // Whether a click on this decoration should prevent focusing of the omnibox
+ // or not.
+ virtual bool PreventFocus(NSPoint location) const;
+
// Changes the icon for the specified button state only.
void SetIcon(ButtonState state, int icon_id);
@@ -57,7 +61,7 @@ class ButtonDecoration : public LocationBarDecoration {
virtual void DrawInFrame(NSRect frame, NSView* control_view) OVERRIDE;
virtual bool AcceptsMousePress() OVERRIDE;
virtual bool IsDraggable() OVERRIDE;
- virtual bool OnMousePressed(NSRect frame) OVERRIDE;
+ virtual bool OnMousePressed(NSRect frame, NSPoint location) OVERRIDE;
virtual ButtonDecoration* AsButtonDecoration() OVERRIDE;
private:

Powered by Google App Engine
This is Rietveld 408576698