Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 26664002: SyntheticGestureTarget implementation for injecting synthetic input events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styles Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class WebExternalTextureLayer; 46 class WebExternalTextureLayer;
47 class WebTouchEvent; 47 class WebTouchEvent;
48 class WebMouseEvent; 48 class WebMouseEvent;
49 } 49 }
50 50
51 namespace content { 51 namespace content {
52 class ContentViewCoreImpl; 52 class ContentViewCoreImpl;
53 class OverscrollGlow; 53 class OverscrollGlow;
54 class RenderWidgetHost; 54 class RenderWidgetHost;
55 class RenderWidgetHostImpl; 55 class RenderWidgetHostImpl;
56 class SyntheticTouchEventAndroid;
56 struct NativeWebKeyboardEvent; 57 struct NativeWebKeyboardEvent;
57 58
58 // ----------------------------------------------------------------------------- 59 // -----------------------------------------------------------------------------
59 // See comments in render_widget_host_view.h about this class and its members. 60 // See comments in render_widget_host_view.h about this class and its members.
60 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
61 class RenderWidgetHostViewAndroid 62 class RenderWidgetHostViewAndroid
62 : public RenderWidgetHostViewBase, 63 : public RenderWidgetHostViewBase,
63 public BrowserAccessibilityDelegate, 64 public BrowserAccessibilityDelegate,
64 public cc::TextureLayerClient, 65 public cc::TextureLayerClient,
65 public cc::DelegatedRendererLayerClient, 66 public cc::DelegatedRendererLayerClient,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void CopyFromCompositingSurfaceToVideoFrame( 139 virtual void CopyFromCompositingSurfaceToVideoFrame(
139 const gfx::Rect& src_subrect, 140 const gfx::Rect& src_subrect,
140 const scoped_refptr<media::VideoFrame>& target, 141 const scoped_refptr<media::VideoFrame>& target,
141 const base::Callback<void(bool)>& callback) OVERRIDE; 142 const base::Callback<void(bool)>& callback) OVERRIDE;
142 virtual bool CanCopyToVideoFrame() const OVERRIDE; 143 virtual bool CanCopyToVideoFrame() const OVERRIDE;
143 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 144 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
144 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 145 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
145 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 146 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
146 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 147 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
147 InputEventAckState ack_result) OVERRIDE; 148 InputEventAckState ack_result) OVERRIDE;
149 virtual void QueueInputEventToPlatform(const InputEvent& event) OVERRIDE;
148 virtual void SetHasHorizontalScrollbar( 150 virtual void SetHasHorizontalScrollbar(
149 bool has_horizontal_scrollbar) OVERRIDE; 151 bool has_horizontal_scrollbar) OVERRIDE;
150 virtual void SetScrollOffsetPinning( 152 virtual void SetScrollOffsetPinning(
151 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 153 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
152 virtual void UnhandledWheelEvent( 154 virtual void UnhandledWheelEvent(
153 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 155 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
154 virtual InputEventAckState FilterInputEvent( 156 virtual InputEventAckState FilterInputEvent(
155 const WebKit::WebInputEvent& input_event) OVERRIDE; 157 const WebKit::WebInputEvent& input_event) OVERRIDE;
156 virtual void OnSetNeedsFlushInput() OVERRIDE; 158 virtual void OnSetNeedsFlushInput() OVERRIDE;
157 virtual void GestureEventAck(int gesture_event_type, 159 virtual void GestureEventAck(int gesture_event_type,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 330 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
329 331
330 std::queue<base::Closure> ack_callbacks_; 332 std::queue<base::Closure> ack_callbacks_;
331 333
332 // Used to render overscroll overlays. 334 // Used to render overscroll overlays.
333 bool overscroll_effect_enabled_; 335 bool overscroll_effect_enabled_;
334 scoped_ptr<OverscrollGlow> overscroll_effect_; 336 scoped_ptr<OverscrollGlow> overscroll_effect_;
335 337
336 bool flush_input_requested_; 338 bool flush_input_requested_;
337 339
340 scoped_ptr<SyntheticTouchEventAndroid> synthetic_touch_event_;
341
338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 342 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
339 }; 343 };
340 344
341 } // namespace content 345 } // namespace content
342 346
343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 347 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698