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_COMMANDS_OVERLAY_COMMANDS_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_OVERLAY_COMMANDS_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 namespace web { | |
| 11 class WebState; | |
| 12 } | |
| 13 | |
| 14 // Commands used to schedule overlay coordinators requested by web pages. | |
| 15 @protocol OverlaySchedulerCommands<NSObject> | |
| 16 // Notifies the scheduler that |webState| has a queued overlay coordinator to | |
| 17 // display. | |
| 18 - (void)scheduleOverlayForWebState:(web::WebState*)webState; | |
| 19 // Notifies the scheduler that |webState|'s currently visible overlay has been | |
| 20 // replaced by another coordinator. | |
| 21 - (void)visibleOverlayWasReplacedForWebState:(web::WebState*)webState; | |
|
marq (ping after 24h)
2017/06/14 10:02:32
This feels more like something I'd expect in an ob
kkhorimoto
2017/06/15 08:26:28
I've converted this protocol to OverlayQueueObserv
| |
| 22 // Notifies the scheduler that the overlay that was started over |webState|'s | |
| 23 // content area has been stopped. | |
| 24 - (void)overlayWasStoppedForWebState:(web::WebState*)webState; | |
| 25 // Notifies the scheduler to cancel all overlays scheduled for |webState|. | |
| 26 - (void)cancelOverlaysForWebState:(web::WebState*)webState; | |
| 27 @end | |
| 28 | |
| 29 // Commands used by the scheduler to start queued OverlayCoordinators. | |
| 30 @protocol OverlayPresentationCommands<NSObject> | |
| 31 // Called by the scheduler to notify the coordinator showing the web content to | |
| 32 // start its next queued overlay. | |
| 33 - (void)startNextOverlayForWebState:(web::WebState*)webState; | |
| 34 @end | |
| 35 | |
| 36 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_OVERLAY_COMMANDS_H_ | |
| OLD | NEW |