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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const blink::WebInputEvent& input_event) OVERRIDE; | 151 const blink::WebInputEvent& input_event) OVERRIDE; |
152 virtual void OnSetNeedsFlushInput() OVERRIDE; | 152 virtual void OnSetNeedsFlushInput() OVERRIDE; |
153 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 153 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
154 InputEventAckState ack_result) OVERRIDE; | 154 InputEventAckState ack_result) OVERRIDE; |
155 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; | 155 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; |
156 virtual bool LockMouse() OVERRIDE; | 156 virtual bool LockMouse() OVERRIDE; |
157 virtual void UnlockMouse() OVERRIDE; | 157 virtual void UnlockMouse() OVERRIDE; |
158 virtual void OnSwapCompositorFrame( | 158 virtual void OnSwapCompositorFrame( |
159 uint32 output_surface_id, | 159 uint32 output_surface_id, |
160 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 160 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
| 161 virtual void DidOverscroll(const DidOverscrollParams& params) OVERRIDE; |
161 virtual void DidStopFlinging() OVERRIDE; | 162 virtual void DidStopFlinging() OVERRIDE; |
162 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 163 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
163 const SkBitmap& zoomed_bitmap) OVERRIDE; | 164 const SkBitmap& zoomed_bitmap) OVERRIDE; |
164 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 165 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
165 OVERRIDE; | 166 OVERRIDE; |
166 virtual void LockCompositingSurface() OVERRIDE; | 167 virtual void LockCompositingSurface() OVERRIDE; |
167 virtual void UnlockCompositingSurface() OVERRIDE; | 168 virtual void UnlockCompositingSurface() OVERRIDE; |
168 | 169 |
169 // cc::DelegatedFrameResourceCollectionClient implementation. | 170 // cc::DelegatedFrameResourceCollectionClient implementation. |
170 virtual void UnusedResourcesAreAvailable() OVERRIDE; | 171 virtual void UnusedResourcesAreAvailable() OVERRIDE; |
(...skipping 21 matching lines...) Expand all Loading... |
192 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 193 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
193 SkColor GetCachedBackgroundColor() const; | 194 SkColor GetCachedBackgroundColor() const; |
194 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 195 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
195 void SendTouchEvent(const blink::WebTouchEvent& event); | 196 void SendTouchEvent(const blink::WebTouchEvent& event); |
196 void SendMouseEvent(const blink::WebMouseEvent& event); | 197 void SendMouseEvent(const blink::WebMouseEvent& event); |
197 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); | 198 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); |
198 void SendGestureEvent(const blink::WebGestureEvent& event); | 199 void SendGestureEvent(const blink::WebGestureEvent& event); |
199 | 200 |
200 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | 201 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
201 void OnDidChangeBodyBackgroundColor(SkColor color); | 202 void OnDidChangeBodyBackgroundColor(SkColor color); |
202 void OnDidOverscroll(const DidOverscrollParams& params); | |
203 void OnStartContentIntent(const GURL& content_url); | 203 void OnStartContentIntent(const GURL& content_url); |
204 void OnSetNeedsBeginFrame(bool enabled); | 204 void OnSetNeedsBeginFrame(bool enabled); |
205 void OnSmartClipDataExtracted(const base::string16& result); | 205 void OnSmartClipDataExtracted(const base::string16& result); |
206 | 206 |
207 bool OnTouchEvent(const ui::MotionEvent& event); | 207 bool OnTouchEvent(const ui::MotionEvent& event); |
208 void ResetGestureDetection(); | 208 void ResetGestureDetection(); |
209 void SetDoubleTapSupportEnabled(bool enabled); | 209 void SetDoubleTapSupportEnabled(bool enabled); |
210 void SetMultiTouchZoomSupportEnabled(bool enabled); | 210 void SetMultiTouchZoomSupportEnabled(bool enabled); |
211 | 211 |
212 long GetNativeImeAdapter(); | 212 long GetNativeImeAdapter(); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 }; | 353 }; |
354 | 354 |
355 scoped_ptr<LastFrameInfo> last_frame_info_; | 355 scoped_ptr<LastFrameInfo> last_frame_info_; |
356 | 356 |
357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
358 }; | 358 }; |
359 | 359 |
360 } // namespace content | 360 } // namespace content |
361 | 361 |
362 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 362 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |