OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/view_controller.h" | 5 #import "ios/web/shell/view_controller.h" |
6 | 6 |
7 #import <MobileCoreServices/MobileCoreServices.h> | 7 #import <MobileCoreServices/MobileCoreServices.h> |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #import "base/mac/scoped_nsobject.h" | 14 #import "base/mac/scoped_nsobject.h" |
15 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
16 #import "ios/net/crn_http_protocol_handler.h" | 16 #import "ios/net/crn_http_protocol_handler.h" |
17 #import "ios/net/empty_nsurlcache.h" | 17 #import "ios/net/empty_nsurlcache.h" |
18 #import "ios/net/request_tracker.h" | 18 #import "ios/net/request_tracker.h" |
19 #import "ios/web/public/navigation_manager.h" | 19 #import "ios/web/public/navigation_manager.h" |
20 #include "ios/web/public/referrer.h" | 20 #include "ios/web/public/referrer.h" |
21 #import "ios/web/public/web_state/context_menu_params.h" | 21 #import "ios/web/public/web_state/context_menu_params.h" |
22 #include "ios/web/public/web_state/web_state.h" | 22 #import "ios/web/public/web_state/web_state.h" |
23 #import "ios/web/public/web_state/web_state_delegate_bridge.h" | 23 #import "ios/web/public/web_state/web_state_delegate_bridge.h" |
24 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 24 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
25 #import "net/base/mac/url_conversions.h" | 25 #import "net/base/mac/url_conversions.h" |
26 #include "ui/base/page_transition_types.h" | 26 #include "ui/base/page_transition_types.h" |
27 | 27 |
28 #if !defined(__has_feature) || !__has_feature(objc_arc) | 28 #if !defined(__has_feature) || !__has_feature(objc_arc) |
29 #error "This file requires ARC support." | 29 #error "This file requires ARC support." |
30 #endif | 30 #endif |
31 | 31 |
32 NSString* const kWebShellBackButtonAccessibilityLabel = @"Back"; | 32 NSString* const kWebShellBackButtonAccessibilityLabel = @"Back"; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" | 318 [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" |
319 style:UIAlertActionStyleCancel | 319 style:UIAlertActionStyleCancel |
320 handler:nil]]; | 320 handler:nil]]; |
321 | 321 |
322 [self presentViewController:alert animated:YES completion:nil]; | 322 [self presentViewController:alert animated:YES completion:nil]; |
323 | 323 |
324 return YES; | 324 return YES; |
325 } | 325 } |
326 | 326 |
327 @end | 327 @end |
OLD | NEW |