| 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 <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class WebExternalTextureLayer; | 44 class WebExternalTextureLayer; |
| 45 class WebTouchEvent; | 45 class WebTouchEvent; |
| 46 class WebMouseEvent; | 46 class WebMouseEvent; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace content { | 49 namespace content { |
| 50 class ContentViewCoreImpl; | 50 class ContentViewCoreImpl; |
| 51 class OverscrollGlow; | 51 class OverscrollGlow; |
| 52 class RenderWidgetHost; | 52 class RenderWidgetHost; |
| 53 class RenderWidgetHostImpl; | 53 class RenderWidgetHostImpl; |
| 54 class SyntheticTouchEventAndroid; |
| 54 struct NativeWebKeyboardEvent; | 55 struct NativeWebKeyboardEvent; |
| 55 | 56 |
| 56 // ----------------------------------------------------------------------------- | 57 // ----------------------------------------------------------------------------- |
| 57 // See comments in render_widget_host_view.h about this class and its members. | 58 // See comments in render_widget_host_view.h about this class and its members. |
| 58 // ----------------------------------------------------------------------------- | 59 // ----------------------------------------------------------------------------- |
| 59 class RenderWidgetHostViewAndroid | 60 class RenderWidgetHostViewAndroid |
| 60 : public RenderWidgetHostViewBase, | 61 : public RenderWidgetHostViewBase, |
| 61 public BrowserAccessibilityDelegate, | 62 public BrowserAccessibilityDelegate, |
| 62 public cc::TextureLayerClient, | 63 public cc::TextureLayerClient, |
| 63 public cc::DelegatedRendererLayerClient, | 64 public cc::DelegatedRendererLayerClient, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual void CopyFromCompositingSurfaceToVideoFrame( | 136 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 136 const gfx::Rect& src_subrect, | 137 const gfx::Rect& src_subrect, |
| 137 const scoped_refptr<media::VideoFrame>& target, | 138 const scoped_refptr<media::VideoFrame>& target, |
| 138 const base::Callback<void(bool)>& callback) OVERRIDE; | 139 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 139 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 140 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 140 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 141 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
| 141 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 142 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
| 142 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 143 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
| 143 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 144 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 144 InputEventAckState ack_result) OVERRIDE; | 145 InputEventAckState ack_result) OVERRIDE; |
| 146 virtual void QueueInputEventToPlatform(const InputEvent& event) OVERRIDE; |
| 145 virtual void SetHasHorizontalScrollbar( | 147 virtual void SetHasHorizontalScrollbar( |
| 146 bool has_horizontal_scrollbar) OVERRIDE; | 148 bool has_horizontal_scrollbar) OVERRIDE; |
| 147 virtual void SetScrollOffsetPinning( | 149 virtual void SetScrollOffsetPinning( |
| 148 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 150 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 149 virtual void UnhandledWheelEvent( | 151 virtual void UnhandledWheelEvent( |
| 150 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 152 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 151 virtual InputEventAckState FilterInputEvent( | 153 virtual InputEventAckState FilterInputEvent( |
| 152 const WebKit::WebInputEvent& input_event) OVERRIDE; | 154 const WebKit::WebInputEvent& input_event) OVERRIDE; |
| 153 virtual void OnSetNeedsFlushInput() OVERRIDE; | 155 virtual void OnSetNeedsFlushInput() OVERRIDE; |
| 154 virtual void GestureEventAck(int gesture_event_type, | 156 virtual void GestureEventAck(int gesture_event_type, |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 322 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 321 | 323 |
| 322 std::queue<base::Closure> ack_callbacks_; | 324 std::queue<base::Closure> ack_callbacks_; |
| 323 | 325 |
| 324 // Used to render overscroll overlays. | 326 // Used to render overscroll overlays. |
| 325 bool overscroll_effect_enabled_; | 327 bool overscroll_effect_enabled_; |
| 326 scoped_ptr<OverscrollGlow> overscroll_effect_; | 328 scoped_ptr<OverscrollGlow> overscroll_effect_; |
| 327 | 329 |
| 328 bool flush_input_requested_; | 330 bool flush_input_requested_; |
| 329 | 331 |
| 332 scoped_ptr<SyntheticTouchEventAndroid> synthetic_touch_event_; |
| 333 |
| 330 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 334 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 331 }; | 335 }; |
| 332 | 336 |
| 333 } // namespace content | 337 } // namespace content |
| 334 | 338 |
| 335 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 339 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |