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

Side by Side Diff: content/public/browser/host_zoom_map.h

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Comments. Created 6 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 | Annotate | Revision Log
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_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
6 #define CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 6 #define CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual ZoomLevelVector GetAllZoomLevels() const = 0; 72 virtual ZoomLevelVector GetAllZoomLevels() const = 0;
73 73
74 // Here |host| is the host portion of URL, or (in the absence of a host) 74 // Here |host| is the host portion of URL, or (in the absence of a host)
75 // the complete spec of the URL. 75 // the complete spec of the URL.
76 // Sets the zoom level for the |host| to |level|. If the level matches the 76 // Sets the zoom level for the |host| to |level|. If the level matches the
77 // current default zoom level, the host is erased from the saved preferences; 77 // current default zoom level, the host is erased from the saved preferences;
78 // otherwise the new value is written out. 78 // otherwise the new value is written out.
79 // Zoom levels specified for both scheme and host are not affected. 79 // Zoom levels specified for both scheme and host are not affected.
80 // 80 //
81 // This should only be called on the UI thread. 81 // This should only be called on the UI thread.
82 virtual void SetZoomLevelForHost(const std::string& host, double level) = 0; 82 virtual void SetZoomLevelForHost(const std::string& host,
83 double level) = 0;
Fady Samuel 2014/04/10 14:27:25 This looks like an unnecessary change.
paulmeyer 2014/04/10 15:11:49 Done.
83 84
84 // Here |host| is the host portion of URL, or (in the absence of a host) 85 // Here |host| is the host portion of URL, or (in the absence of a host)
85 // the complete spec of the URL. 86 // the complete spec of the URL.
86 // Sets the zoom level for the |scheme|/|host| pair to |level|. No values 87 // Sets the zoom level for the |scheme|/|host| pair to |level|. No values
87 // will be erased during this operation, and this value will not be stored in 88 // will be erased during this operation, and this value will not be stored in
88 // the preferences. 89 // the preferences.
89 // 90 //
90 // This should only be called on the UI thread. 91 // This should only be called on the UI thread.
91 virtual void SetZoomLevelForHostAndScheme(const std::string& scheme, 92 virtual void SetZoomLevelForHostAndScheme(const std::string& scheme,
92 const std::string& host, 93 const std::string& host,
(...skipping 10 matching lines...) Expand all
103 virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback( 104 virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback(
104 const ZoomLevelChangedCallback& callback) = 0; 105 const ZoomLevelChangedCallback& callback) = 0;
105 106
106 protected: 107 protected:
107 virtual ~HostZoomMap() {} 108 virtual ~HostZoomMap() {}
108 }; 109 };
109 110
110 } // namespace content 111 } // namespace content
111 112
112 #endif // CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 113 #endif // CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698