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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_WEB_VIEW_UTIL_H_
6 #define IOS_WEB_WEB_VIEW_UTIL_H_
7
8 namespace web {
9
10 // Returns true if WKWebView is being used instead of UIWebView.
stuartmorgan 2014/12/11 23:59:38 Could you add a: TODO(stuartmorgan): Eliminate thi
11 bool IsWKWebViewEnabled();
12
13 // If |flag| is true, causes IsWKWebViewEnabled to return false, even if
14 // WKWebView is enabled using the compile time flag. Should only be called from
15 // ScopedUIWebViewEnforcer for use in unit tests that need to test UIWebView
16 // while WKWebView is enabled.
17 void SetForceUIWebView(bool flag);
18
19 // Returns true if use of UIWebView is to be enforced.
20 bool GetForceUIWebView();
21
22 } // web
23
24 #endif // IOS_WEB_WEB_VIEW_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698