| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 class CONTENT_EXPORT RenderWidgetHostViewAndroid | 73 class CONTENT_EXPORT RenderWidgetHostViewAndroid |
| 74 : public RenderWidgetHostViewBase, | 74 : public RenderWidgetHostViewBase, |
| 75 public ui::GestureProviderClient, | 75 public ui::GestureProviderClient, |
| 76 public ui::WindowAndroidObserver, | 76 public ui::WindowAndroidObserver, |
| 77 public DelegatedFrameEvictorClient, | 77 public DelegatedFrameEvictorClient, |
| 78 public StylusTextSelectorClient, | 78 public StylusTextSelectorClient, |
| 79 public ui::TouchSelectionControllerClient, | 79 public ui::TouchSelectionControllerClient, |
| 80 public content::ContentViewCoreImplObserver, | 80 public content::ContentViewCoreImplObserver, |
| 81 public content::TextInputManager::Observer { | 81 public content::TextInputManager::Observer { |
| 82 public: | 82 public: |
| 83 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, | 83 RenderWidgetHostViewAndroid( |
| 84 ContentViewCoreImpl* content_view_core); | 84 RenderWidgetHostImpl* widget, |
| 85 ContentViewCoreImpl* content_view_core, |
| 86 const base::android::JavaRef<jobject>& overscroll_refresh_handler); |
| 85 ~RenderWidgetHostViewAndroid() override; | 87 ~RenderWidgetHostViewAndroid() override; |
| 86 | 88 |
| 87 void Blur(); | 89 void Blur(); |
| 88 | 90 |
| 89 // RenderWidgetHostView implementation. | 91 // RenderWidgetHostView implementation. |
| 90 bool OnMessageReceived(const IPC::Message& msg) override; | 92 bool OnMessageReceived(const IPC::Message& msg) override; |
| 91 void InitAsChild(gfx::NativeView parent_view) override; | 93 void InitAsChild(gfx::NativeView parent_view) override; |
| 92 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 94 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 93 const gfx::Rect& pos) override; | 95 const gfx::Rect& pos) override; |
| 94 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 96 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 319 |
| 318 bool is_showing_; | 320 bool is_showing_; |
| 319 | 321 |
| 320 // Window-specific bits that affect widget visibility. | 322 // Window-specific bits that affect widget visibility. |
| 321 bool is_window_visible_; | 323 bool is_window_visible_; |
| 322 bool is_window_activity_started_; | 324 bool is_window_activity_started_; |
| 323 | 325 |
| 324 // ContentViewCoreImpl is our interface to the view system. | 326 // ContentViewCoreImpl is our interface to the view system. |
| 325 ContentViewCoreImpl* content_view_core_; | 327 ContentViewCoreImpl* content_view_core_; |
| 326 | 328 |
| 329 // Reference to Java OverscrollRefreshHandler object, which handles swipe to |
| 330 // refresh events |
| 331 base::android::ScopedJavaGlobalRef<jobject> overscroll_refresh_handler_; |
| 332 |
| 327 ImeAdapterAndroid ime_adapter_android_; | 333 ImeAdapterAndroid ime_adapter_android_; |
| 328 | 334 |
| 329 // Body background color of the underlying document. | 335 // Body background color of the underlying document. |
| 330 SkColor cached_background_color_; | 336 SkColor cached_background_color_; |
| 331 | 337 |
| 332 mutable ui::ViewAndroid view_; | 338 mutable ui::ViewAndroid view_; |
| 333 | 339 |
| 334 // Manages the Compositor Frames received from the renderer. | 340 // Manages the Compositor Frames received from the renderer. |
| 335 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; | 341 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; |
| 336 | 342 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 gfx::Vector2dF last_scroll_offset_; | 391 gfx::Vector2dF last_scroll_offset_; |
| 386 | 392 |
| 387 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 393 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 388 | 394 |
| 389 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 395 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 390 }; | 396 }; |
| 391 | 397 |
| 392 } // namespace content | 398 } // namespace content |
| 393 | 399 |
| 394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 400 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |