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

Side by Side Diff: content/browser/host_zoom_map_impl.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 | « content/browser/host_zoom_level_context.cc ('k') | content/browser/host_zoom_map_impl.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 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
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
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_
OLDNEW
« no previous file with comments | « content/browser/host_zoom_level_context.cc ('k') | content/browser/host_zoom_map_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698