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_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDULER_
H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDULER_
H_ |
| 7 |
| 8 #include <Foundation/Foundation.h> |
| 9 |
| 10 #import "ios/clean/chrome/browser/ui/commands/web_overlay_commands.h" |
| 11 |
| 12 @protocol TabGridCommands; |
| 13 |
| 14 // An object that manages displaying a WebState's content view before starting |
| 15 // an overlay from its WebOverlayQueue. |
| 16 @interface WebOverlayScheduler : NSObject<WebOverlaySchedulerCommands> |
| 17 |
| 18 // Designated initializer for a WebOverlayScheduler that uses |dispatcher| to |
| 19 // switch the foreground tab and present overlays. |
| 20 - (instancetype)initWithDispatcher: |
| 21 (id<TabGridCommands, WebOverlayPresentationCommands>)dispatcher |
| 22 NS_DESIGNATED_INITIALIZER; |
| 23 - (instancetype)init NS_UNAVAILABLE; |
| 24 |
| 25 @end |
| 26 |
| 27 #endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDUL
ER_H_ |
OLD | NEW |