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 #ifndef IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 5 #ifndef IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
6 #define IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 6 #define IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
7 | 7 |
8 #include "ios/web/interstitials/web_interstitial_impl.h" | 8 #include "ios/web/interstitials/web_interstitial_impl.h" |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 16 matching lines...) Expand all Loading... |
27 std::unique_ptr<NativeWebInterstitialDelegate> delegate); | 27 std::unique_ptr<NativeWebInterstitialDelegate> delegate); |
28 ~NativeWebInterstitialImpl() override; | 28 ~NativeWebInterstitialImpl() override; |
29 | 29 |
30 // WebInterstitialImpl implementation: | 30 // WebInterstitialImpl implementation: |
31 CRWContentView* GetContentView() const override; | 31 CRWContentView* GetContentView() const override; |
32 | 32 |
33 protected: | 33 protected: |
34 // WebInterstitialImpl implementation: | 34 // WebInterstitialImpl implementation: |
35 void PrepareForDisplay() override; | 35 void PrepareForDisplay() override; |
36 WebInterstitialDelegate* GetDelegate() const override; | 36 WebInterstitialDelegate* GetDelegate() const override; |
37 void EvaluateJavaScript(NSString* script, | |
38 JavaScriptCompletion completionHandler) override; | |
39 void ExecuteJavaScript(NSString* script, | 37 void ExecuteJavaScript(NSString* script, |
40 JavaScriptResultBlock completion_handler) override; | 38 JavaScriptResultBlock completion_handler) override; |
41 | 39 |
42 private: | 40 private: |
43 // The native interstitial delegate. | 41 // The native interstitial delegate. |
44 std::unique_ptr<NativeWebInterstitialDelegate> delegate_; | 42 std::unique_ptr<NativeWebInterstitialDelegate> delegate_; |
45 // The transient content view containing interstitial content. | 43 // The transient content view containing interstitial content. |
46 base::scoped_nsobject<CRWContentView> content_view_; | 44 base::scoped_nsobject<CRWContentView> content_view_; |
47 }; | 45 }; |
48 | 46 |
49 } // namespace web | 47 } // namespace web |
50 | 48 |
51 #endif // IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 49 #endif // IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
OLD | NEW |