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

Unified Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.h

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + Replied to dcheng@ Comments Created 4 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: third_party/WebKit/Source/web/tests/FrameTestHelpers.h
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.h b/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
index 3f91ae389c8c5a81503a74c3c91ca4bf6e824a71..4ad829d69f4754ec931fa30d71d07b06963cc70d 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
@@ -168,6 +168,17 @@ private:
RawPtrWillBePersistent<WebRemoteFrameImpl> const m_frame;
};
+class TestWebRemoteFrameClientForVisibility : public TestWebRemoteFrameClient {
dcheng 2016/01/11 19:07:59 Put this directly in WebFrameTest.cpp: no need to
EhsanK 2016/06/09 17:42:53 Done.
+public:
+ TestWebRemoteFrameClientForVisibility();
+ void visibilityChanged(bool visible) override { m_visible = visible; }
+
+ bool isVisible() const { return m_visible; }
+
+private:
+ bool m_visible;
+};
+
class TestWebViewClient : public WebViewClient {
public:
virtual ~TestWebViewClient() { }
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698