| // Copyright 2020 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_CHROME_BROWSER_UI_MAIN_SCENE_CONTROLLER_TESTING_H_ |
| #define IOS_CHROME_BROWSER_UI_MAIN_SCENE_CONTROLLER_TESTING_H_ |
| |
| #import "ios/chrome/browser/procedural_block_types.h" |
| |
| class Browser; |
| struct UrlLoadParams; |
| @class TabGridCoordinator; |
| |
| // Methods exposed for testing. This is terrible and should be rewritten. |
| @interface SceneController () |
| |
| @property(nonatomic, strong) TabGridCoordinator* mainCoordinator; |
| |
| - (void)showFirstRunUI; |
| |
| - (void)addANewTabAndPresentBrowser:(Browser*)browser |
| withURLLoadParams:(const UrlLoadParams&)urlLoadParams; |
| |
| // Dismisses all modal dialogs, excluding the omnibox if |dismissOmnibox| is |
| // NO, then call |completion|. |
| - (void)dismissModalDialogsWithCompletion:(ProceduralBlock)completion |
| dismissOmnibox:(BOOL)dismissOmnibox; |
| |
| @end |
| |
| #endif // IOS_CHROME_BROWSER_UI_MAIN_SCENE_CONTROLLER_TESTING_H_ |