| 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 17 matching lines...) Expand all Loading... |
| 28 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 28 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 29 #include "content/browser/renderer_host/text_input_manager.h" | 29 #include "content/browser/renderer_host/text_input_manager.h" |
| 30 #include "content/common/content_export.h" | 30 #include "content/common/content_export.h" |
| 31 #include "content/public/browser/readback_types.h" | 31 #include "content/public/browser/readback_types.h" |
| 32 #include "gpu/command_buffer/common/mailbox.h" | 32 #include "gpu/command_buffer/common/mailbox.h" |
| 33 #include "third_party/skia/include/core/SkColor.h" | 33 #include "third_party/skia/include/core/SkColor.h" |
| 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/base/ui_base_types.h" |
| 38 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 39 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
| 39 #include "ui/gfx/geometry/size.h" | 40 #include "ui/gfx/geometry/size.h" |
| 40 #include "ui/gfx/geometry/vector2d_f.h" | 41 #include "ui/gfx/geometry/vector2d_f.h" |
| 41 #include "ui/gfx/selection_bound.h" | 42 #include "ui/gfx/selection_bound.h" |
| 42 #include "ui/touch_selection/touch_selection_controller.h" | 43 #include "ui/touch_selection/touch_selection_controller.h" |
| 43 | 44 |
| 44 namespace ui { | 45 namespace ui { |
| 45 class MotionEventAndroid; | 46 class MotionEventAndroid; |
| 46 struct DidOverscrollParams; | 47 struct DidOverscrollParams; |
| 47 } | 48 } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 void OnContentViewCoreDestroyed() override; | 204 void OnContentViewCoreDestroyed() override; |
| 204 void OnAttachedToWindow() override; | 205 void OnAttachedToWindow() override; |
| 205 void OnDetachedFromWindow() override; | 206 void OnDetachedFromWindow() override; |
| 206 | 207 |
| 207 // viz::FrameEvictor implementation | 208 // viz::FrameEvictor implementation |
| 208 void EvictDelegatedFrame() override; | 209 void EvictDelegatedFrame() override; |
| 209 | 210 |
| 210 // StylusTextSelectorClient implementation. | 211 // StylusTextSelectorClient implementation. |
| 211 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; | 212 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; |
| 212 void OnStylusSelectUpdate(float x, float y) override; | 213 void OnStylusSelectUpdate(float x, float y) override; |
| 213 void OnStylusSelectEnd() override {}; | 214 void OnStylusSelectEnd(float x, float y) override; |
| 214 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; | 215 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; |
| 215 | 216 |
| 216 // ui::TouchSelectionControllerClient implementation. | 217 // ui::TouchSelectionControllerClient implementation. |
| 217 bool SupportsAnimation() const override; | 218 bool SupportsAnimation() const override; |
| 218 void SetNeedsAnimate() override; | 219 void SetNeedsAnimate() override; |
| 219 void MoveCaret(const gfx::PointF& position) override; | 220 void MoveCaret(const gfx::PointF& position) override; |
| 220 void MoveRangeSelectionExtent(const gfx::PointF& extent) override; | 221 void MoveRangeSelectionExtent(const gfx::PointF& extent) override; |
| 221 void SelectBetweenCoordinates(const gfx::PointF& base, | 222 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 222 const gfx::PointF& extent) override; | 223 const gfx::PointF& extent) override; |
| 223 void OnSelectionEvent(ui::SelectionEventType event) override; | 224 void OnSelectionEvent(ui::SelectionEventType event) override; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 int GetTouchHandleHeight(); | 258 int GetTouchHandleHeight(); |
| 258 void ResetGestureDetection(); | 259 void ResetGestureDetection(); |
| 259 void SetDoubleTapSupportEnabled(bool enabled); | 260 void SetDoubleTapSupportEnabled(bool enabled); |
| 260 void SetMultiTouchZoomSupportEnabled(bool enabled); | 261 void SetMultiTouchZoomSupportEnabled(bool enabled); |
| 261 | 262 |
| 262 void WasResized(); | 263 void WasResized(); |
| 263 | 264 |
| 264 bool HasValidFrame() const; | 265 bool HasValidFrame() const; |
| 265 | 266 |
| 266 void MoveCaret(const gfx::Point& point); | 267 void MoveCaret(const gfx::Point& point); |
| 267 void ShowContextMenuAtTouchHandle(const gfx::Point& point); | 268 void ShowContextMenuAtPoint(const gfx::Point& point, ui::MenuSourceType); |
| 268 void DismissTextHandles(); | 269 void DismissTextHandles(); |
| 269 void SetTextHandlesTemporarilyHidden(bool hidden); | 270 void SetTextHandlesTemporarilyHidden(bool hidden); |
| 270 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 271 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 271 void OnSelectWordAroundCaretAck(bool did_select, | 272 void OnSelectWordAroundCaretAck(bool did_select, |
| 272 int start_adjust, | 273 int start_adjust, |
| 273 int end_adjust); | 274 int end_adjust); |
| 274 | 275 |
| 275 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); | 276 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); |
| 276 | 277 |
| 277 void SetSynchronousCompositorClient(SynchronousCompositorClient* client); | 278 void SetSynchronousCompositorClient(SynchronousCompositorClient* client); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 base::ObserverList<DestructionObserver> destruction_observers_; | 431 base::ObserverList<DestructionObserver> destruction_observers_; |
| 431 | 432 |
| 432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 433 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 433 | 434 |
| 434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 435 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 435 }; | 436 }; |
| 436 | 437 |
| 437 } // namespace content | 438 } // namespace content |
| 438 | 439 |
| 439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |