| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 gfx::Image* icon) const OVERRIDE; | 94 gfx::Image* icon) const OVERRIDE; |
| 95 virtual void ExecuteCommand(int command_id) OVERRIDE; | 95 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 96 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 96 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 97 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 97 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 98 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; | 98 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; |
| 99 virtual bool GetAcceleratorForCommandId( | 99 virtual bool GetAcceleratorForCommandId( |
| 100 int command_id, | 100 int command_id, |
| 101 ui::Accelerator* accelerator) OVERRIDE; | 101 ui::Accelerator* accelerator) OVERRIDE; |
| 102 | 102 |
| 103 // Overridden from TabStripModelObserver: | 103 // Overridden from TabStripModelObserver: |
| 104 virtual void ActiveTabChanged(TabContents* old_contents, | 104 virtual void ActiveTabChanged(content::WebContents* old_contents, |
| 105 TabContents* new_contents, | 105 content::WebContents* new_contents, |
| 106 int index, | 106 int index, |
| 107 bool user_gesture) OVERRIDE; | 107 bool user_gesture) OVERRIDE; |
| 108 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 108 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 109 TabContents* old_contents, | 109 TabContents* old_contents, |
| 110 TabContents* new_contents, | 110 TabContents* new_contents, |
| 111 int index) OVERRIDE; | 111 int index) OVERRIDE; |
| 112 virtual void TabStripModelDeleted() OVERRIDE; | 112 virtual void TabStripModelDeleted() OVERRIDE; |
| 113 | 113 |
| 114 // Overridden from content::NotificationObserver: | 114 // Overridden from content::NotificationObserver: |
| 115 virtual void Observe(int type, | 115 virtual void Observe(int type, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 Browser* browser_; // weak | 166 Browser* browser_; // weak |
| 167 TabStripModel* tab_strip_model_; // weak | 167 TabStripModel* tab_strip_model_; // weak |
| 168 | 168 |
| 169 content::NotificationRegistrar registrar_; | 169 content::NotificationRegistrar registrar_; |
| 170 | 170 |
| 171 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 171 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 174 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |