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

Unified Diff: content/public/test/web_contents_tester.h

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 10 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/public/test/web_contents_tester.h
diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h
index c3fe69110ed3dfeb5151ad86a5c005ace0e90944..e587a36f43bc383dc098d55ecad233cf9718af5f 100644
--- a/content/public/test/web_contents_tester.h
+++ b/content/public/test/web_contents_tester.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "ui/base/page_transition_types.h"
class GURL;
@@ -17,6 +18,7 @@ class BrowserContext;
class RenderFrameHost;
class RenderViewHost;
class SiteInstance;
+class WebContentsImpl;
class WebContents;
struct Referrer;
@@ -57,6 +59,10 @@ class WebContentsTester {
BrowserContext* browser_context,
SiteInstance* instance);
+ // Simulates the WebContentsView being shown to, or hidden from, the user.
+ void WasShownForTest();
+ void WasHiddenForTest();
+
// Simulates the appropriate RenderView (pending if any, current otherwise)
// sending a navigate notification for the NavigationController pending entry.
virtual void CommitPendingNavigation() = 0;
@@ -120,6 +126,14 @@ class WebContentsTester {
// Returns headers that were passed in the previous SaveFrameWithHeaders(...)
// call.
virtual const std::string& GetSaveFrameHeaders() = 0;
+
+ protected:
+ WebContentsTester();
+
+ private:
+ WebContentsImpl* web_contents();
+
+ DISALLOW_COPY_AND_ASSIGN(WebContentsTester);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698