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

Unified Diff: ios/web/web_view_util.h

Issue 790803002: Upstream JavaScript injection for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years 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/web_state/js/crw_js_message_manager.mm ('k') | ios/web/web_view_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_view_util.h
diff --git a/ios/web/web_view_util.h b/ios/web/web_view_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b58ad80d36f3a7d142ee0556c27467604c96c56
--- /dev/null
+++ b/ios/web/web_view_util.h
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEB_VIEW_UTIL_H_
+#define IOS_WEB_WEB_VIEW_UTIL_H_
+
+namespace web {
+
+// Returns true if WKWebView is being used instead of UIWebView.
+// TODO(stuartmorgan): Eliminate this global flag in favor of a per-web-view
+// flag.
+bool IsWKWebViewEnabled();
+
+// If |flag| is true, causes IsWKWebViewEnabled to return false, even if
+// WKWebView is enabled using the compile time flag. Should only be called from
+// ScopedUIWebViewEnforcer for use in unit tests that need to test UIWebView
+// while WKWebView is enabled.
+void SetForceUIWebView(bool flag);
+
+// Returns true if use of UIWebView is to be enforced.
+bool GetForceUIWebView();
+
+} // web
+
+#endif // IOS_WEB_WEB_VIEW_UTIL_H_
« no previous file with comments | « ios/web/web_state/js/crw_js_message_manager.mm ('k') | ios/web/web_view_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698