Chromium Code Reviews| 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. |
|
jam
2014/07/21 17:40:33
nit: now that the behavior of this method changed
chrishtr
2014/07/21 18:16:07
Done.
| |
| 198 virtual WebPreferences GetWebkitPreferences() = 0; | 198 virtual WebPreferences GetWebkitPreferences() = 0; |
| 199 | 199 |
| 200 // If any state that affects the webkit preferences changed, this method must | |
| 201 // be called. This triggers recomputing preferences. | |
| 202 virtual void OnWebkitPreferencesChanged() = 0; | |
| 203 | |
| 200 // Passes a list of Webkit preferences to the renderer. | 204 // Passes a list of Webkit preferences to the renderer. |
| 201 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 205 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
| 202 | 206 |
| 203 // Retrieves the list of AudioOutputController objects associated | 207 // Retrieves the list of AudioOutputController objects associated |
| 204 // with this object and passes it to the callback you specify, on | 208 // with this object and passes it to the callback you specify, on |
| 205 // the same thread on which you called the method. | 209 // the same thread on which you called the method. |
| 206 typedef std::list<scoped_refptr<media::AudioOutputController> > | 210 typedef std::list<scoped_refptr<media::AudioOutputController> > |
| 207 AudioOutputControllerList; | 211 AudioOutputControllerList; |
| 208 typedef base::Callback<void(const AudioOutputControllerList&)> | 212 typedef base::Callback<void(const AudioOutputControllerList&)> |
| 209 GetAudioOutputControllersCallback; | 213 GetAudioOutputControllersCallback; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 224 | 228 |
| 225 private: | 229 private: |
| 226 // This interface should only be implemented inside content. | 230 // This interface should only be implemented inside content. |
| 227 friend class RenderViewHostImpl; | 231 friend class RenderViewHostImpl; |
| 228 RenderViewHost() {} | 232 RenderViewHost() {} |
| 229 }; | 233 }; |
| 230 | 234 |
| 231 } // namespace content | 235 } // namespace content |
| 232 | 236 |
| 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 237 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |