| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/tabs/tab_strip_model_observer.h" | 10 #include "chrome/browser/tabs/tab_strip_model_observer.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 SkBitmap* icon) const OVERRIDE; | 101 SkBitmap* icon) const OVERRIDE; |
| 102 virtual void ExecuteCommand(int command_id) OVERRIDE; | 102 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 103 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 103 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 104 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 104 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 105 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; | 105 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; |
| 106 virtual bool GetAcceleratorForCommandId( | 106 virtual bool GetAcceleratorForCommandId( |
| 107 int command_id, | 107 int command_id, |
| 108 ui::Accelerator* accelerator) OVERRIDE; | 108 ui::Accelerator* accelerator) OVERRIDE; |
| 109 | 109 |
| 110 // Overridden from TabStripModelObserver: | 110 // Overridden from TabStripModelObserver: |
| 111 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 111 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
| 112 TabContentsWrapper* new_contents, | 112 TabContentsWrapper* new_contents, |
| 113 int index, | 113 int index, |
| 114 bool user_gesture) OVERRIDE; | 114 bool user_gesture) OVERRIDE; |
| 115 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 115 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 116 TabContentsWrapper* old_contents, | 116 TabContentsWrapper* old_contents, |
| 117 TabContentsWrapper* new_contents, | 117 TabContentsWrapper* new_contents, |
| 118 int index) OVERRIDE; | 118 int index) OVERRIDE; |
| 119 virtual void TabStripModelDeleted() OVERRIDE; | 119 virtual void TabStripModelDeleted() OVERRIDE; |
| 120 | 120 |
| 121 // Overridden from NotificationObserver: | 121 // Overridden from NotificationObserver: |
| 122 virtual void Observe(NotificationType type, | 122 virtual void Observe(NotificationType type, |
| 123 const NotificationSource& source, | 123 const NotificationSource& source, |
| 124 const NotificationDetails& details) OVERRIDE; | 124 const NotificationDetails& details) OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 Browser* browser_; // weak | 161 Browser* browser_; // weak |
| 162 TabStripModel* tabstrip_model_; // weak | 162 TabStripModel* tabstrip_model_; // weak |
| 163 | 163 |
| 164 NotificationRegistrar registrar_; | 164 NotificationRegistrar registrar_; |
| 165 | 165 |
| 166 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 166 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 169 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |