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. Note: WebPreferences is cached, so | 197 // Returns the current WebKit preferences. |
198 // this lookup will be fast | |
199 virtual WebPreferences GetWebkitPreferences() = 0; | 198 virtual WebPreferences GetWebkitPreferences() = 0; |
200 | 199 |
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 | |
205 // Passes a list of Webkit preferences to the renderer. | 200 // Passes a list of Webkit preferences to the renderer. |
206 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 201 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
207 | 202 |
208 // Retrieves the list of AudioOutputController objects associated | 203 // Retrieves the list of AudioOutputController objects associated |
209 // with this object and passes it to the callback you specify, on | 204 // with this object and passes it to the callback you specify, on |
210 // the same thread on which you called the method. | 205 // the same thread on which you called the method. |
211 typedef std::list<scoped_refptr<media::AudioOutputController> > | 206 typedef std::list<scoped_refptr<media::AudioOutputController> > |
212 AudioOutputControllerList; | 207 AudioOutputControllerList; |
213 typedef base::Callback<void(const AudioOutputControllerList&)> | 208 typedef base::Callback<void(const AudioOutputControllerList&)> |
214 GetAudioOutputControllersCallback; | 209 GetAudioOutputControllersCallback; |
(...skipping 14 matching lines...) Expand all Loading... |
229 | 224 |
230 private: | 225 private: |
231 // This interface should only be implemented inside content. | 226 // This interface should only be implemented inside content. |
232 friend class RenderViewHostImpl; | 227 friend class RenderViewHostImpl; |
233 RenderViewHost() {} | 228 RenderViewHost() {} |
234 }; | 229 }; |
235 | 230 |
236 } // namespace content | 231 } // namespace content |
237 | 232 |
238 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |