| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // Notification that a move or resize renderer's containing window has | 219 // Notification that a move or resize renderer's containing window has |
| 220 // started. | 220 // started. |
| 221 virtual void NotifyMoveOrResizeStarted() = 0; | 221 virtual void NotifyMoveOrResizeStarted() = 0; |
| 222 | 222 |
| 223 // Reloads the current focused frame. | 223 // Reloads the current focused frame. |
| 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 flag indicating if the RenderView that will be hosted will act as a |
| 230 // guest. |
| 231 virtual void SetHostsGuest(bool hosts_guest) = 0; |
| 232 |
| 229 // Sets a property with the given name and value on the Web UI binding object. | 233 // Sets a property with the given name and value on the Web UI binding object. |
| 230 // Must call AllowWebUIBindings() on this renderer first. | 234 // Must call AllowWebUIBindings() on this renderer first. |
| 231 virtual void SetWebUIProperty(const std::string& name, | 235 virtual void SetWebUIProperty(const std::string& name, |
| 232 const std::string& value) = 0; | 236 const std::string& value) = 0; |
| 233 | 237 |
| 234 // Set the zoom level for the current main frame | 238 // Set the zoom level for the current main frame |
| 235 virtual void SetZoomLevel(double level) = 0; | 239 virtual void SetZoomLevel(double level) = 0; |
| 236 | 240 |
| 237 // Changes the zoom level for the current main frame. | 241 // Changes the zoom level for the current main frame. |
| 238 virtual void Zoom(PageZoom zoom) = 0; | 242 virtual void Zoom(PageZoom zoom) = 0; |
| 239 | 243 |
| 240 // Send the renderer process the current preferences supplied by the | 244 // Send the renderer process the current preferences supplied by the |
| 241 // RenderViewHostDelegate. | 245 // RenderViewHostDelegate. |
| 242 virtual void SyncRendererPrefs() = 0; | 246 virtual void SyncRendererPrefs() = 0; |
| 243 | 247 |
| 244 virtual void ToggleSpeechInput() = 0; | 248 virtual void ToggleSpeechInput() = 0; |
| 245 | 249 |
| 246 // Passes a list of Webkit preferences to the renderer. | 250 // Passes a list of Webkit preferences to the renderer. |
| 247 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 251 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
| 248 }; | 252 }; |
| 249 | 253 |
| 250 } // namespace content | 254 } // namespace content |
| 251 | 255 |
| 252 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 256 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |