| 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_HTML_WEB_INTERSTITIAL_IMPL_H_ | 5 #ifndef IOS_WEB_INTERSTITIALS_HTML_WEB_INTERSTITIAL_IMPL_H_ |
| 6 #define IOS_WEB_INTERSTITIALS_HTML_WEB_INTERSTITIAL_IMPL_H_ | 6 #define IOS_WEB_INTERSTITIALS_HTML_WEB_INTERSTITIAL_IMPL_H_ |
| 7 | 7 |
| 8 #import <WebKit/WebKit.h> | 8 #import <WebKit/WebKit.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/mac/scoped_nsobject.h" | 12 #import "base/mac/scoped_nsobject.h" |
| 13 #include "ios/web/interstitials/web_interstitial_impl.h" | 13 #import "ios/web/interstitials/web_interstitial_impl.h" |
| 14 | 14 |
| 15 namespace web { | 15 namespace web { |
| 16 | 16 |
| 17 class HtmlWebInterstitialDelegate; | 17 class HtmlWebInterstitialDelegate; |
| 18 class HtmlWebInterstitialImpl; | 18 class HtmlWebInterstitialImpl; |
| 19 | 19 |
| 20 // A concrete subclass of WebInterstitialImpl that is used to display | 20 // A concrete subclass of WebInterstitialImpl that is used to display |
| 21 // interstitials created via HTML. | 21 // interstitials created via HTML. |
| 22 class HtmlWebInterstitialImpl : public WebInterstitialImpl { | 22 class HtmlWebInterstitialImpl : public WebInterstitialImpl { |
| 23 public: | 23 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 51 // The web view used to show the content. View needs to be resized by the | 51 // The web view used to show the content. View needs to be resized by the |
| 52 // caller. | 52 // caller. |
| 53 WKWebView* web_view_; // strong | 53 WKWebView* web_view_; // strong |
| 54 // The CRWContentView used to display |web_view_controller_|'s view. | 54 // The CRWContentView used to display |web_view_controller_|'s view. |
| 55 base::scoped_nsobject<CRWContentView> content_view_; | 55 base::scoped_nsobject<CRWContentView> content_view_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace web | 58 } // namespace web |
| 59 | 59 |
| 60 #endif // IOS_WEB_INTERSTITIALS_HTML_WEB_INTERSTITIAL_IMPL_H_ | 60 #endif // IOS_WEB_INTERSTITIALS_HTML_WEB_INTERSTITIAL_IMPL_H_ |
| OLD | NEW |