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

Unified Diff: ios/chrome/app/application_phase.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/chrome/app/application_mode.h ('k') | ios/chrome/app/application_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/application_phase.h
diff --git a/ios/chrome/app/application_phase.h b/ios/chrome/app/application_phase.h
new file mode 100644
index 0000000000000000000000000000000000000000..83e5b9bd1546ea1ac0dd5c44e4eab26e0da48d0a
--- /dev/null
+++ b/ios/chrome/app/application_phase.h
@@ -0,0 +1,32 @@
+// 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.
+
+// ====== New Architecture =====
+// = This code is only used in the new iOS Chrome architecture. =
+// ============================================================================
+
+#ifndef IOS_CHROME_APP_APPLICATION_PHASE_H_
+#define IOS_CHROME_APP_APPLICATION_PHASE_H_
+
+// The phases that the application moves through as it transitions between
+// states.
+typedef NS_ENUM(NSUInteger, ApplicationPhase) {
+ // The initial state of the application performing a cold launch.
+ APPLICATION_COLD,
+ // The minimal initialization that must be completed before any further
+ // startup can happen. |applicationDidFinishLaunching:withOptions:| must
+ // bring the appication to at least this phase before returning.
+ APPLICATION_BASIC,
+ // The phase required for any background handling.
+ APPLICATION_BACKGROUNDED,
+ // The phase where the app is foregrounded but Safe Mode has been started.
+ APPLICATION_SAFE_MODE,
+ // The phase where the app is fully foregrounded and the regular UI has
+ // started.
+ APPLICATION_FOREGROUNDED,
+ // The phase where the application has started to terminate.
+ APPLICATION_TERMINATING
+};
+
+#endif // IOS_CHROME_APP_APPLICATION_PHASE_H_
« no previous file with comments | « ios/chrome/app/application_mode.h ('k') | ios/chrome/app/application_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698