Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2826303003: Let selection events bypass ContentViewCore (Closed)
Patch Set: call Initialize() Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class MotionEventAndroid; 45 class MotionEventAndroid;
46 struct DidOverscrollParams; 46 struct DidOverscrollParams;
47 } 47 }
48 48
49 namespace content { 49 namespace content {
50 class ContentViewCoreImpl; 50 class ContentViewCoreImpl;
51 class ImeAdapterAndroid; 51 class ImeAdapterAndroid;
52 class OverscrollControllerAndroid; 52 class OverscrollControllerAndroid;
53 class RenderWidgetHost; 53 class RenderWidgetHost;
54 class RenderWidgetHostImpl; 54 class RenderWidgetHostImpl;
55 class SelectionPopupController;
55 class SynchronousCompositorHost; 56 class SynchronousCompositorHost;
56 class SynchronousCompositorClient; 57 class SynchronousCompositorClient;
57 struct NativeWebKeyboardEvent; 58 struct NativeWebKeyboardEvent;
58 59
59 // ----------------------------------------------------------------------------- 60 // -----------------------------------------------------------------------------
60 // See comments in render_widget_host_view.h about this class and its members. 61 // See comments in render_widget_host_view.h about this class and its members.
61 // ----------------------------------------------------------------------------- 62 // -----------------------------------------------------------------------------
62 class CONTENT_EXPORT RenderWidgetHostViewAndroid 63 class CONTENT_EXPORT RenderWidgetHostViewAndroid
63 : public RenderWidgetHostViewBase, 64 : public RenderWidgetHostViewBase,
64 public ui::GestureProviderClient, 65 public ui::GestureProviderClient,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 void SendKeyEvent(const NativeWebKeyboardEvent& event); 238 void SendKeyEvent(const NativeWebKeyboardEvent& event);
238 void SendMouseEvent(const ui::MotionEventAndroid&, int action_button); 239 void SendMouseEvent(const ui::MotionEventAndroid&, int action_button);
239 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); 240 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
240 void SendGestureEvent(const blink::WebGestureEvent& event); 241 void SendGestureEvent(const blink::WebGestureEvent& event);
241 void ResolveTapDisambiguation(double timestamp_seconds, 242 void ResolveTapDisambiguation(double timestamp_seconds,
242 gfx::Point tap_viewport_offset, 243 gfx::Point tap_viewport_offset,
243 bool is_long_press); 244 bool is_long_press);
244 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { 245 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) {
245 ime_adapter_android_ = ime_adapter; 246 ime_adapter_android_ = ime_adapter;
246 } 247 }
248 void set_selection_popup_controller(SelectionPopupController* controller) {
249 selection_popup_controller_ = controller;
250 }
247 251
248 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); 252 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid();
249 253
250 bool OnTouchEvent(const ui::MotionEvent& event); 254 bool OnTouchEvent(const ui::MotionEvent& event);
251 bool OnTouchHandleEvent(const ui::MotionEvent& event); 255 bool OnTouchHandleEvent(const ui::MotionEvent& event);
252 void ResetGestureDetection(); 256 void ResetGestureDetection();
253 void SetDoubleTapSupportEnabled(bool enabled); 257 void SetDoubleTapSupportEnabled(bool enabled);
254 void SetMultiTouchZoomSupportEnabled(bool enabled); 258 void SetMultiTouchZoomSupportEnabled(bool enabled);
255 259
256 void WasResized(); 260 void WasResized();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 bool is_window_activity_started_; 360 bool is_window_activity_started_;
357 361
358 // Used to customize behavior for virtual reality mode, such as the 362 // Used to customize behavior for virtual reality mode, such as the
359 // appearance of overscroll glow and the keyboard. 363 // appearance of overscroll glow and the keyboard.
360 bool is_in_vr_; 364 bool is_in_vr_;
361 365
362 // ContentViewCoreImpl is our interface to the view system. 366 // ContentViewCoreImpl is our interface to the view system.
363 ContentViewCoreImpl* content_view_core_; 367 ContentViewCoreImpl* content_view_core_;
364 368
365 ImeAdapterAndroid* ime_adapter_android_; 369 ImeAdapterAndroid* ime_adapter_android_;
370 SelectionPopupController* selection_popup_controller_;
366 371
367 // The background color of the widget. 372 // The background color of the widget.
368 SkColor background_color_; 373 SkColor background_color_;
369 374
370 // Body background color of the underlying document. 375 // Body background color of the underlying document.
371 SkColor cached_background_color_; 376 SkColor cached_background_color_;
372 377
373 mutable ui::ViewAndroid view_; 378 mutable ui::ViewAndroid view_;
374 379
375 // Manages the Compositor Frames received from the renderer. 380 // Manages the Compositor Frames received from the renderer.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 base::ObserverList<DestructionObserver> destruction_observers_; 425 base::ObserverList<DestructionObserver> destruction_observers_;
421 426
422 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 427 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
423 428
424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
425 }; 430 };
426 431
427 } // namespace content 432 } // namespace content
428 433
429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698