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

Unified Diff: ios/web/public/test/fakes/test_web_state.mm

Issue 2807843002: Refactor creation of SadTabView into a tab helper object (Closed)
Patch Set: Attempt to fix build dependency 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/test_web_state.mm
diff --git a/ios/web/public/test/fakes/test_web_state.mm b/ios/web/public/test/fakes/test_web_state.mm
index 293473e10266e5fd92d5ab5042c32ff1f3f98912..902c0fa0a958b776bd11f909dc97eaff649b1e3e 100644
--- a/ios/web/public/test/fakes/test_web_state.mm
+++ b/ios/web/public/test/fakes/test_web_state.mm
@@ -23,6 +23,7 @@ TestWebState::TestWebState()
: browser_state_(nullptr),
web_usage_enabled_(false),
is_loading_(false),
+ is_showing_transient_content_view_(false),
trust_level_(kAbsolute),
content_is_html_(true) {}
@@ -176,6 +177,21 @@ void TestWebState::OnProvisionalNavigationStarted(const GURL& url) {
observer.ProvisionalNavigationStarted(url);
}
+void TestWebState::OnRenderProcessGone() {
+ for (auto& observer : observers_)
+ observer.RenderProcessGone();
+}
+
+void TestWebState::ShowTransientContentView(CRWContentView* content_view) {
+ if (content_view) {
+ is_showing_transient_content_view_ = true;
+ }
+}
+
+void TestWebState::ClearTransientContentView() {
+ is_showing_transient_content_view_ = false;
+}
+
void TestWebState::SetCurrentURL(const GURL& url) {
url_ = url;
}
@@ -201,4 +217,8 @@ base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
return base::WeakPtr<WebState>();
}
+bool TestWebState::IsShowingTransientContentView() {
+ return is_showing_transient_content_view_;
+}
+
} // namespace web
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698