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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 const std::string& value) OVERRIDE; | 232 const std::string& value) OVERRIDE; |
233 virtual void Zoom(PageZoom zoom) OVERRIDE; | 233 virtual void Zoom(PageZoom zoom) OVERRIDE; |
234 virtual void SyncRendererPrefs() OVERRIDE; | 234 virtual void SyncRendererPrefs() OVERRIDE; |
235 virtual void ToggleSpeechInput() OVERRIDE; | 235 virtual void ToggleSpeechInput() OVERRIDE; |
236 virtual WebPreferences GetWebkitPreferences() OVERRIDE; | 236 virtual WebPreferences GetWebkitPreferences() OVERRIDE; |
237 virtual void UpdateWebkitPreferences( | 237 virtual void UpdateWebkitPreferences( |
238 const WebPreferences& prefs) OVERRIDE; | 238 const WebPreferences& prefs) OVERRIDE; |
239 virtual void NotifyTimezoneChange() OVERRIDE; | 239 virtual void NotifyTimezoneChange() OVERRIDE; |
240 virtual void GetAudioOutputControllers( | 240 virtual void GetAudioOutputControllers( |
241 const GetAudioOutputControllersCallback& callback) const OVERRIDE; | 241 const GetAudioOutputControllersCallback& callback) const OVERRIDE; |
| 242 virtual void CopyFromBackingStore( |
| 243 const gfx::Rect& src_rect, |
| 244 const gfx::Size& accelerated_dst_size, |
| 245 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 246 |
| 247 void CopyFromBackingStoreCallback( |
| 248 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 249 bool success, |
| 250 const SkBitmap& bitmap); |
242 | 251 |
243 #if defined(OS_ANDROID) | 252 #if defined(OS_ANDROID) |
244 virtual void ActivateNearestFindResult(int request_id, | 253 virtual void ActivateNearestFindResult(int request_id, |
245 float x, | 254 float x, |
246 float y) OVERRIDE; | 255 float y) OVERRIDE; |
247 virtual void RequestFindMatchRects(int current_version) OVERRIDE; | 256 virtual void RequestFindMatchRects(int current_version) OVERRIDE; |
248 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE; | 257 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE; |
249 #endif | 258 #endif |
250 | 259 |
251 void set_delegate(RenderViewHostDelegate* d) { | 260 void set_delegate(RenderViewHostDelegate* d) { |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 // long to execute, depending on the number of active views in the | 753 // long to execute, depending on the number of active views in the |
745 // SiteInstance. | 754 // SiteInstance. |
746 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 755 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
747 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 756 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
748 | 757 |
749 // Called after receiving the SwapOutACK when the RVH is in state pending | 758 // Called after receiving the SwapOutACK when the RVH is in state pending |
750 // shutdown. Also called if the unload timer times out. | 759 // shutdown. Also called if the unload timer times out. |
751 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 760 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
752 base::Closure pending_shutdown_on_swap_out_; | 761 base::Closure pending_shutdown_on_swap_out_; |
753 | 762 |
| 763 int copy_requests_; |
| 764 |
754 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 765 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
755 | 766 |
756 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 767 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
757 }; | 768 }; |
758 | 769 |
759 #if defined(COMPILER_MSVC) | 770 #if defined(COMPILER_MSVC) |
760 #pragma warning(pop) | 771 #pragma warning(pop) |
761 #endif | 772 #endif |
762 | 773 |
763 } // namespace content | 774 } // namespace content |
764 | 775 |
765 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 776 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |