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

Side by Side Diff: ios/web/interstitials/html_web_interstitial_impl.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import Created 3 years, 11 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 #import "ios/web/interstitials/html_web_interstitial_impl.h" 5 #import "ios/web/interstitials/html_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 "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
11 #include "ios/web/interstitials/web_interstitial_facade_delegate.h" 11 #include "ios/web/interstitials/web_interstitial_facade_delegate.h"
12 #include "ios/web/public/interstitials/web_interstitial_delegate.h" 12 #import "ios/web/public/interstitials/web_interstitial_delegate.h"
13 #include "ios/web/public/web_state/ui/crw_web_view_content_view.h" 13 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h"
14 #import "ios/web/public/web_view_creation_util.h" 14 #import "ios/web/public/web_view_creation_util.h"
15 #import "ios/web/web_state/ui/web_view_js_utils.h" 15 #import "ios/web/web_state/ui/web_view_js_utils.h"
16 #include "ios/web/web_state/web_state_impl.h" 16 #import "ios/web/web_state/web_state_impl.h"
17 #import "net/base/mac/url_conversions.h" 17 #import "net/base/mac/url_conversions.h"
18 #include "ui/gfx/geometry/size.h" 18 #include "ui/gfx/geometry/size.h"
19 19
20 #if !defined(__has_feature) || !__has_feature(objc_arc) 20 #if !defined(__has_feature) || !__has_feature(objc_arc)
21 #error "This file requires ARC support." 21 #error "This file requires ARC support."
22 #endif 22 #endif
23 23
24 // The delegate of the web view that is used to display the HTML content. 24 // The delegate of the web view that is used to display the HTML content.
25 // It intercepts JavaScript-triggered commands and forwards them 25 // It intercepts JavaScript-triggered commands and forwards them
26 // to the interstitial. 26 // to the interstitial.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return delegate_.get(); 129 return delegate_.get();
130 } 130 }
131 131
132 void HtmlWebInterstitialImpl::ExecuteJavaScript( 132 void HtmlWebInterstitialImpl::ExecuteJavaScript(
133 NSString* script, 133 NSString* script,
134 JavaScriptResultBlock completion_handler) { 134 JavaScriptResultBlock completion_handler) {
135 web::ExecuteJavaScript(web_view_, script, completion_handler); 135 web::ExecuteJavaScript(web_view_, script, completion_handler);
136 } 136 }
137 137
138 } // namespace web 138 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/interstitials/html_web_interstitial_impl.h ('k') | ios/web/interstitials/native_web_interstitial_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698