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

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

Issue 2819493002: [Test] Move DelegatedFrameEvictor into components -public_deps (Closed)
Patch Set: use if null instead of feature 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
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/i18n/rtl.h" 17 #include "base/i18n/rtl.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/process/process.h" 20 #include "base/process/process.h"
21 #include "cc/input/selection.h" 21 #include "cc/input/selection.h"
22 #include "cc/output/begin_frame_args.h" 22 #include "cc/output/begin_frame_args.h"
23 #include "cc/scheduler/begin_frame_source.h" 23 #include "cc/scheduler/begin_frame_source.h"
24 #include "components/viz/frame_sinks/frame_evictor.h"
24 #include "content/browser/accessibility/browser_accessibility_manager.h" 25 #include "content/browser/accessibility/browser_accessibility_manager.h"
25 #include "content/browser/android/content_view_core_impl_observer.h" 26 #include "content/browser/android/content_view_core_impl_observer.h"
26 #include "content/browser/renderer_host/delegated_frame_evictor.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/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"
(...skipping 20 matching lines...) Expand all
57 struct NativeWebKeyboardEvent; 57 struct NativeWebKeyboardEvent;
58 58
59 // ----------------------------------------------------------------------------- 59 // -----------------------------------------------------------------------------
60 // See comments in render_widget_host_view.h about this class and its members. 60 // See comments in render_widget_host_view.h about this class and its members.
61 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
62 class CONTENT_EXPORT RenderWidgetHostViewAndroid 62 class CONTENT_EXPORT RenderWidgetHostViewAndroid
63 : public RenderWidgetHostViewBase, 63 : public RenderWidgetHostViewBase,
64 public ui::GestureProviderClient, 64 public ui::GestureProviderClient,
65 public ui::ViewClient, 65 public ui::ViewClient,
66 public ui::WindowAndroidObserver, 66 public ui::WindowAndroidObserver,
67 public DelegatedFrameEvictorClient, 67 public viz::FrameEvictorClient,
68 public StylusTextSelectorClient, 68 public StylusTextSelectorClient,
69 public ui::TouchSelectionControllerClient, 69 public ui::TouchSelectionControllerClient,
70 public content::ContentViewCoreImplObserver, 70 public content::ContentViewCoreImplObserver,
71 public content::TextInputManager::Observer, 71 public content::TextInputManager::Observer,
72 public ui::DelegatedFrameHostAndroid::Client, 72 public ui::DelegatedFrameHostAndroid::Client,
73 public cc::BeginFrameObserver { 73 public cc::BeginFrameObserver {
74 public: 74 public:
75 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 75 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
76 ContentViewCoreImpl* content_view_core); 76 ContentViewCoreImpl* content_view_core);
77 ~RenderWidgetHostViewAndroid() override; 77 ~RenderWidgetHostViewAndroid() override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void OnDetachCompositor() override; 180 void OnDetachCompositor() override;
181 void OnAnimate(base::TimeTicks begin_frame_time) override; 181 void OnAnimate(base::TimeTicks begin_frame_time) override;
182 void OnActivityStopped() override; 182 void OnActivityStopped() override;
183 void OnActivityStarted() override; 183 void OnActivityStarted() override;
184 184
185 // content::ContentViewCoreImplObserver implementation. 185 // content::ContentViewCoreImplObserver implementation.
186 void OnContentViewCoreDestroyed() override; 186 void OnContentViewCoreDestroyed() override;
187 void OnAttachedToWindow() override; 187 void OnAttachedToWindow() override;
188 void OnDetachedFromWindow() override; 188 void OnDetachedFromWindow() override;
189 189
190 // DelegatedFrameEvictor implementation 190 // viz::FrameEvictor implementation
191 void EvictDelegatedFrame() override; 191 void EvictDelegatedFrame() override;
192 192
193 // StylusTextSelectorClient implementation. 193 // StylusTextSelectorClient implementation.
194 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; 194 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override;
195 void OnStylusSelectUpdate(float x, float y) override; 195 void OnStylusSelectUpdate(float x, float y) override;
196 void OnStylusSelectEnd() override {}; 196 void OnStylusSelectEnd() override {};
197 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; 197 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override;
198 198
199 // ui::TouchSelectionControllerClient implementation. 199 // ui::TouchSelectionControllerClient implementation.
200 bool SupportsAnimation() const override; 200 bool SupportsAnimation() const override;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 std::unique_ptr<ui::TouchSelectionController> selection_controller_; 382 std::unique_ptr<ui::TouchSelectionController> selection_controller_;
383 383
384 // Bounds to use if we have no backing ContentViewCore 384 // Bounds to use if we have no backing ContentViewCore
385 gfx::Rect default_bounds_; 385 gfx::Rect default_bounds_;
386 386
387 const bool using_browser_compositor_; 387 const bool using_browser_compositor_;
388 std::unique_ptr<SynchronousCompositorHost> sync_compositor_; 388 std::unique_ptr<SynchronousCompositorHost> sync_compositor_;
389 389
390 SynchronousCompositorClient* synchronous_compositor_client_; 390 SynchronousCompositorClient* synchronous_compositor_client_;
391 391
392 std::unique_ptr<DelegatedFrameEvictor> frame_evictor_; 392 std::unique_ptr<viz::FrameEvictor> frame_evictor_;
393 393
394 bool observing_root_window_; 394 bool observing_root_window_;
395 395
396 // The last scroll offset of the view. 396 // The last scroll offset of the view.
397 gfx::Vector2dF last_scroll_offset_; 397 gfx::Vector2dF last_scroll_offset_;
398 398
399 float prev_top_shown_pix_; 399 float prev_top_shown_pix_;
400 float prev_bottom_shown_pix_; 400 float prev_bottom_shown_pix_;
401 401
402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
403 403
404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
405 }; 405 };
406 406
407 } // namespace content 407 } // namespace content
408 408
409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698