| 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 #import "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 #import "ios/web/public/interstitials/web_interstitial_delegate.h" |
| 11 #import "ios/web/public/web_state/ui/crw_generic_content_view.h" | 11 #import "ios/web/public/web_state/ui/crw_generic_content_view.h" |
| 12 #include "ios/web/web_state/web_state_impl.h" | 12 #import "ios/web/web_state/web_state_impl.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 | 14 |
| 15 #if !defined(__has_feature) || !__has_feature(objc_arc) | 15 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 16 #error "This file requires ARC support." | 16 #error "This file requires ARC support." |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace web { | 19 namespace web { |
| 20 | 20 |
| 21 // static | 21 // static |
| 22 WebInterstitial* WebInterstitial::CreateNativeInterstitial( | 22 WebInterstitial* WebInterstitial::CreateNativeInterstitial( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return delegate_.get(); | 57 return delegate_.get(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void NativeWebInterstitialImpl::ExecuteJavaScript( | 60 void NativeWebInterstitialImpl::ExecuteJavaScript( |
| 61 NSString* script, | 61 NSString* script, |
| 62 JavaScriptResultBlock completion_handler) { | 62 JavaScriptResultBlock completion_handler) { |
| 63 NOTREACHED() << "JavaScript cannot be executed on native interstitials."; | 63 NOTREACHED() << "JavaScript cannot be executed on native interstitials."; |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace web | 66 } // namespace web |
| OLD | NEW |