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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 virtual void ReloadFrame() = 0; | 234 virtual void ReloadFrame() = 0; |
235 | 235 |
236 // Sets the alternate error page URL (link doctor) for the renderer process. | 236 // Sets the alternate error page URL (link doctor) for the renderer process. |
237 virtual void SetAltErrorPageURL(const GURL& url) = 0; | 237 virtual void SetAltErrorPageURL(const GURL& url) = 0; |
238 | 238 |
239 // Sets a property with the given name and value on the Web UI binding object. | 239 // Sets a property with the given name and value on the Web UI binding object. |
240 // Must call AllowWebUIBindings() on this renderer first. | 240 // Must call AllowWebUIBindings() on this renderer first. |
241 virtual void SetWebUIProperty(const std::string& name, | 241 virtual void SetWebUIProperty(const std::string& name, |
242 const std::string& value) = 0; | 242 const std::string& value) = 0; |
243 | 243 |
244 // Set the zoom level for the current main frame | |
245 virtual void SetZoomLevel(double level) = 0; | |
246 | |
247 // Changes the zoom level for the current main frame. | 244 // Changes the zoom level for the current main frame. |
248 virtual void Zoom(PageZoom zoom) = 0; | 245 virtual void Zoom(PageZoom zoom) = 0; |
249 | 246 |
250 // Send the renderer process the current preferences supplied by the | 247 // Send the renderer process the current preferences supplied by the |
251 // RenderViewHostDelegate. | 248 // RenderViewHostDelegate. |
252 virtual void SyncRendererPrefs() = 0; | 249 virtual void SyncRendererPrefs() = 0; |
253 | 250 |
254 virtual void ToggleSpeechInput() = 0; | 251 virtual void ToggleSpeechInput() = 0; |
255 | 252 |
256 // Returns the current WebKit preferences. | 253 // Returns the current WebKit preferences. |
(...skipping 29 matching lines...) Expand all Loading... |
286 | 283 |
287 private: | 284 private: |
288 // This interface should only be implemented inside content. | 285 // This interface should only be implemented inside content. |
289 friend class RenderViewHostImpl; | 286 friend class RenderViewHostImpl; |
290 RenderViewHost() {} | 287 RenderViewHost() {} |
291 }; | 288 }; |
292 | 289 |
293 } // namespace content | 290 } // namespace content |
294 | 291 |
295 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 292 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |