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_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void AcceleratedSurfaceBuffersSwapped( | 76 virtual void AcceleratedSurfaceBuffersSwapped( |
77 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 77 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
78 int gpu_host_id) OVERRIDE; | 78 int gpu_host_id) OVERRIDE; |
79 virtual void AcceleratedSurfacePostSubBuffer( | 79 virtual void AcceleratedSurfacePostSubBuffer( |
80 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 80 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
81 int gpu_host_id) OVERRIDE; | 81 int gpu_host_id) OVERRIDE; |
82 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 82 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
83 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 83 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
84 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 84 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
85 virtual void CopyFromCompositingSurface( | 85 virtual void CopyFromCompositingSurface( |
86 const gfx::Size& size, | 86 const gfx::Rect& src_subrect, |
| 87 const gfx::Size& dst_size, |
87 const base::Callback<void(bool)>& callback, | 88 const base::Callback<void(bool)>& callback, |
88 skia::PlatformCanvas* output) OVERRIDE; | 89 skia::PlatformCanvas* output) OVERRIDE; |
89 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
90 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 91 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
91 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 92 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
92 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 93 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
93 virtual void UnhandledWheelEvent( | 94 virtual void UnhandledWheelEvent( |
94 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 95 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
95 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 96 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, |
96 bool processed) OVERRIDE; | 97 bool processed) OVERRIDE; |
(...skipping 20 matching lines...) Expand all Loading... |
117 // The size that we want the renderer to be. We keep this in a separate | 118 // The size that we want the renderer to be. We keep this in a separate |
118 // variable because resizing is async. | 119 // variable because resizing is async. |
119 gfx::Size requested_size_; | 120 gfx::Size requested_size_; |
120 | 121 |
121 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 122 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace content | 125 } // namespace content |
125 | 126 |
126 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 127 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |