Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4327)

Unified Diff: remoting/ios/app/remoting_resource_factory_external.mm

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: add comment Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/ios/app/remoting_resource_factory_external.mm
diff --git a/remoting/ios/app/remoting_resource_factory_external.mm b/remoting/ios/app/remoting_resource_factory_external.mm
new file mode 100644
index 0000000000000000000000000000000000000000..3d6e702afdd03a6216c88632384ec497e13b21ec
--- /dev/null
+++ b/remoting/ios/app/remoting_resource_factory_external.mm
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+#import "remoting/ios/app/remoting_resource_factory_external.h"
+
+#import "remoting/ios/app/remoting_settings_view_controller.h"
+
+@implementation RemotingResourceFactoryExternal
+
+- (UIViewController*)wrapRootViewController:(UIViewController*)controller {
+ // No need to wrap the controller. The external impl will just pop up a modal
+ // menu.
+ return controller;
+}
+
+- (void)presentMenuOnController:(UIViewController*)controller {
+ RemotingSettingsViewController* settingsViewController =
+ [[RemotingSettingsViewController alloc] init];
+ [controller presentViewController:settingsViewController
+ animated:YES
+ completion:nil];
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698