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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 InputEventAckState FilterInputEvent( | 144 InputEventAckState FilterInputEvent( |
145 const blink::WebInputEvent& input_event) override; | 145 const blink::WebInputEvent& input_event) override; |
146 void OnSetNeedsFlushInput() override; | 146 void OnSetNeedsFlushInput() override; |
147 void GestureEventAck(const blink::WebGestureEvent& event, | 147 void GestureEventAck(const blink::WebGestureEvent& event, |
148 InputEventAckState ack_result) override; | 148 InputEventAckState ack_result) override; |
149 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 149 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
150 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 150 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
151 bool LockMouse() override; | 151 bool LockMouse() override; |
152 void UnlockMouse() override; | 152 void UnlockMouse() override; |
153 void OnSwapCompositorFrame(uint32_t output_surface_id, | 153 void OnSwapCompositorFrame(uint32_t output_surface_id, |
| 154 const cc::SurfaceId& surface_id, |
154 cc::CompositorFrame frame) override; | 155 cc::CompositorFrame frame) override; |
155 void ClearCompositorFrame() override; | 156 void ClearCompositorFrame() override; |
156 void DidOverscroll(const DidOverscrollParams& params) override; | 157 void DidOverscroll(const DidOverscrollParams& params) override; |
157 void DidStopFlinging() override; | 158 void DidStopFlinging() override; |
158 uint32_t GetSurfaceClientId() override; | 159 uint32_t GetSurfaceClientId() override; |
159 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 160 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
160 const SkBitmap& zoomed_bitmap) override; | 161 const SkBitmap& zoomed_bitmap) override; |
161 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 162 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
162 override; | 163 override; |
163 void LockCompositingSurface() override; | 164 void LockCompositingSurface() override; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // If we have locks on a frame during a ContentViewCore swap or a context | 297 // If we have locks on a frame during a ContentViewCore swap or a context |
297 // lost, the frame is no longer valid and we can safely release all the locks. | 298 // lost, the frame is no longer valid and we can safely release all the locks. |
298 // Use this method to release all the locks. | 299 // Use this method to release all the locks. |
299 void ReleaseLocksOnSurface(); | 300 void ReleaseLocksOnSurface(); |
300 | 301 |
301 // Drop any incoming frames from the renderer when there are locks on the | 302 // Drop any incoming frames from the renderer when there are locks on the |
302 // current frame. | 303 // current frame. |
303 void RetainFrame(uint32_t output_surface_id, cc::CompositorFrame frame); | 304 void RetainFrame(uint32_t output_surface_id, cc::CompositorFrame frame); |
304 | 305 |
305 void InternalSwapCompositorFrame(uint32_t output_surface_id, | 306 void InternalSwapCompositorFrame(uint32_t output_surface_id, |
| 307 const cc::SurfaceId& surface_id, |
306 cc::CompositorFrame frame); | 308 cc::CompositorFrame frame); |
307 void OnLostResources(); | 309 void OnLostResources(); |
308 | 310 |
309 enum VSyncRequestType { | 311 enum VSyncRequestType { |
310 FLUSH_INPUT = 1 << 0, | 312 FLUSH_INPUT = 1 << 0, |
311 BEGIN_FRAME = 1 << 1, | 313 BEGIN_FRAME = 1 << 1, |
312 PERSISTENT_BEGIN_FRAME = 1 << 2 | 314 PERSISTENT_BEGIN_FRAME = 1 << 2 |
313 }; | 315 }; |
314 void RequestVSyncUpdate(uint32_t requests); | 316 void RequestVSyncUpdate(uint32_t requests); |
315 void StartObservingRootWindow(); | 317 void StartObservingRootWindow(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 gfx::Vector2dF last_scroll_offset_; | 403 gfx::Vector2dF last_scroll_offset_; |
402 | 404 |
403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 405 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
404 | 406 |
405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 407 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
406 }; | 408 }; |
407 | 409 |
408 } // namespace content | 410 } // namespace content |
409 | 411 |
410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |