OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/chrome/browser/ui/static_content/static_html_view_controller.h" | 5 #include "ios/chrome/browser/ui/static_content/static_html_view_controller.h" |
6 | 6 |
7 #include <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.h> |
8 | 8 |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/mac/bundle_locations.h" | 12 #include "base/mac/bundle_locations.h" |
13 #include "base/mac/foundation_util.h" | 13 #include "base/mac/foundation_util.h" |
14 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
15 #include "ios/web/public/referrer.h" | 15 #include "ios/web/public/referrer.h" |
16 #import "ios/web/public/web_state/ui/crw_native_content.h" | 16 #import "ios/web/public/web_state/ui/crw_native_content.h" |
17 #import "ios/web/public/web_view_creation_util.h" | 17 #import "ios/web/public/web_view_creation_util.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 allowingReadAccessToURL:resourcesRootDirectory_]; | 287 allowingReadAccessToURL:resourcesRootDirectory_]; |
288 } else { | 288 } else { |
289 NSURL* resourceURL = [self resourceURL]; | 289 NSURL* resourceURL = [self resourceURL]; |
290 [generator_ generateHtml:^(NSString* HTML) { | 290 [generator_ generateHtml:^(NSString* HTML) { |
291 [webView loadHTMLString:HTML baseURL:resourceURL]; | 291 [webView loadHTMLString:HTML baseURL:resourceURL]; |
292 }]; | 292 }]; |
293 } | 293 } |
294 } | 294 } |
295 | 295 |
296 @end | 296 @end |
OLD | NEW |