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

Side by Side Diff: chrome/browser/ui/views/toolbar/browser_action_view.h

Issue 324393002: Extension Toolbar redesign, part 1 (overflow) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing gypi change Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_action_icon_factory.h" 10 #include "chrome/browser/extensions/extension_action_icon_factory.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 // Returns the current tab's ID, or -1 if there is no current tab. 48 // Returns the current tab's ID, or -1 if there is no current tab.
49 virtual int GetCurrentTabId() const = 0; 49 virtual int GetCurrentTabId() const = 0;
50 50
51 // Called when the user clicks on the browser action icon. 51 // Called when the user clicks on the browser action icon.
52 virtual void OnBrowserActionExecuted(BrowserActionButton* button) = 0; 52 virtual void OnBrowserActionExecuted(BrowserActionButton* button) = 0;
53 53
54 // Called when a browser action becomes visible/hidden. 54 // Called when a browser action becomes visible/hidden.
55 virtual void OnBrowserActionVisibilityChanged() = 0; 55 virtual void OnBrowserActionVisibilityChanged() = 0;
56 56
57 // Whether the container for this button is shown inside a menu.
58 virtual bool ShownInsideMenu() const = 0;
59
57 protected: 60 protected:
58 virtual ~Delegate() {} 61 virtual ~Delegate() {}
59 }; 62 };
60 63
61 BrowserActionView(const extensions::Extension* extension, 64 BrowserActionView(const extensions::Extension* extension,
62 Browser* browser, 65 Browser* browser,
63 Delegate* delegate); 66 Delegate* delegate);
64 virtual ~BrowserActionView(); 67 virtual ~BrowserActionView();
65 68
66 BrowserActionButton* button() { return button_; } 69 BrowserActionButton* button() { return button_; }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // The observer that we need to notify when the icon of the button has been 250 // The observer that we need to notify when the icon of the button has been
248 // updated. 251 // updated.
249 IconObserver* icon_observer_; 252 IconObserver* icon_observer_;
250 253
251 friend class base::DeleteHelper<BrowserActionButton>; 254 friend class base::DeleteHelper<BrowserActionButton>;
252 255
253 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); 256 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton);
254 }; 257 };
255 258
256 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 259 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/browser/ui/views/toolbar/browser_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698