| Index: ios/chrome/app/steps/launch_to_foreground.h
|
| diff --git a/ios/chrome/app/steps/launch_to_foreground.h b/ios/chrome/app/steps/launch_to_foreground.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4738131f912bf3fe89fc7c7e696d830673847291
|
| --- /dev/null
|
| +++ b/ios/chrome/app/steps/launch_to_foreground.h
|
| @@ -0,0 +1,46 @@
|
| +// 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_STEPS_LAUNCH_TO_FOREGROUND_H_
|
| +#define IOS_CHROME_APP_STEPS_LAUNCH_TO_FOREGROUND_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +#include "ios/chrome/app/application_step.h"
|
| +
|
| +// This file includes ApplicationStep objects that perform the very first steps
|
| +// of application launch.
|
| +
|
| +// Signals to the application context that the app is entering the foreground.
|
| +// Pre: Application phase is APPLICATION_BACKGROUNDED.
|
| +// Post: Application phase is (still) APPLICATION_BACKGROUNDED.
|
| +@interface BeginForegrounding : NSObject<ApplicationStep>
|
| +@end
|
| +
|
| +// Initializes the browser state held by the application state, setting its
|
| +// initial cookie policies and any other pre-foreground inialization.
|
| +// Pre: Application phase is APPLICATION_BACKGROUNDED and the application
|
| +// state has a non-null browser state.
|
| +// Post: Application phase is (still) APPLICATION_BACKGROUNDED.
|
| +@interface BrowserStateInitializer : NSObject<ApplicationStep>
|
| +@end
|
| +
|
| +// Creates the main window and makes it key, but doesn't make it visible yet.
|
| +// Pre: Application phase is APPLICATION_BACKGROUNDED.
|
| +// Post: Application phase is (still) APPLICATION_BACKGROUNDED.
|
| +@interface PrepareForUI : NSObject<ApplicationStep>
|
| +@end
|
| +
|
| +// Performs final foregrounding tasks.
|
| +// Creates the main window and makes it key, but doesn't make it visible yet.
|
| +// Pre: Application phase is APPLICATION_BACKGROUNDED and the main window is
|
| +// key.
|
| +// Post: Application phase is APPLICATION_FOREGROUNDED.
|
| +@interface CompleteForegrounding : NSObject<ApplicationStep>
|
| +@end
|
| +#endif // IOS_CHROME_APP_STEPS_LAUNCH_TO_FOREGROUND_H_
|
|
|