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

Unified Diff: chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm

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/autocomplete_text_field_unittest.mm
diff --git a/chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm b/chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm
index 64ffbd87f906392ef08d042611397e184579b55c..8e27682aec3710aca73add1c393e79780f555eef 100644
--- a/chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm
+++ b/chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm
@@ -32,6 +32,7 @@ class MockDecoration : public LocationBarDecoration {
void SetVisible(bool visible) { visible_ = visible; }
virtual void DrawInFrame(NSRect frame, NSView* control_view) { ; }
+ virtual bool AcceptsMousePress() { return true; }
MOCK_METHOD1(OnMousePressed, bool(NSRect frame));
MOCK_METHOD0(GetMenu, NSMenu*());

Powered by Google App Engine
This is Rietveld 408576698