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_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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |