Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_SCHEDULER_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_SCHEDULER_H_ | |
| 7 | |
| 8 #include <Foundation/Foundation.h> | |
| 9 | |
| 10 #import "ios/clean/chrome/browser/ui/commands/overlay_commands.h" | |
| 11 | |
| 12 @protocol TabGridCommands; | |
| 13 class WebStateList; | |
| 14 | |
| 15 // An object that manages displaying a WebState's content view before starting | |
|
marq (ping after 24h)
2017/06/14 10:02:32
Document clearly how this class may trigger websta
kkhorimoto
2017/06/15 08:26:28
Done.
| |
| 16 // an overlay from its OverlayQueue. | |
| 17 @interface OverlayScheduler : NSObject<OverlaySchedulerCommands> | |
|
marq (ping after 24h)
2017/06/14 10:02:32
Unit tests for this class?
kkhorimoto
2017/06/15 08:26:28
Ack. Will be in next patch.
| |
| 18 | |
| 19 // Designated initializer for a OverlayScheduler that uses |dispatcher| to | |
| 20 // switch the foreground tab and present overlays. | |
| 21 - (instancetype)initWithWebStateList:(WebStateList*)webStateList | |
| 22 dispatcher: | |
| 23 (id<TabGridCommands, OverlayPresentationCommands>) | |
| 24 dispatcher NS_DESIGNATED_INITIALIZER; | |
| 25 - (instancetype)init NS_UNAVAILABLE; | |
| 26 | |
| 27 @end | |
| 28 | |
| 29 #endif // IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_SCHEDULER_H_ | |
| OLD | NEW |