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

Unified Diff: content/test/test_render_view_host.cc

Issue 853883007: Add occlusion support to WebContentsImpl and RenderWidgetHostView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 65cb97409a204f7c10419082d495e2df7bb2e0a4..f3c83fd0091e2626ac213579e612d38461d86602 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -48,6 +48,7 @@ void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params,
TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
: rwh_(RenderWidgetHostImpl::From(rwh)),
is_showing_(false),
+ is_occluded_(false),
did_swap_compositor_frame_(false) {
rwh_->SetView(this);
}
@@ -89,6 +90,7 @@ bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const {
void TestRenderWidgetHostView::Show() {
is_showing_ = true;
+ is_occluded_ = false;
}
void TestRenderWidgetHostView::Hide() {
@@ -99,6 +101,14 @@ bool TestRenderWidgetHostView::IsShowing() {
return is_showing_;
}
+void TestRenderWidgetHostView::WasUnOccluded() {
+ is_occluded_ = false;
+}
+
+void TestRenderWidgetHostView::WasOccluded() {
+ is_occluded_ = true;
+}
+
void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status,
int error_code) {
delete this;
« content/public/browser/render_widget_host_view.h ('K') | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698