| 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 23 matching lines...) Expand all Loading... |
| 34 #include "ui/android/delegated_frame_host_android.h" | 34 #include "ui/android/delegated_frame_host_android.h" |
| 35 #include "ui/android/view_android.h" | 35 #include "ui/android/view_android.h" |
| 36 #include "ui/android/view_client.h" | 36 #include "ui/android/view_client.h" |
| 37 #include "ui/android/window_android_observer.h" | 37 #include "ui/android/window_android_observer.h" |
| 38 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 38 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
| 39 #include "ui/gfx/geometry/size.h" | 39 #include "ui/gfx/geometry/size.h" |
| 40 #include "ui/gfx/geometry/vector2d_f.h" | 40 #include "ui/gfx/geometry/vector2d_f.h" |
| 41 #include "ui/gfx/selection_bound.h" | 41 #include "ui/gfx/selection_bound.h" |
| 42 #include "ui/touch_selection/touch_selection_controller.h" | 42 #include "ui/touch_selection/touch_selection_controller.h" |
| 43 | 43 |
| 44 class GURL; | |
| 45 | |
| 46 namespace ui { | 44 namespace ui { |
| 47 class MotionEventAndroid; | 45 class MotionEventAndroid; |
| 48 struct DidOverscrollParams; | 46 struct DidOverscrollParams; |
| 49 } | 47 } |
| 50 | 48 |
| 51 namespace content { | 49 namespace content { |
| 52 class ContentViewCoreImpl; | 50 class ContentViewCoreImpl; |
| 53 class ImeAdapterAndroid; | 51 class ImeAdapterAndroid; |
| 54 class OverscrollControllerAndroid; | 52 class OverscrollControllerAndroid; |
| 55 class RenderWidgetHost; | 53 class RenderWidgetHost; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 void SendGestureEvent(const blink::WebGestureEvent& event); | 224 void SendGestureEvent(const blink::WebGestureEvent& event); |
| 227 void ResolveTapDisambiguation(double timestamp_seconds, | 225 void ResolveTapDisambiguation(double timestamp_seconds, |
| 228 gfx::Point tap_viewport_offset, | 226 gfx::Point tap_viewport_offset, |
| 229 bool is_long_press); | 227 bool is_long_press); |
| 230 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { | 228 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { |
| 231 ime_adapter_android_ = ime_adapter; | 229 ime_adapter_android_ = ime_adapter; |
| 232 } | 230 } |
| 233 | 231 |
| 234 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); | 232 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); |
| 235 | 233 |
| 236 void OnStartContentIntent(const GURL& content_url, bool is_main_frame); | |
| 237 | |
| 238 bool OnTouchEvent(const ui::MotionEvent& event); | 234 bool OnTouchEvent(const ui::MotionEvent& event); |
| 239 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 235 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
| 240 void ResetGestureDetection(); | 236 void ResetGestureDetection(); |
| 241 void SetDoubleTapSupportEnabled(bool enabled); | 237 void SetDoubleTapSupportEnabled(bool enabled); |
| 242 void SetMultiTouchZoomSupportEnabled(bool enabled); | 238 void SetMultiTouchZoomSupportEnabled(bool enabled); |
| 243 | 239 |
| 244 void WasResized(); | 240 void WasResized(); |
| 245 | 241 |
| 246 bool HasValidFrame() const; | 242 bool HasValidFrame() const; |
| 247 | 243 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 float prev_bottom_shown_pix_; | 396 float prev_bottom_shown_pix_; |
| 401 | 397 |
| 402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 398 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 403 | 399 |
| 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 400 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 405 }; | 401 }; |
| 406 | 402 |
| 407 } // namespace content | 403 } // namespace content |
| 408 | 404 |
| 409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |