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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/prefs/pref_member.h" | 13 #include "base/prefs/pref_member.h" |
14 #include "content/public/browser/host_zoom_map.h" | 14 #include "content/public/browser/host_zoom_map.h" |
15 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
16 #include "content/public/browser/web_contents_user_data.h" | 16 #include "content/public/browser/web_contents_user_data.h" |
17 | 17 |
18 class ZoomControllerTest; | 18 class ZoomControllerTest; |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class WebContents; | 21 class WebContents; |
22 } | 22 } |
23 | 23 |
24 namespace ui_zoom { | 24 namespace ui_zoom { |
25 class ZoomObserver; | 25 class ZoomObserver; |
26 | 26 |
27 class ZoomRequestClient : public base::RefCounted<ZoomRequestClient> { | 27 class ZoomRequestClient : public base::RefCounted<ZoomRequestClient> { |
28 public: | 28 public: |
29 ZoomRequestClient() {} | 29 ZoomRequestClient() {} |
| 30 virtual bool ShouldSuppressBubble() const = 0; |
30 | 31 |
31 protected: | 32 protected: |
32 virtual ~ZoomRequestClient() {} | 33 virtual ~ZoomRequestClient() {} |
33 | 34 |
34 private: | 35 private: |
35 friend class base::RefCounted<ZoomRequestClient>; | 36 friend class base::RefCounted<ZoomRequestClient>; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(ZoomRequestClient); | 38 DISALLOW_COPY_AND_ASSIGN(ZoomRequestClient); |
38 }; | 39 }; |
39 | 40 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 content::HostZoomMap* host_zoom_map_; | 194 content::HostZoomMap* host_zoom_map_; |
194 | 195 |
195 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; | 196 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; |
196 | 197 |
197 DISALLOW_COPY_AND_ASSIGN(ZoomController); | 198 DISALLOW_COPY_AND_ASSIGN(ZoomController); |
198 }; | 199 }; |
199 | 200 |
200 } // namespace ui_zoom | 201 } // namespace ui_zoom |
201 | 202 |
202 #endif // COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ | 203 #endif // COMPONENTS_UI_ZOOM_ZOOM_CONTROLLER_H_ |
OLD | NEW |