Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1932)

Side by Side Diff: components/ui/zoom/zoom_controller.h

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test rebuilding patch from .diff file. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/ui/zoom/test/zoom_test_utils.cc ('k') | components/ui/zoom/zoom_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/ui/zoom/test/zoom_test_utils.cc ('k') | components/ui/zoom/zoom_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698