OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WRENCH_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/menus/accelerator.h" | 9 #include "app/menus/accelerator.h" |
10 #include "app/menus/button_menu_item_model.h" | 10 #include "app/menus/button_menu_item_model.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual string16 GetLabelForCommandId(int command_id) const; | 86 virtual string16 GetLabelForCommandId(int command_id) const; |
87 virtual void ExecuteCommand(int command_id); | 87 virtual void ExecuteCommand(int command_id); |
88 virtual bool IsCommandIdChecked(int command_id) const; | 88 virtual bool IsCommandIdChecked(int command_id) const; |
89 virtual bool IsCommandIdEnabled(int command_id) const; | 89 virtual bool IsCommandIdEnabled(int command_id) const; |
90 virtual bool IsCommandIdVisible(int command_id) const; | 90 virtual bool IsCommandIdVisible(int command_id) const; |
91 virtual bool GetAcceleratorForCommandId( | 91 virtual bool GetAcceleratorForCommandId( |
92 int command_id, | 92 int command_id, |
93 menus::Accelerator* accelerator); | 93 menus::Accelerator* accelerator); |
94 | 94 |
95 // Overridden from TabStripModelObserver: | 95 // Overridden from TabStripModelObserver: |
96 virtual void TabSelectedAt(TabContents* old_contents, | 96 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
97 TabContents* new_contents, | 97 TabContentsWrapper* new_contents, |
98 int index, | 98 int index, |
99 bool user_gesture); | 99 bool user_gesture); |
100 virtual void TabReplacedAt(TabContents* old_contents, | 100 virtual void TabReplacedAt(TabContentsWrapper* old_contents, |
101 TabContents* new_contents, int index); | 101 TabContentsWrapper* new_contents, int index); |
102 virtual void TabStripModelDeleted(); | 102 virtual void TabStripModelDeleted(); |
103 | 103 |
104 // Overridden from NotificationObserver: | 104 // Overridden from NotificationObserver: |
105 virtual void Observe(NotificationType type, | 105 virtual void Observe(NotificationType type, |
106 const NotificationSource& source, | 106 const NotificationSource& source, |
107 const NotificationDetails& details); | 107 const NotificationDetails& details); |
108 | 108 |
109 // Getters. | 109 // Getters. |
110 Browser* browser() const { return browser_; } | 110 Browser* browser() const { return browser_; } |
111 | 111 |
(...skipping 28 matching lines...) Expand all Loading... |
140 | 140 |
141 Browser* browser_; // weak | 141 Browser* browser_; // weak |
142 TabStripModel* tabstrip_model_; // weak | 142 TabStripModel* tabstrip_model_; // weak |
143 | 143 |
144 NotificationRegistrar registrar_; | 144 NotificationRegistrar registrar_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 146 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
147 }; | 147 }; |
148 | 148 |
149 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_ | 149 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
OLD | NEW |