OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EVENT_MANAGER_H_ | 5 #ifndef COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_H_ |
6 #define COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_H_ | 6 #define COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_H_ |
7 | 7 |
8 #include "base/callback_list.h" | 8 #include "base/callback_list.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
12 #include "base/supports_user_data.h" | 13 #include "base/supports_user_data.h" |
13 #include "content/public/browser/host_zoom_map.h" | 14 #include "content/public/browser/host_zoom_map.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 class BrowserContext; | 17 class BrowserContext; |
17 } // namespace content | 18 } // namespace content |
18 | 19 |
19 namespace ui_zoom { | 20 namespace ui_zoom { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 zoom_level_changed_callbacks_; | 64 zoom_level_changed_callbacks_; |
64 base::ObserverList<ZoomEventManagerObserver> observers_; | 65 base::ObserverList<ZoomEventManagerObserver> observers_; |
65 base::WeakPtrFactory<ZoomEventManager> weak_ptr_factory_; | 66 base::WeakPtrFactory<ZoomEventManager> weak_ptr_factory_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(ZoomEventManager); | 68 DISALLOW_COPY_AND_ASSIGN(ZoomEventManager); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace ui_zoom | 71 } // namespace ui_zoom |
71 | 72 |
72 #endif // COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_H_ | 73 #endif // COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_H_ |
OLD | NEW |