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/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 TabContentsWrapper* new_contents, | 113 TabContentsWrapper* new_contents, |
114 int index, | 114 int index, |
115 bool user_gesture) OVERRIDE; | 115 bool user_gesture) OVERRIDE; |
116 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 116 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
117 TabContentsWrapper* old_contents, | 117 TabContentsWrapper* old_contents, |
118 TabContentsWrapper* new_contents, | 118 TabContentsWrapper* new_contents, |
119 int index) OVERRIDE; | 119 int index) OVERRIDE; |
120 virtual void TabStripModelDeleted() OVERRIDE; | 120 virtual void TabStripModelDeleted() OVERRIDE; |
121 | 121 |
122 // Overridden from NotificationObserver: | 122 // Overridden from NotificationObserver: |
123 virtual void Observe(NotificationType type, | 123 virtual void Observe(int type, |
124 const NotificationSource& source, | 124 const NotificationSource& source, |
125 const NotificationDetails& details) OVERRIDE; | 125 const NotificationDetails& details) OVERRIDE; |
126 | 126 |
127 // Getters. | 127 // Getters. |
128 Browser* browser() const { return browser_; } | 128 Browser* browser() const { return browser_; } |
129 | 129 |
130 // Calculates |zoom_label_| in response to a zoom change. | 130 // Calculates |zoom_label_| in response to a zoom change. |
131 void UpdateZoomControls(); | 131 void UpdateZoomControls(); |
132 | 132 |
133 private: | 133 private: |
(...skipping 27 matching lines...) Expand all Loading... |
161 | 161 |
162 Browser* browser_; // weak | 162 Browser* browser_; // weak |
163 TabStripModel* tabstrip_model_; // weak | 163 TabStripModel* tabstrip_model_; // weak |
164 | 164 |
165 NotificationRegistrar registrar_; | 165 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 |