| 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 #include "ios/web/interstitials/native_web_interstitial_impl.h" | 5 #include "ios/web/interstitials/native_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 "ios/web/public/interstitials/web_interstitial_delegate.h" | 10 #include "ios/web/public/interstitials/web_interstitial_delegate.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 if (!content_view_) { | 50 if (!content_view_) { |
| 51 content_view_.reset([[CRWGenericContentView alloc] | 51 content_view_.reset([[CRWGenericContentView alloc] |
| 52 initWithView:delegate_->GetContentView()]); | 52 initWithView:delegate_->GetContentView()]); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 WebInterstitialDelegate* NativeWebInterstitialImpl::GetDelegate() const { | 56 WebInterstitialDelegate* NativeWebInterstitialImpl::GetDelegate() const { |
| 57 return delegate_.get(); | 57 return delegate_.get(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void NativeWebInterstitialImpl::EvaluateJavaScript( | |
| 61 NSString* script, | |
| 62 JavaScriptCompletion completionHandler) { | |
| 63 NOTREACHED() << "JavaScript cannot be evaluated on native interstitials."; | |
| 64 } | |
| 65 | |
| 66 void NativeWebInterstitialImpl::ExecuteJavaScript( | 60 void NativeWebInterstitialImpl::ExecuteJavaScript( |
| 67 NSString* script, | 61 NSString* script, |
| 68 JavaScriptResultBlock completion_handler) { | 62 JavaScriptResultBlock completion_handler) { |
| 69 NOTREACHED() << "JavaScript cannot be executed on native interstitials."; | 63 NOTREACHED() << "JavaScript cannot be executed on native interstitials."; |
| 70 } | 64 } |
| 71 | 65 |
| 72 } // namespace web | 66 } // namespace web |
| OLD | NEW |