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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 virtual void SetWebUIProperty(const std::string& name, | 224 virtual void SetWebUIProperty(const std::string& name, |
| 225 const std::string& value) OVERRIDE; | 225 const std::string& value) OVERRIDE; |
| 226 virtual void Zoom(PageZoom zoom) OVERRIDE; | 226 virtual void Zoom(PageZoom zoom) OVERRIDE; |
| 227 virtual void SyncRendererPrefs() OVERRIDE; | 227 virtual void SyncRendererPrefs() OVERRIDE; |
| 228 virtual void ToggleSpeechInput() OVERRIDE; | 228 virtual void ToggleSpeechInput() OVERRIDE; |
| 229 virtual WebPreferences GetWebkitPreferences() OVERRIDE; | 229 virtual WebPreferences GetWebkitPreferences() OVERRIDE; |
| 230 virtual void UpdateWebkitPreferences( | 230 virtual void UpdateWebkitPreferences( |
| 231 const WebPreferences& prefs) OVERRIDE; | 231 const WebPreferences& prefs) OVERRIDE; |
| 232 virtual void GetAudioOutputControllers( | 232 virtual void GetAudioOutputControllers( |
| 233 const GetAudioOutputControllersCallback& callback) const OVERRIDE; | 233 const GetAudioOutputControllersCallback& callback) const OVERRIDE; |
| 234 virtual void CopyFromBackingStore( | |
| 235 const gfx::Rect& src_rect, | |
| 236 const gfx::Size& accelerated_dst_size, | |
| 237 const base::Callback<void(bool, const SkBitmap&)>& callback, | |
| 238 const SkBitmap::Config& bitmap_config) OVERRIDE; | |
| 239 | |
| 240 void CopyFromBackingStoreCallback( | |
|
nasko
2014/03/26 22:48:27
This isn't a RenderViewHost method override, so it
mfomitchev
2014/03/27 21:51:34
Done.
| |
| 241 const base::Callback<void(bool, const SkBitmap&)>& callback, | |
| 242 bool success, | |
| 243 const SkBitmap& bitmap); | |
| 234 | 244 |
| 235 #if defined(OS_ANDROID) | 245 #if defined(OS_ANDROID) |
| 236 virtual void ActivateNearestFindResult(int request_id, | 246 virtual void ActivateNearestFindResult(int request_id, |
| 237 float x, | 247 float x, |
| 238 float y) OVERRIDE; | 248 float y) OVERRIDE; |
| 239 virtual void RequestFindMatchRects(int current_version) OVERRIDE; | 249 virtual void RequestFindMatchRects(int current_version) OVERRIDE; |
| 240 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE; | 250 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE; |
| 241 #endif | 251 #endif |
| 242 | 252 |
| 243 void set_delegate(RenderViewHostDelegate* d) { | 253 void set_delegate(RenderViewHostDelegate* d) { |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 719 // long to execute, depending on the number of active views in the | 729 // long to execute, depending on the number of active views in the |
| 720 // SiteInstance. | 730 // SiteInstance. |
| 721 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 731 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 722 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 732 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
| 723 | 733 |
| 724 // Called after receiving the SwapOutACK when the RVH is in state pending | 734 // Called after receiving the SwapOutACK when the RVH is in state pending |
| 725 // shutdown. Also called if the unload timer times out. | 735 // shutdown. Also called if the unload timer times out. |
| 726 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 736 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 727 base::Closure pending_shutdown_on_swap_out_; | 737 base::Closure pending_shutdown_on_swap_out_; |
| 728 | 738 |
| 739 int copy_requests_; | |
|
nasko
2014/03/26 22:48:27
Please add a comment on what this is used for and
mfomitchev
2014/03/27 21:51:34
Done.
| |
| 740 | |
| 729 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 741 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 730 | 742 |
| 731 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 743 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 732 }; | 744 }; |
| 733 | 745 |
| 734 #if defined(COMPILER_MSVC) | 746 #if defined(COMPILER_MSVC) |
| 735 #pragma warning(pop) | 747 #pragma warning(pop) |
| 736 #endif | 748 #endif |
| 737 | 749 |
| 738 } // namespace content | 750 } // namespace content |
| 739 | 751 |
| 740 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 752 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |