OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." |
| 7 #endif |
| 8 |
| 9 #import "remoting/ios/app/remoting_resource_factory_external.h" |
| 10 |
| 11 #import "remoting/ios/app/remoting_settings_view_controller.h" |
| 12 |
| 13 @implementation RemotingResourceFactoryExternal |
| 14 |
| 15 - (UIViewController*)wrapRootViewController:(UIViewController*)controller { |
| 16 // No need to wrap the controller. The external impl will just pop up a modal |
| 17 // menu. |
| 18 return controller; |
| 19 } |
| 20 |
| 21 - (void)presentMenuOnController:(UIViewController*)controller { |
| 22 RemotingSettingsViewController* settingsViewController = |
| 23 [[RemotingSettingsViewController alloc] init]; |
| 24 [controller presentViewController:settingsViewController |
| 25 animated:YES |
| 26 completion:nil]; |
| 27 } |
| 28 |
| 29 @end |
OLD | NEW |