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_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 virtual void ReloadFrame() = 0; | 224 virtual void ReloadFrame() = 0; |
225 | 225 |
226 // Sets the alternate error page URL (link doctor) for the renderer process. | 226 // Sets the alternate error page URL (link doctor) for the renderer process. |
227 virtual void SetAltErrorPageURL(const GURL& url) = 0; | 227 virtual void SetAltErrorPageURL(const GURL& url) = 0; |
228 | 228 |
229 // Sets a property with the given name and value on the Web UI binding object. | 229 // Sets a property with the given name and value on the Web UI binding object. |
230 // Must call AllowWebUIBindings() on this renderer first. | 230 // Must call AllowWebUIBindings() on this renderer first. |
231 virtual void SetWebUIProperty(const std::string& name, | 231 virtual void SetWebUIProperty(const std::string& name, |
232 const std::string& value) = 0; | 232 const std::string& value) = 0; |
233 | 233 |
234 // Set the zoom level for the current main frame | |
235 virtual void SetZoomLevel(double level) = 0; | |
236 | |
237 // Changes the zoom level for the current main frame. | 234 // Changes the zoom level for the current main frame. |
238 virtual void Zoom(PageZoom zoom) = 0; | 235 virtual void Zoom(PageZoom zoom) = 0; |
239 | 236 |
240 // Send the renderer process the current preferences supplied by the | 237 // Send the renderer process the current preferences supplied by the |
241 // RenderViewHostDelegate. | 238 // RenderViewHostDelegate. |
242 virtual void SyncRendererPrefs() = 0; | 239 virtual void SyncRendererPrefs() = 0; |
243 | 240 |
244 virtual void ToggleSpeechInput() = 0; | 241 virtual void ToggleSpeechInput() = 0; |
245 | 242 |
246 // Returns the current WebKit preferences. | 243 // Returns the current WebKit preferences. |
(...skipping 29 matching lines...) Expand all Loading... |
276 | 273 |
277 private: | 274 private: |
278 // This interface should only be implemented inside content. | 275 // This interface should only be implemented inside content. |
279 friend class RenderViewHostImpl; | 276 friend class RenderViewHostImpl; |
280 RenderViewHost() {} | 277 RenderViewHost() {} |
281 }; | 278 }; |
282 | 279 |
283 } // namespace content | 280 } // namespace content |
284 | 281 |
285 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 282 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |