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

Side by Side Diff: ios/web/interstitials/html_web_interstitial_impl.mm

Issue 2281803002: [ios] Removed deprecated JS execution API. (Closed)
Patch Set: Merged with master Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/web/interstitials/html_web_interstitial_impl.h" 5 #import "ios/web/interstitials/html_web_interstitial_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 content_view_.reset([[CRWWebViewContentView alloc] 122 content_view_.reset([[CRWWebViewContentView alloc]
123 initWithWebView:web_view_ 123 initWithWebView:web_view_
124 scrollView:[web_view_ scrollView]]); 124 scrollView:[web_view_ scrollView]]);
125 } 125 }
126 } 126 }
127 127
128 WebInterstitialDelegate* HtmlWebInterstitialImpl::GetDelegate() const { 128 WebInterstitialDelegate* HtmlWebInterstitialImpl::GetDelegate() const {
129 return delegate_.get(); 129 return delegate_.get();
130 } 130 }
131 131
132 void HtmlWebInterstitialImpl::EvaluateJavaScript(
133 NSString* script,
134 JavaScriptCompletion completionHandler) {
135 web::EvaluateJavaScript(web_view_, script, completionHandler);
136 }
137
138 void HtmlWebInterstitialImpl::ExecuteJavaScript( 132 void HtmlWebInterstitialImpl::ExecuteJavaScript(
139 NSString* script, 133 NSString* script,
140 JavaScriptResultBlock completion_handler) { 134 JavaScriptResultBlock completion_handler) {
141 web::ExecuteJavaScript(web_view_, script, completion_handler); 135 web::ExecuteJavaScript(web_view_, script, completion_handler);
142 } 136 }
143 137
144 } // namespace web 138 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/interstitials/html_web_interstitial_impl.h ('k') | ios/web/interstitials/native_web_interstitial_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698