OLD | NEW |
(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 #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_APP_NAVIGATION_H_ |
| 6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_APP_NAVIGATION_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #include "base/ios/block_types.h" |
| 11 |
| 12 namespace ios { |
| 13 class ChromeBrowserState; |
| 14 } // namespace ios |
| 15 |
| 16 @class SettingsNavigationController; |
| 17 |
| 18 // Handles the navigation through the application. |
| 19 @protocol AppNavigation<NSObject> |
| 20 |
| 21 // Navigation View controller for the settings. |
| 22 @property(nonatomic, retain) |
| 23 SettingsNavigationController* settingsNavigationController; |
| 24 |
| 25 // Presents a SignedInAccountsViewController for |browserState| on the top view |
| 26 // controller. |
| 27 - (void)presentSignedInAccountsViewControllerForBrowserState: |
| 28 (ios::ChromeBrowserState*)browserState; |
| 29 |
| 30 // Closes the settings UI with or without animation, with an optional |
| 31 // completion block. |
| 32 - (void)closeSettingsAnimated:(BOOL)animated |
| 33 completion:(ProceduralBlock)completion; |
| 34 |
| 35 @end |
| 36 |
| 37 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_APP_NAVIGATION_H_ |
OLD | NEW |