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

Unified Diff: remoting/ios/app/remoting_resource_factory.h

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 side-by-side diff with in-line comments
Download patch
Index: remoting/ios/app/remoting_resource_factory.h
diff --git a/remoting/ios/app/remoting_resource_factory.h b/remoting/ios/app/remoting_resource_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..37e27fa31c46c0e4d32a1dc42e95c852d238c63c
--- /dev/null
+++ b/remoting/ios/app/remoting_resource_factory.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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.
+
+#ifndef REMOTING_IOS_APP_REMOTING_RESOURCE_FACTORY_H_
+#define REMOTING_IOS_APP_REMOTING_RESOURCE_FACTORY_H_
+
+#import <UIKit/UIKit.h>
+
+// The base class for holding resources that have different internal and
+// external implementation.
+@interface RemotingResourceFactory : NSObject
nicholss 2017/06/14 15:37:59 A resource in iOS is an image or other static cont
Yuwei 2017/06/15 07:02:08 Obsolete.
+
+// Used by AppDelegate to wrap the root view controller. Implementation can wrap
+// the root view controller into a PanelViewController.
+- (UIViewController*)wrapRootViewController:(UIViewController*)controller;
+
+// Presents the side menu on the host list view.
+- (void)presentMenuOnController:(UIViewController*)controller;
+
+// The default factory must be set right after the app is loaded.
+@property(class, strong, nonatomic) RemotingResourceFactory* defaultFactory;
+
+@end
+
+#endif // REMOTING_IOS_APP_REMOTING_RESOURCE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698