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 #include "ios/web/shell/shell_web_client.h" | 5 #import "ios/web/shell/shell_web_client.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include "ios/web/public/user_agent.h" | 9 #include "ios/web/public/user_agent.h" |
10 #include "ios/web/shell/shell_web_main_parts.h" | 10 #include "ios/web/shell/shell_web_main_parts.h" |
11 | 11 |
12 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
13 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
14 #endif | 14 #endif |
15 | 15 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 block_callback.Run(true); | 64 block_callback.Run(true); |
65 }]]; | 65 }]]; |
66 } | 66 } |
67 [[UIApplication sharedApplication].keyWindow.rootViewController | 67 [[UIApplication sharedApplication].keyWindow.rootViewController |
68 presentViewController:alert | 68 presentViewController:alert |
69 animated:YES | 69 animated:YES |
70 completion:nil]; | 70 completion:nil]; |
71 } | 71 } |
72 | 72 |
73 } // namespace web | 73 } // namespace web |
OLD | NEW |