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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class WebExternalTextureLayer; | 45 class WebExternalTextureLayer; |
46 class WebTouchEvent; | 46 class WebTouchEvent; |
47 class WebMouseEvent; | 47 class WebMouseEvent; |
48 } | 48 } |
49 | 49 |
50 namespace content { | 50 namespace content { |
51 class ContentViewCoreImpl; | 51 class ContentViewCoreImpl; |
52 class OverscrollGlow; | 52 class OverscrollGlow; |
53 class RenderWidgetHost; | 53 class RenderWidgetHost; |
54 class RenderWidgetHostImpl; | 54 class RenderWidgetHostImpl; |
| 55 struct DidOverscrollParams; |
55 struct NativeWebKeyboardEvent; | 56 struct NativeWebKeyboardEvent; |
56 | 57 |
57 // ----------------------------------------------------------------------------- | 58 // ----------------------------------------------------------------------------- |
58 // See comments in render_widget_host_view.h about this class and its members. | 59 // See comments in render_widget_host_view.h about this class and its members. |
59 // ----------------------------------------------------------------------------- | 60 // ----------------------------------------------------------------------------- |
60 class RenderWidgetHostViewAndroid | 61 class RenderWidgetHostViewAndroid |
61 : public RenderWidgetHostViewBase, | 62 : public RenderWidgetHostViewBase, |
62 public BrowserAccessibilityDelegate, | 63 public BrowserAccessibilityDelegate, |
63 public cc::DelegatedFrameResourceCollectionClient, | 64 public cc::DelegatedFrameResourceCollectionClient, |
64 public ImageTransportFactoryAndroidObserver, | 65 public ImageTransportFactoryAndroidObserver, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 const blink::WebInputEvent& input_event) OVERRIDE; | 160 const blink::WebInputEvent& input_event) OVERRIDE; |
160 virtual void OnSetNeedsFlushInput() OVERRIDE; | 161 virtual void OnSetNeedsFlushInput() OVERRIDE; |
161 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 162 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
162 InputEventAckState ack_result) OVERRIDE; | 163 InputEventAckState ack_result) OVERRIDE; |
163 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; | 164 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; |
164 virtual bool LockMouse() OVERRIDE; | 165 virtual bool LockMouse() OVERRIDE; |
165 virtual void UnlockMouse() OVERRIDE; | 166 virtual void UnlockMouse() OVERRIDE; |
166 virtual void OnSwapCompositorFrame( | 167 virtual void OnSwapCompositorFrame( |
167 uint32 output_surface_id, | 168 uint32 output_surface_id, |
168 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 169 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
169 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | |
170 gfx::Vector2dF current_fling_velocity) OVERRIDE; | |
171 virtual void DidStopFlinging() OVERRIDE; | 170 virtual void DidStopFlinging() OVERRIDE; |
172 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 171 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
173 const SkBitmap& zoomed_bitmap) OVERRIDE; | 172 const SkBitmap& zoomed_bitmap) OVERRIDE; |
174 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 173 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
175 OVERRIDE; | 174 OVERRIDE; |
176 virtual void LockCompositingSurface() OVERRIDE; | 175 virtual void LockCompositingSurface() OVERRIDE; |
177 virtual void UnlockCompositingSurface() OVERRIDE; | 176 virtual void UnlockCompositingSurface() OVERRIDE; |
178 | 177 |
179 // Implementation of BrowserAccessibilityDelegate: | 178 // Implementation of BrowserAccessibilityDelegate: |
180 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 179 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 SkColor GetCachedBackgroundColor() const; | 212 SkColor GetCachedBackgroundColor() const; |
214 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 213 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
215 void SendTouchEvent(const blink::WebTouchEvent& event); | 214 void SendTouchEvent(const blink::WebTouchEvent& event); |
216 void SendMouseEvent(const blink::WebMouseEvent& event); | 215 void SendMouseEvent(const blink::WebMouseEvent& event); |
217 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); | 216 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); |
218 void SendGestureEvent(const blink::WebGestureEvent& event); | 217 void SendGestureEvent(const blink::WebGestureEvent& event); |
219 void SendBeginFrame(const cc::BeginFrameArgs& args); | 218 void SendBeginFrame(const cc::BeginFrameArgs& args); |
220 | 219 |
221 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | 220 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
222 void OnDidChangeBodyBackgroundColor(SkColor color); | 221 void OnDidChangeBodyBackgroundColor(SkColor color); |
| 222 void OnDidOverscroll(const DidOverscrollParams& params); |
223 void OnStartContentIntent(const GURL& content_url); | 223 void OnStartContentIntent(const GURL& content_url); |
224 void OnSetNeedsBeginFrame(bool enabled); | 224 void OnSetNeedsBeginFrame(bool enabled); |
225 void OnSmartClipDataExtracted(const base::string16& result); | 225 void OnSmartClipDataExtracted(const base::string16& result); |
226 | 226 |
227 bool OnTouchEvent(const ui::MotionEvent& event); | 227 bool OnTouchEvent(const ui::MotionEvent& event); |
228 void ResetGestureDetection(); | 228 void ResetGestureDetection(); |
229 void SetDoubleTapSupportEnabled(bool enabled); | 229 void SetDoubleTapSupportEnabled(bool enabled); |
230 void SetMultiTouchZoomSupportEnabled(bool enabled); | 230 void SetMultiTouchZoomSupportEnabled(bool enabled); |
231 | 231 |
232 long GetNativeImeAdapter(); | 232 long GetNativeImeAdapter(); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 }; | 373 }; |
374 | 374 |
375 scoped_ptr<LastFrameInfo> last_frame_info_; | 375 scoped_ptr<LastFrameInfo> last_frame_info_; |
376 | 376 |
377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
378 }; | 378 }; |
379 | 379 |
380 } // namespace content | 380 } // namespace content |
381 | 381 |
382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |