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 COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ | 5 #ifndef COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ |
6 #define COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ | 6 #define COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // Current zoom level. | 180 // Current zoom level. |
181 double zoom_level_; | 181 double zoom_level_; |
182 | 182 |
183 scoped_ptr<ZoomChangedEventData> event_data_; | 183 scoped_ptr<ZoomChangedEventData> event_data_; |
184 | 184 |
185 // Keeps track of the extension (if any) that initiated the last zoom change | 185 // Keeps track of the extension (if any) that initiated the last zoom change |
186 // that took effect. | 186 // that took effect. |
187 scoped_refptr<const ZoomRequestClient> last_client_; | 187 scoped_refptr<const ZoomRequestClient> last_client_; |
188 | 188 |
189 // Observer receiving notifications on state changes. | 189 // Observer receiving notifications on state changes. |
190 ObserverList<ZoomObserver> observers_; | 190 base::ObserverList<ZoomObserver> observers_; |
191 | 191 |
192 content::BrowserContext* browser_context_; | 192 content::BrowserContext* browser_context_; |
193 // Keep track of the HostZoomMap we're currently subscribed to. | 193 // Keep track of the HostZoomMap we're currently subscribed to. |
194 content::HostZoomMap* host_zoom_map_; | 194 content::HostZoomMap* host_zoom_map_; |
195 | 195 |
196 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; | 196 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(ZoomController); | 198 DISALLOW_COPY_AND_ASSIGN(ZoomController); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace ui_zoom | 201 } // namespace ui_zoom |
202 | 202 |
203 #endif // COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ | 203 #endif // COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ |
OLD | NEW |