| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 gfx::ImageSkia* icon) const OVERRIDE; | 91 gfx::ImageSkia* icon) const OVERRIDE; |
| 92 virtual void ExecuteCommand(int command_id) OVERRIDE; | 92 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 93 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 93 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 94 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 94 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 95 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; | 95 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; |
| 96 virtual bool GetAcceleratorForCommandId( | 96 virtual bool GetAcceleratorForCommandId( |
| 97 int command_id, | 97 int command_id, |
| 98 ui::Accelerator* accelerator) OVERRIDE; | 98 ui::Accelerator* accelerator) OVERRIDE; |
| 99 | 99 |
| 100 // Overridden from TabStripModelObserver: | 100 // Overridden from TabStripModelObserver: |
| 101 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, | 101 virtual void ActiveTabChanged(TabContents* old_contents, |
| 102 TabContentsWrapper* new_contents, | 102 TabContents* new_contents, |
| 103 int index, | 103 int index, |
| 104 bool user_gesture) OVERRIDE; | 104 bool user_gesture) OVERRIDE; |
| 105 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 105 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 106 TabContentsWrapper* old_contents, | 106 TabContents* old_contents, |
| 107 TabContentsWrapper* new_contents, | 107 TabContents* new_contents, |
| 108 int index) OVERRIDE; | 108 int index) OVERRIDE; |
| 109 virtual void TabStripModelDeleted() OVERRIDE; | 109 virtual void TabStripModelDeleted() OVERRIDE; |
| 110 | 110 |
| 111 // Overridden from content::NotificationObserver: | 111 // Overridden from content::NotificationObserver: |
| 112 virtual void Observe(int type, | 112 virtual void Observe(int type, |
| 113 const content::NotificationSource& source, | 113 const content::NotificationSource& source, |
| 114 const content::NotificationDetails& details) OVERRIDE; | 114 const content::NotificationDetails& details) OVERRIDE; |
| 115 | 115 |
| 116 // Getters. | 116 // Getters. |
| 117 Browser* browser() const { return browser_; } | 117 Browser* browser() const { return browser_; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 Browser* browser_; // weak | 162 Browser* browser_; // weak |
| 163 TabStripModel* tab_strip_model_; // weak | 163 TabStripModel* tab_strip_model_; // weak |
| 164 | 164 |
| 165 content::NotificationRegistrar registrar_; | 165 content::NotificationRegistrar registrar_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 167 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 170 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |