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_WEB_OVERLAY_COMMANDS_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_WEB_OVERLAY_COMMANDS_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 namespace web { | |
| 11 class WebState; | |
| 12 } | |
| 13 | |
| 14 @class WebOverlayCoordinator; | |
|
marq (ping after 24h)
2017/06/02 16:14:11
Not needed -- this should be a red flag for a comm
kkhorimoto
2017/06/03 00:37:32
Removed. This was leftover from a previous comman
| |
| 15 | |
| 16 // Commands used to schedule overlay coordinators requested by web pages. | |
| 17 @protocol WebOverlaySchedulerCommands<NSObject> | |
| 18 // Notifies the scheduler that |webState| has a queued overlay coordinator to | |
| 19 // display. | |
| 20 - (void)scheduleWebOverlayForWebState:(web::WebState*)webState; | |
| 21 // Notifies the scheduler that the overlay that was started over |webState|'s | |
| 22 // content area has been stopped. | |
| 23 - (void)webOverlayWasStoppedForWebState:(web::WebState*)webState; | |
| 24 // Notifies the scheduler to cancel all overlays scheduled for |webState|. | |
| 25 - (void)cancelWebOverlaysForWebState:(web::WebState*)webState; | |
| 26 @end | |
| 27 | |
| 28 // Commands used by the scheduler to start queued WebOverlayCoordinators. | |
| 29 @protocol WebOverlayPresentationCommands<NSObject> | |
| 30 // Called by the scheduler to notify the coordinator showing the web content to | |
| 31 // start its next queued overlay. | |
| 32 - (void)startNextWebOverlayForWebState:(web::WebState*)webState; | |
| 33 @end | |
| 34 | |
| 35 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_WEB_OVERLAY_COMMANDS_H_ | |
| OLD | NEW |