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 CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 bool UsesTemporaryZoomLevel(int render_process_id, | 49 bool UsesTemporaryZoomLevel(int render_process_id, |
50 int render_view_id) const override; | 50 int render_view_id) const override; |
51 void SetTemporaryZoomLevel(int render_process_id, | 51 void SetTemporaryZoomLevel(int render_process_id, |
52 int render_view_id, | 52 int render_view_id, |
53 double level) override; | 53 double level) override; |
54 | 54 |
55 void ClearTemporaryZoomLevel(int render_process_id, | 55 void ClearTemporaryZoomLevel(int render_process_id, |
56 int render_view_id) override; | 56 int render_view_id) override; |
57 double GetDefaultZoomLevel() const override; | 57 double GetDefaultZoomLevel() const override; |
58 void SetDefaultZoomLevel(double level) override; | 58 void SetDefaultZoomLevel(double level) override; |
59 scoped_ptr<Subscription> AddZoomLevelChangedCallback( | 59 std::unique_ptr<Subscription> AddZoomLevelChangedCallback( |
60 const ZoomLevelChangedCallback& callback) override; | 60 const ZoomLevelChangedCallback& callback) override; |
61 | 61 |
62 // Returns the current zoom level for the specified WebContents. This may | 62 // Returns the current zoom level for the specified WebContents. This may |
63 // be a temporary zoom level, depending on UsesTemporaryZoomLevel(). | 63 // be a temporary zoom level, depending on UsesTemporaryZoomLevel(). |
64 double GetZoomLevelForWebContents( | 64 double GetZoomLevelForWebContents( |
65 const WebContentsImpl& web_contents_impl) const; | 65 const WebContentsImpl& web_contents_impl) const; |
66 | 66 |
67 bool PageScaleFactorIsOneForWebContents( | 67 bool PageScaleFactorIsOneForWebContents( |
68 const WebContentsImpl& web_contents_impl) const; | 68 const WebContentsImpl& web_contents_impl) const; |
69 | 69 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 mutable base::Lock lock_; | 159 mutable base::Lock lock_; |
160 | 160 |
161 NotificationRegistrar registrar_; | 161 NotificationRegistrar registrar_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); | 163 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 168 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
OLD | NEW |