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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // Notification that a move or resize renderer's containing window has | 141 // Notification that a move or resize renderer's containing window has |
142 // started. | 142 // started. |
143 virtual void NotifyMoveOrResizeStarted() = 0; | 143 virtual void NotifyMoveOrResizeStarted() = 0; |
144 | 144 |
145 // Sets a property with the given name and value on the Web UI binding object. | 145 // Sets a property with the given name and value on the Web UI binding object. |
146 // Must call AllowWebUIBindings() on this renderer first. | 146 // Must call AllowWebUIBindings() on this renderer first. |
147 virtual void SetWebUIProperty(const std::string& name, | 147 virtual void SetWebUIProperty(const std::string& name, |
148 const std::string& value) = 0; | 148 const std::string& value) = 0; |
149 | 149 |
150 // Changes the zoom level for the current main frame. | |
151 virtual void Zoom(PageZoom zoom) = 0; | |
152 | |
153 // Send the renderer process the current preferences supplied by the | 150 // Send the renderer process the current preferences supplied by the |
154 // RenderViewHostDelegate. | 151 // RenderViewHostDelegate. |
155 virtual void SyncRendererPrefs() = 0; | 152 virtual void SyncRendererPrefs() = 0; |
156 | 153 |
157 // Returns the current WebKit preferences. Note: WebPreferences is cached, so | 154 // Returns the current WebKit preferences. Note: WebPreferences is cached, so |
158 // this lookup will be fast | 155 // this lookup will be fast |
159 virtual WebPreferences GetWebkitPreferences() = 0; | 156 virtual WebPreferences GetWebkitPreferences() = 0; |
160 | 157 |
161 // If any state that affects the webkit preferences changed, this method must | 158 // If any state that affects the webkit preferences changed, this method must |
162 // be called. This triggers recomputing preferences. | 159 // be called. This triggers recomputing preferences. |
163 virtual void OnWebkitPreferencesChanged() = 0; | 160 virtual void OnWebkitPreferencesChanged() = 0; |
164 | 161 |
165 // Passes a list of Webkit preferences to the renderer. | 162 // Passes a list of Webkit preferences to the renderer. |
166 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 163 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
167 | 164 |
168 // Notify the render view host to select the word around the caret. | 165 // Notify the render view host to select the word around the caret. |
169 virtual void SelectWordAroundCaret() = 0; | 166 virtual void SelectWordAroundCaret() = 0; |
170 | 167 |
171 private: | 168 private: |
172 // This interface should only be implemented inside content. | 169 // This interface should only be implemented inside content. |
173 friend class RenderViewHostImpl; | 170 friend class RenderViewHostImpl; |
174 RenderViewHost() {} | 171 RenderViewHost() {} |
175 }; | 172 }; |
176 | 173 |
177 } // namespace content | 174 } // namespace content |
178 | 175 |
179 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 176 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |