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

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

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.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
index 827263802796eb7401d467a3dfc5d22129336f69..65653a544ade9bd5b3cb234f3606a4af57d38b00 100644
--- a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
@@ -64,6 +64,10 @@ ButtonDecoration::ButtonState ButtonDecoration::GetButtonState() const {
return state_;
}
+bool ButtonDecoration::PreventFocus(NSPoint location) const {
+ return false;
+}
+
void ButtonDecoration::SetIcon(ButtonState state, int icon_id) {
switch (state) {
case kButtonStateNormal:
@@ -169,7 +173,7 @@ bool ButtonDecoration::IsDraggable() {
return false;
}
-bool ButtonDecoration::OnMousePressed(NSRect frame) {
+bool ButtonDecoration::OnMousePressed(NSRect frame, NSPoint location) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698