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

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

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Remove leftover traces Created 3 years, 6 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 namespace content { 50 namespace content {
51 class ContentViewCoreImpl; 51 class ContentViewCoreImpl;
52 class ImeAdapterAndroid; 52 class ImeAdapterAndroid;
53 class OverscrollControllerAndroid; 53 class OverscrollControllerAndroid;
54 class RenderWidgetHost; 54 class RenderWidgetHost;
55 class RenderWidgetHostImpl; 55 class RenderWidgetHostImpl;
56 class SelectionPopupController; 56 class SelectionPopupController;
57 class SynchronousCompositorHost; 57 class SynchronousCompositorHost;
58 class SynchronousCompositorClient; 58 class SynchronousCompositorClient;
59 class TextSuggestionHostAndroid;
59 class WebContentsAccessibilityAndroid; 60 class WebContentsAccessibilityAndroid;
60 struct NativeWebKeyboardEvent; 61 struct NativeWebKeyboardEvent;
61 struct ContextMenuParams; 62 struct ContextMenuParams;
62 63
63 // ----------------------------------------------------------------------------- 64 // -----------------------------------------------------------------------------
64 // See comments in render_widget_host_view.h about this class and its members. 65 // See comments in render_widget_host_view.h about this class and its members.
65 // ----------------------------------------------------------------------------- 66 // -----------------------------------------------------------------------------
66 class CONTENT_EXPORT RenderWidgetHostViewAndroid 67 class CONTENT_EXPORT RenderWidgetHostViewAndroid
67 : public RenderWidgetHostViewBase, 68 : public RenderWidgetHostViewBase,
68 public ui::GestureProviderClient, 69 public ui::GestureProviderClient,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 bool ShowSelectionMenu(const ContextMenuParams& params); 246 bool ShowSelectionMenu(const ContextMenuParams& params);
246 void ResolveTapDisambiguation(double timestamp_seconds, 247 void ResolveTapDisambiguation(double timestamp_seconds,
247 gfx::Point tap_viewport_offset, 248 gfx::Point tap_viewport_offset,
248 bool is_long_press); 249 bool is_long_press);
249 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) { 250 void set_ime_adapter(ImeAdapterAndroid* ime_adapter) {
250 ime_adapter_android_ = ime_adapter; 251 ime_adapter_android_ = ime_adapter;
251 } 252 }
252 void set_selection_popup_controller(SelectionPopupController* controller) { 253 void set_selection_popup_controller(SelectionPopupController* controller) {
253 selection_popup_controller_ = controller; 254 selection_popup_controller_ = controller;
254 } 255 }
256 void set_text_suggestion_host(
257 TextSuggestionHostAndroid* text_suggestion_host) {
258 text_suggestion_host_ = text_suggestion_host;
259 }
255 260
256 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid(); 261 base::WeakPtr<RenderWidgetHostViewAndroid> GetWeakPtrAndroid();
257 262
258 bool OnTouchEvent(const ui::MotionEvent& event); 263 bool OnTouchEvent(const ui::MotionEvent& event);
259 bool OnTouchHandleEvent(const ui::MotionEvent& event); 264 bool OnTouchHandleEvent(const ui::MotionEvent& event);
260 int GetTouchHandleHeight(); 265 int GetTouchHandleHeight();
261 void ResetGestureDetection(); 266 void ResetGestureDetection();
262 void SetDoubleTapSupportEnabled(bool enabled); 267 void SetDoubleTapSupportEnabled(bool enabled);
263 void SetMultiTouchZoomSupportEnabled(bool enabled); 268 void SetMultiTouchZoomSupportEnabled(bool enabled);
264 269
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 379
375 // Used to customize behavior for virtual reality mode, such as the 380 // Used to customize behavior for virtual reality mode, such as the
376 // appearance of overscroll glow and the keyboard. 381 // appearance of overscroll glow and the keyboard.
377 bool is_in_vr_; 382 bool is_in_vr_;
378 383
379 // ContentViewCoreImpl is our interface to the view system. 384 // ContentViewCoreImpl is our interface to the view system.
380 ContentViewCoreImpl* content_view_core_; 385 ContentViewCoreImpl* content_view_core_;
381 386
382 ImeAdapterAndroid* ime_adapter_android_; 387 ImeAdapterAndroid* ime_adapter_android_;
383 SelectionPopupController* selection_popup_controller_; 388 SelectionPopupController* selection_popup_controller_;
389 TextSuggestionHostAndroid* text_suggestion_host_;
384 390
385 // The background color of the widget. 391 // The background color of the widget.
386 SkColor background_color_; 392 SkColor background_color_;
387 393
388 // Body background color of the underlying document. 394 // Body background color of the underlying document.
389 SkColor cached_background_color_; 395 SkColor cached_background_color_;
390 396
391 mutable ui::ViewAndroid view_; 397 mutable ui::ViewAndroid view_;
392 398
393 // Manages the Compositor Frames received from the renderer. 399 // Manages the Compositor Frames received from the renderer.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 MouseWheelPhaseHandler mouse_wheel_phase_handler_; 450 MouseWheelPhaseHandler mouse_wheel_phase_handler_;
445 451
446 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 452 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
447 453
448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 454 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
449 }; 455 };
450 456
451 } // namespace content 457 } // namespace content
452 458
453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 459 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698