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

Unified Diff: ios/clean/chrome/app/steps/root_container_coordinator+application_step.h

Issue 2800313002: [ios] RootCoordinator and view controller. (Closed)
Patch Set: Address comments. Created 3 years, 8 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: ios/clean/chrome/app/steps/root_container_coordinator+application_step.h
diff --git a/ios/clean/chrome/app/steps/root_container_coordinator+application_step.h b/ios/clean/chrome/app/steps/root_container_coordinator+application_step.h
new file mode 100644
index 0000000000000000000000000000000000000000..06ab4a06f77a636500d1eb99d953a1c8317f24d9
--- /dev/null
+++ b/ios/clean/chrome/app/steps/root_container_coordinator+application_step.h
@@ -0,0 +1,23 @@
+// 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 IOS_CLEAN_CHROME_APP_STEPS_ROOT_CONTAINER_COORDINATOR_APPLICATION_STEP_H_
+#define IOS_CLEAN_CHROME_APP_STEPS_ROOT_CONTAINER_COORDINATOR_APPLICATION_STEP_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/clean/chrome/app/application_step.h"
+#import "ios/clean/chrome/browser/ui/root/root_container_coordinator.h"
+
+// Category on RootContainerCoordinator to allow it to act as an application
+// step and control the root UI for the application when is starts.
+// Creates the main window and makes it key, but doesn't make it visible yet.
+// Pre: Application phase is APPLICATION_FOREGROUNDED and the main window is
+// key.
+// Post: Application phase is (still) APPLICATION_FOREGROUNDED, the main window
+// is visible and has a root view controller set.
+@interface RootContainerCoordinator (ApplicationStep)<ApplicationStep>
+@end
+
+#endif // IOS_CLEAN_CHROME_APP_STEPS_ROOT_CONTAINER_COORDINATOR_APPLICATION_STEP_H_

Powered by Google App Engine
This is Rietveld 408576698