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

Unified Diff: chrome/browser/cocoa/location_bar/location_bar_decoration.h

Issue 2825048: [Mac] Allow omnibox decorations to decline mouse events. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Rohit's comment comment, and merge with content-setting change. Created 10 years, 5 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/cocoa/location_bar/location_bar_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/location_bar_decoration.h b/chrome/browser/cocoa/location_bar/location_bar_decoration.h
index 9500e42cde494f3b3d3b0ad0af3e2a3488977ccf..51571cceae85d63e48a96e4c8d989e12708833d1 100644
--- a/chrome/browser/cocoa/location_bar/location_bar_decoration.h
+++ b/chrome/browser/cocoa/location_bar/location_bar_decoration.h
@@ -46,6 +46,13 @@ class LocationBarDecoration {
// Returns the tooltip for this decoration, return |nil| for no tooltip.
virtual NSString* GetToolTip() { return nil; }
+ // Decorations which do not accept mouse events are treated like the
+ // field's background for purposes of selecting text. When such
+ // decorations are adjacent to the text area, they will show the
+ // I-beam cursor. Decorations which do accept mouse events will get
+ // an arrow cursor when the mouse is over them.
+ virtual bool AcceptsMousePress() { return false; }
+
// Determine if the item can act as a drag source.
virtual bool IsDraggable() { return false; }
« no previous file with comments | « chrome/browser/cocoa/location_bar/ev_bubble_decoration.h ('k') | chrome/browser/cocoa/location_bar/location_icon_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698