OLD | NEW |
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 Loading... |
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 |
OLD | NEW |