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

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

Issue 78053009: Adds handling of clicking on the omnibox search/go button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/search_button_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/search_button_decoration.h b/chrome/browser/ui/cocoa/location_bar/search_button_decoration.h
index 41a022884b59167035a7e511a07a1182484e079a..ed0d486ee5cc28d6f00f518f464068a89249f966 100644
--- a/chrome/browser/ui/cocoa/location_bar/search_button_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/search_button_decoration.h
@@ -9,11 +9,13 @@
#include "chrome/browser/ui/cocoa/location_bar/button_decoration.h"
+class LocationBarViewMac;
+
// |SearchButtonDecoration| adds a search/go button to the right of the omnibox.
class SearchButtonDecoration : public ButtonDecoration {
public:
- SearchButtonDecoration();
+ explicit SearchButtonDecoration(LocationBarViewMac* owner);
virtual ~SearchButtonDecoration();
// Implement |LocationBarDecoration|.
@@ -22,6 +24,9 @@ class SearchButtonDecoration : public ButtonDecoration {
virtual bool OnMousePressed(NSRect frame) OVERRIDE;
private:
+ // The control view that owns this. Weak.
+ LocationBarViewMac* owner_;
+
DISALLOW_COPY_AND_ASSIGN(SearchButtonDecoration);
};

Powered by Google App Engine
This is Rietveld 408576698