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

Side by Side Diff: chrome/browser/views/browser_actions_container.h

Issue 246037: Integrate browser actions with the wrench menu. Browser actions (Closed)
Patch Set: alphabetize Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_BROWSER_ACTIONS_PANEL_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_PANEL_H_
6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_PANEL_H_ 6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_PANEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
(...skipping 13 matching lines...) Expand all
24 // icons that represent browser actions (extensions that add icons to the 24 // icons that represent browser actions (extensions that add icons to the
25 // toolbar). 25 // toolbar).
26 // 26 //
27 //////////////////////////////////////////////////////////////////////////////// 27 ////////////////////////////////////////////////////////////////////////////////
28 class BrowserActionsContainer : public views::View, 28 class BrowserActionsContainer : public views::View,
29 public NotificationObserver { 29 public NotificationObserver {
30 public: 30 public:
31 BrowserActionsContainer(Profile* profile, ToolbarView* toolbar); 31 BrowserActionsContainer(Profile* profile, ToolbarView* toolbar);
32 virtual ~BrowserActionsContainer(); 32 virtual ~BrowserActionsContainer();
33 33
34 int num_browser_actions() { return browser_action_views_.size(); }
35
34 // Update the views to reflect the state of the browser action icons. 36 // Update the views to reflect the state of the browser action icons.
35 void RefreshBrowserActionViews(); 37 void RefreshBrowserActionViews();
36 38
37 // Delete all browser action views. 39 // Delete all browser action views.
38 void DeleteBrowserActionViews(); 40 void DeleteBrowserActionViews();
39 41
40 // Called when a browser action becomes visible/hidden. 42 // Called when a browser action becomes visible/hidden.
41 void OnBrowserActionVisibilityChanged(); 43 void OnBrowserActionVisibilityChanged();
42 44
43 // Called when the user clicks on the browser action icon. 45 // Called when the user clicks on the browser action icon.
(...skipping 16 matching lines...) Expand all
60 62
61 Profile* profile_; 63 Profile* profile_;
62 64
63 // The toolbar that owns us. 65 // The toolbar that owns us.
64 ToolbarView* toolbar_; 66 ToolbarView* toolbar_;
65 67
66 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 68 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
67 }; 69 };
68 70
69 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_PANEL_H_ 71 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/browser_action_test.cc ('k') | chrome/browser/views/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698