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

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

Issue 298813002: views: Move MenuButton from TextButton to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DragDirectlyToSecondWindow. Created 6 years, 6 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 virtual bool NeedToShowMultipleIconStates() const;
58 virtual bool NeedToShowTooltip() const;
59
60 protected: 57 protected:
61 virtual ~Delegate() {} 58 virtual ~Delegate() {}
62 }; 59 };
63 60
64 BrowserActionView(const extensions::Extension* extension, 61 BrowserActionView(const extensions::Extension* extension,
65 Browser* browser, 62 Browser* browser,
66 Delegate* delegate); 63 Delegate* delegate);
67 virtual ~BrowserActionView(); 64 virtual ~BrowserActionView();
68 65
69 BrowserActionButton* button() { return button_; } 66 BrowserActionButton* button() { return button_; }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // The observer that we need to notify when the icon of the button has been 245 // The observer that we need to notify when the icon of the button has been
249 // updated. 246 // updated.
250 IconObserver* icon_observer_; 247 IconObserver* icon_observer_;
251 248
252 friend class base::DeleteHelper<BrowserActionButton>; 249 friend class base::DeleteHelper<BrowserActionButton>;
253 250
254 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); 251 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton);
255 }; 252 };
256 253
257 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 254 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698