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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void DidOverscroll(const DidOverscrollParams& params) override; | 154 void DidOverscroll(const DidOverscrollParams& params) override; |
155 void DidStopFlinging() override; | 155 void DidStopFlinging() override; |
156 uint32_t GetSurfaceClientId() override; | 156 uint32_t GetSurfaceClientId() override; |
157 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 157 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
158 const SkBitmap& zoomed_bitmap) override; | 158 const SkBitmap& zoomed_bitmap) override; |
159 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 159 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
160 override; | 160 override; |
161 void LockCompositingSurface() override; | 161 void LockCompositingSurface() override; |
162 void UnlockCompositingSurface() override; | 162 void UnlockCompositingSurface() override; |
163 void OnDidNavigateMainFrameToNewPage() override; | 163 void OnDidNavigateMainFrameToNewPage() override; |
| 164 void SetNeedsBeginFrames(bool needs_begin_frames) override; |
164 | 165 |
165 // cc::SurfaceFactoryClient implementation. | 166 // cc::SurfaceFactoryClient implementation. |
166 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 167 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
167 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 168 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
168 | 169 |
169 // ui::GestureProviderClient implementation. | 170 // ui::GestureProviderClient implementation. |
170 void OnGestureEvent(const ui::GestureEventData& gesture) override; | 171 void OnGestureEvent(const ui::GestureEventData& gesture) override; |
171 | 172 |
172 // ui::WindowAndroidObserver implementation. | 173 // ui::WindowAndroidObserver implementation. |
173 void OnCompositingDidCommit() override; | 174 void OnCompositingDidCommit() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 207 |
207 // Non-virtual methods | 208 // Non-virtual methods |
208 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 209 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
209 SkColor GetCachedBackgroundColor() const; | 210 SkColor GetCachedBackgroundColor() const; |
210 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 211 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
211 void SendMouseEvent(const blink::WebMouseEvent& event); | 212 void SendMouseEvent(const blink::WebMouseEvent& event); |
212 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); | 213 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); |
213 void SendGestureEvent(const blink::WebGestureEvent& event); | 214 void SendGestureEvent(const blink::WebGestureEvent& event); |
214 | 215 |
215 void OnStartContentIntent(const GURL& content_url, bool is_main_frame); | 216 void OnStartContentIntent(const GURL& content_url, bool is_main_frame); |
216 void OnSetNeedsBeginFrames(bool enabled); | |
217 void OnSmartClipDataExtracted(const base::string16& text, | 217 void OnSmartClipDataExtracted(const base::string16& text, |
218 const base::string16& html, | 218 const base::string16& html, |
219 const gfx::Rect rect); | 219 const gfx::Rect rect); |
220 | 220 |
221 bool OnTouchEvent(const ui::MotionEvent& event); | 221 bool OnTouchEvent(const ui::MotionEvent& event); |
222 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 222 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
223 void ResetGestureDetection(); | 223 void ResetGestureDetection(); |
224 void SetDoubleTapSupportEnabled(bool enabled); | 224 void SetDoubleTapSupportEnabled(bool enabled); |
225 void SetMultiTouchZoomSupportEnabled(bool enabled); | 225 void SetMultiTouchZoomSupportEnabled(bool enabled); |
226 | 226 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 gfx::Vector2dF last_scroll_offset_; | 389 gfx::Vector2dF last_scroll_offset_; |
390 | 390 |
391 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 391 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
392 | 392 |
393 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 393 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
394 }; | 394 }; |
395 | 395 |
396 } // namespace content | 396 } // namespace content |
397 | 397 |
398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |