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

Side by Side Diff: remoting/ios/app/remoting_resource_factory_external.mm

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: Merge w/ ToT 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 unified diff | Download patch
OLDNEW
(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_menu_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 RemotingMenuViewController* menuViewController =
23 [[RemotingMenuViewController alloc] init];
24 [controller presentViewController:menuViewController
25 animated:YES
26 completion:nil];
27 }
28
29 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698