Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 23 #include "content/browser/accessibility/browser_accessibility_manager.h" | 23 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 24 #include "content/browser/android/content_view_core_impl_observer.h" | 24 #include "content/browser/android/content_view_core_impl_observer.h" |
| 25 #include "content/browser/renderer_host/delegated_frame_evictor.h" | 25 #include "content/browser/renderer_host/delegated_frame_evictor.h" |
| 26 #include "content/browser/renderer_host/ime_adapter_android.h" | 26 #include "content/browser/renderer_host/ime_adapter_android.h" |
| 27 #include "content/browser/renderer_host/input/stylus_text_selector.h" | 27 #include "content/browser/renderer_host/input/stylus_text_selector.h" |
| 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/common/content_export.h" | 29 #include "content/common/content_export.h" |
| 30 #include "content/public/browser/readback_types.h" | 30 #include "content/public/browser/readback_types.h" |
| 31 #include "gpu/command_buffer/common/mailbox.h" | 31 #include "gpu/command_buffer/common/mailbox.h" |
| 32 #include "third_party/skia/include/core/SkColor.h" | 32 #include "third_party/skia/include/core/SkColor.h" |
| 33 #include "ui/android/overscroll_refresh.h" | |
| 33 #include "ui/android/view_android.h" | 34 #include "ui/android/view_android.h" |
| 34 #include "ui/android/window_android_observer.h" | 35 #include "ui/android/window_android_observer.h" |
| 35 #include "ui/events/android/motion_event_android.h" | 36 #include "ui/events/android/motion_event_android.h" |
| 36 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 37 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
| 37 #include "ui/gfx/geometry/size.h" | 38 #include "ui/gfx/geometry/size.h" |
| 38 #include "ui/gfx/geometry/vector2d_f.h" | 39 #include "ui/gfx/geometry/vector2d_f.h" |
| 39 #include "ui/gfx/selection_bound.h" | 40 #include "ui/gfx/selection_bound.h" |
| 40 #include "ui/touch_selection/touch_selection_controller.h" | 41 #include "ui/touch_selection/touch_selection_controller.h" |
| 41 | 42 |
| 42 class GURL; | 43 class GURL; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 72 // ----------------------------------------------------------------------------- | 73 // ----------------------------------------------------------------------------- |
| 73 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 74 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| 74 : public RenderWidgetHostViewBase, | 75 : public RenderWidgetHostViewBase, |
| 75 public ui::GestureProviderClient, | 76 public ui::GestureProviderClient, |
| 76 public ui::WindowAndroidObserver, | 77 public ui::WindowAndroidObserver, |
| 77 public DelegatedFrameEvictorClient, | 78 public DelegatedFrameEvictorClient, |
| 78 public StylusTextSelectorClient, | 79 public StylusTextSelectorClient, |
| 79 public ui::TouchSelectionControllerClient, | 80 public ui::TouchSelectionControllerClient, |
| 80 public content::ContentViewCoreImplObserver { | 81 public content::ContentViewCoreImplObserver { |
| 81 public: | 82 public: |
| 82 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, | 83 RenderWidgetHostViewAndroid( |
| 83 ContentViewCoreImpl* content_view_core); | 84 RenderWidgetHostImpl* widget, |
| 85 ContentViewCoreImpl* content_view_core, | |
| 86 ui::OverscrollRefreshHandler* overscroll_refresh_handler); | |
|
Jinsuk Kim
2016/11/25 01:49:18
Consider adding a setter instead as this is an opt
rlanday
2016/11/28 21:17:51
I'm not sure how much I like that, because if this
Jinsuk Kim
2016/11/28 23:06:40
We wouldn't want to keep adding parameters to the
| |
| 84 ~RenderWidgetHostViewAndroid() override; | 87 ~RenderWidgetHostViewAndroid() override; |
| 85 | 88 |
| 86 void Blur(); | 89 void Blur(); |
| 87 | 90 |
| 88 // RenderWidgetHostView implementation. | 91 // RenderWidgetHostView implementation. |
| 89 bool OnMessageReceived(const IPC::Message& msg) override; | 92 bool OnMessageReceived(const IPC::Message& msg) override; |
| 90 void InitAsChild(gfx::NativeView parent_view) override; | 93 void InitAsChild(gfx::NativeView parent_view) override; |
| 91 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 94 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 92 const gfx::Rect& pos) override; | 95 const gfx::Rect& pos) override; |
| 93 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 96 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 | 315 |
| 313 bool is_showing_; | 316 bool is_showing_; |
| 314 | 317 |
| 315 // Window-specific bits that affect widget visibility. | 318 // Window-specific bits that affect widget visibility. |
| 316 bool is_window_visible_; | 319 bool is_window_visible_; |
| 317 bool is_window_activity_started_; | 320 bool is_window_activity_started_; |
| 318 | 321 |
| 319 // ContentViewCoreImpl is our interface to the view system. | 322 // ContentViewCoreImpl is our interface to the view system. |
| 320 ContentViewCoreImpl* content_view_core_; | 323 ContentViewCoreImpl* content_view_core_; |
| 321 | 324 |
| 325 ui::OverscrollRefreshHandler* overscroll_refresh_handler_; | |
| 326 | |
| 322 ImeAdapterAndroid ime_adapter_android_; | 327 ImeAdapterAndroid ime_adapter_android_; |
| 323 | 328 |
| 324 // Body background color of the underlying document. | 329 // Body background color of the underlying document. |
| 325 SkColor cached_background_color_; | 330 SkColor cached_background_color_; |
| 326 | 331 |
| 327 mutable ui::ViewAndroid view_; | 332 mutable ui::ViewAndroid view_; |
| 328 | 333 |
| 329 // Manages the Compositor Frames received from the renderer. | 334 // Manages the Compositor Frames received from the renderer. |
| 330 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; | 335 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; |
| 331 | 336 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 380 gfx::Vector2dF last_scroll_offset_; | 385 gfx::Vector2dF last_scroll_offset_; |
| 381 | 386 |
| 382 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 387 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 383 | 388 |
| 384 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 389 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 385 }; | 390 }; |
| 386 | 391 |
| 387 } // namespace content | 392 } // namespace content |
| 388 | 393 |
| 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |