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

Side by Side Diff: ios/web/interstitials/native_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 #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
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
OLDNEW
« no previous file with comments | « ios/web/interstitials/native_web_interstitial_impl.h ('k') | ios/web/interstitials/web_interstitial_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698