| 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_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual bool IsCommandIdVisible(int command_id) const; | 91 virtual bool IsCommandIdVisible(int command_id) const; |
| 92 virtual bool GetAcceleratorForCommandId( | 92 virtual bool GetAcceleratorForCommandId( |
| 93 int command_id, | 93 int command_id, |
| 94 menus::Accelerator* accelerator); | 94 menus::Accelerator* accelerator); |
| 95 | 95 |
| 96 // Overridden from TabStripModelObserver: | 96 // Overridden from TabStripModelObserver: |
| 97 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 97 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
| 98 TabContentsWrapper* new_contents, | 98 TabContentsWrapper* new_contents, |
| 99 int index, | 99 int index, |
| 100 bool user_gesture); | 100 bool user_gesture); |
| 101 virtual void TabReplacedAt(TabContentsWrapper* old_contents, | 101 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 102 TabContentsWrapper* new_contents, int index); | 102 TabContentsWrapper* old_contents, |
| 103 TabContentsWrapper* new_contents, |
| 104 int index); |
| 103 virtual void TabStripModelDeleted(); | 105 virtual void TabStripModelDeleted(); |
| 104 | 106 |
| 105 // Overridden from NotificationObserver: | 107 // Overridden from NotificationObserver: |
| 106 virtual void Observe(NotificationType type, | 108 virtual void Observe(NotificationType type, |
| 107 const NotificationSource& source, | 109 const NotificationSource& source, |
| 108 const NotificationDetails& details); | 110 const NotificationDetails& details); |
| 109 | 111 |
| 110 // Getters. | 112 // Getters. |
| 111 Browser* browser() const { return browser_; } | 113 Browser* browser() const { return browser_; } |
| 112 | 114 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 141 | 143 |
| 142 Browser* browser_; // weak | 144 Browser* browser_; // weak |
| 143 TabStripModel* tabstrip_model_; // weak | 145 TabStripModel* tabstrip_model_; // weak |
| 144 | 146 |
| 145 NotificationRegistrar registrar_; | 147 NotificationRegistrar registrar_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 149 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 152 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |