| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual bool GetAcceleratorForCommandId( | 100 virtual bool GetAcceleratorForCommandId( |
| 101 int command_id, | 101 int command_id, |
| 102 ui::Accelerator* accelerator) OVERRIDE; | 102 ui::Accelerator* accelerator) OVERRIDE; |
| 103 | 103 |
| 104 // Overridden from TabStripModelObserver: | 104 // Overridden from TabStripModelObserver: |
| 105 virtual void ActiveTabChanged(content::WebContents* old_contents, | 105 virtual void ActiveTabChanged(content::WebContents* old_contents, |
| 106 content::WebContents* new_contents, | 106 content::WebContents* new_contents, |
| 107 int index, | 107 int index, |
| 108 bool user_gesture) OVERRIDE; | 108 bool user_gesture) OVERRIDE; |
| 109 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 109 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 110 TabContents* old_contents, | 110 content::WebContents* old_contents, |
| 111 TabContents* new_contents, | 111 content::WebContents* new_contents, |
| 112 int index) OVERRIDE; | 112 int index) OVERRIDE; |
| 113 virtual void TabStripModelDeleted() OVERRIDE; | 113 virtual void TabStripModelDeleted() OVERRIDE; |
| 114 | 114 |
| 115 // Overridden from content::NotificationObserver: | 115 // Overridden from content::NotificationObserver: |
| 116 virtual void Observe(int type, | 116 virtual void Observe(int type, |
| 117 const content::NotificationSource& source, | 117 const content::NotificationSource& source, |
| 118 const content::NotificationDetails& details) OVERRIDE; | 118 const content::NotificationDetails& details) OVERRIDE; |
| 119 | 119 |
| 120 // Getters. | 120 // Getters. |
| 121 Browser* browser() const { return browser_; } | 121 Browser* browser() const { return browser_; } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 Browser* browser_; // weak | 170 Browser* browser_; // weak |
| 171 TabStripModel* tab_strip_model_; // weak | 171 TabStripModel* tab_strip_model_; // weak |
| 172 | 172 |
| 173 content::NotificationRegistrar registrar_; | 173 content::NotificationRegistrar registrar_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 175 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 178 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |