| 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 #include "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) |
| 13 #error "This file requires ARC support." |
| 14 #endif |
| 15 |
| 12 namespace web { | 16 namespace web { |
| 13 | 17 |
| 14 ShellWebClient::ShellWebClient() { | 18 ShellWebClient::ShellWebClient() { |
| 15 } | 19 } |
| 16 | 20 |
| 17 ShellWebClient::~ShellWebClient() { | 21 ShellWebClient::~ShellWebClient() { |
| 18 } | 22 } |
| 19 | 23 |
| 20 WebMainParts* ShellWebClient::CreateWebMainParts() { | 24 WebMainParts* ShellWebClient::CreateWebMainParts() { |
| 21 web_main_parts_.reset(new ShellWebMainParts); | 25 web_main_parts_.reset(new ShellWebMainParts); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 block_callback.Run(true); | 64 block_callback.Run(true); |
| 61 }]]; | 65 }]]; |
| 62 } | 66 } |
| 63 [[UIApplication sharedApplication].keyWindow.rootViewController | 67 [[UIApplication sharedApplication].keyWindow.rootViewController |
| 64 presentViewController:alert | 68 presentViewController:alert |
| 65 animated:YES | 69 animated:YES |
| 66 completion:nil]; | 70 completion:nil]; |
| 67 } | 71 } |
| 68 | 72 |
| 69 } // namespace web | 73 } // namespace web |
| OLD | NEW |