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

Unified Diff: content/test/test_render_view_host.h

Issue 853883007: Add occlusion support to WebContentsImpl and RenderWidgetHostView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove mac comment Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.h
diff --git a/content/test/test_render_view_host.h b/content/test/test_render_view_host.h
index c086a8a197504725f7225a67354f32f902e2f011..6769357858515ddd2531b1e68df4fa046d60d87b 100644
--- a/content/test/test_render_view_host.h
+++ b/content/test/test_render_view_host.h
@@ -69,6 +69,8 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
void Show() override;
void Hide() override;
bool IsShowing() override;
+ void WasUnOccluded() override;
+ void WasOccluded() override;
gfx::Rect GetViewBounds() const override;
#if defined(OS_MACOSX)
void SetActive(bool active) override;
@@ -137,6 +139,7 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
#endif
bool is_showing() const { return is_showing_; }
+ bool is_occluded() const { return is_occluded_; }
bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
protected:
@@ -144,6 +147,7 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
private:
bool is_showing_;
+ bool is_occluded_;
bool did_swap_compositor_frame_;
ui::DummyTextInputClient text_input_client_;
};
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698