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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual void SetWebUIProperty(const std::string& name, | 187 virtual void SetWebUIProperty(const std::string& name, |
188 const std::string& value) = 0; | 188 const std::string& value) = 0; |
189 | 189 |
190 // Changes the zoom level for the current main frame. | 190 // Changes the zoom level for the current main frame. |
191 virtual void Zoom(PageZoom zoom) = 0; | 191 virtual void Zoom(PageZoom zoom) = 0; |
192 | 192 |
193 // Send the renderer process the current preferences supplied by the | 193 // Send the renderer process the current preferences supplied by the |
194 // RenderViewHostDelegate. | 194 // RenderViewHostDelegate. |
195 virtual void SyncRendererPrefs() = 0; | 195 virtual void SyncRendererPrefs() = 0; |
196 | 196 |
197 // Returns the current WebKit preferences. | 197 // Returns the current WebKit preferences. Note: WebPreferences is cached, so |
| 198 // this lookup will be fast |
198 virtual WebPreferences GetWebkitPreferences() = 0; | 199 virtual WebPreferences GetWebkitPreferences() = 0; |
199 | 200 |
| 201 // If any state that affects the webkit preferences changed, this method must |
| 202 // be called. This triggers recomputing preferences. |
| 203 virtual void OnWebkitPreferencesChanged() = 0; |
| 204 |
200 // Passes a list of Webkit preferences to the renderer. | 205 // Passes a list of Webkit preferences to the renderer. |
201 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 206 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
202 | 207 |
203 // Retrieves the list of AudioOutputController objects associated | 208 // Retrieves the list of AudioOutputController objects associated |
204 // with this object and passes it to the callback you specify, on | 209 // with this object and passes it to the callback you specify, on |
205 // the same thread on which you called the method. | 210 // the same thread on which you called the method. |
206 typedef std::list<scoped_refptr<media::AudioOutputController> > | 211 typedef std::list<scoped_refptr<media::AudioOutputController> > |
207 AudioOutputControllerList; | 212 AudioOutputControllerList; |
208 typedef base::Callback<void(const AudioOutputControllerList&)> | 213 typedef base::Callback<void(const AudioOutputControllerList&)> |
209 GetAudioOutputControllersCallback; | 214 GetAudioOutputControllersCallback; |
(...skipping 14 matching lines...) Expand all Loading... |
224 | 229 |
225 private: | 230 private: |
226 // This interface should only be implemented inside content. | 231 // This interface should only be implemented inside content. |
227 friend class RenderViewHostImpl; | 232 friend class RenderViewHostImpl; |
228 RenderViewHost() {} | 233 RenderViewHost() {} |
229 }; | 234 }; |
230 | 235 |
231 } // namespace content | 236 } // namespace content |
232 | 237 |
233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 238 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |