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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 virtual void ActiveTabChanged(content::WebContents* old_contents, | 106 virtual void ActiveTabChanged(content::WebContents* old_contents, |
107 content::WebContents* new_contents, | 107 content::WebContents* new_contents, |
108 int index, | 108 int index, |
109 bool user_gesture) OVERRIDE; | 109 bool user_gesture) OVERRIDE; |
110 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 110 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
111 content::WebContents* old_contents, | 111 content::WebContents* old_contents, |
112 content::WebContents* new_contents, | 112 content::WebContents* new_contents, |
113 int index) OVERRIDE; | 113 int index) OVERRIDE; |
114 virtual void TabStripModelDeleted() OVERRIDE; | 114 virtual void TabStripModelDeleted() OVERRIDE; |
115 | 115 |
| 116 void OnZoomLevelChanged(const std::string& host); |
| 117 |
116 // Overridden from content::NotificationObserver: | 118 // Overridden from content::NotificationObserver: |
117 virtual void Observe(int type, | 119 virtual void Observe(int type, |
118 const content::NotificationSource& source, | 120 const content::NotificationSource& source, |
119 const content::NotificationDetails& details) OVERRIDE; | 121 const content::NotificationDetails& details) OVERRIDE; |
120 | 122 |
121 // Getters. | 123 // Getters. |
122 Browser* browser() const { return browser_; } | 124 Browser* browser() const { return browser_; } |
123 | 125 |
124 BookmarkSubMenuModel* bookmark_sub_menu_model() const { | 126 BookmarkSubMenuModel* bookmark_sub_menu_model() const { |
125 return bookmark_sub_menu_model_.get(); | 127 return bookmark_sub_menu_model_.get(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 176 |
175 Browser* browser_; // weak | 177 Browser* browser_; // weak |
176 TabStripModel* tab_strip_model_; // weak | 178 TabStripModel* tab_strip_model_; // weak |
177 | 179 |
178 content::NotificationRegistrar registrar_; | 180 content::NotificationRegistrar registrar_; |
179 | 181 |
180 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 182 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
181 }; | 183 }; |
182 | 184 |
183 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 185 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
OLD | NEW |