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

Side by Side Diff: ios/web/interstitials/native_web_interstitial_impl.h

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 #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
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_
OLDNEW
« no previous file with comments | « ios/web/interstitials/html_web_interstitial_impl.mm ('k') | ios/web/interstitials/native_web_interstitial_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698