Index: chrome/browser/ui/cocoa/location_bar/plus_decoration.h |
diff --git a/chrome/browser/ui/cocoa/location_bar/plus_decoration.h b/chrome/browser/ui/cocoa/location_bar/plus_decoration.h |
index 519dc320f7797bb0bd8773575ab3c94e127226a3..399418b570b47730ee9aeeaab6f71598f8168d64 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/plus_decoration.h |
+++ b/chrome/browser/ui/cocoa/location_bar/plus_decoration.h |
@@ -7,16 +7,21 @@ |
#import <Cocoa/Cocoa.h> |
+#include "base/memory/scoped_nsobject.h" |
#include "chrome/browser/ui/cocoa/location_bar/image_decoration.h" |
+class Browser; |
class CommandUpdater; |
+class LocationBarViewMac; |
// Note: this file is under development (see crbug.com/138118). |
// Plus icon on the right side of the location bar. |
class PlusDecoration : public ImageDecoration { |
public: |
- explicit PlusDecoration(CommandUpdater* command_updater); |
+ PlusDecoration(LocationBarViewMac* owner, |
+ CommandUpdater* command_updater, |
+ Browser* browser); |
virtual ~PlusDecoration(); |
// Implement |LocationBarDecoration|. |
@@ -25,8 +30,13 @@ class PlusDecoration : public ImageDecoration { |
virtual NSString* GetToolTip() OVERRIDE; |
private: |
+ // Owner of the decoration, used to obtain the menu. |
+ LocationBarViewMac* owner_; |
+ |
CommandUpdater* command_updater_; // Weak, owned by Browser. |
+ Browser* browser_; |
+ |
// The string to show for a tooltip. |
scoped_nsobject<NSString> tooltip_; |