Index: ios/clean/chrome/browser/ui/commands/web_overlay_commands.h |
diff --git a/ios/clean/chrome/browser/ui/commands/web_overlay_commands.h b/ios/clean/chrome/browser/ui/commands/web_overlay_commands.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bc9130029a4ff874a9e68ad2deb364a4c8d2cd34 |
--- /dev/null |
+++ b/ios/clean/chrome/browser/ui/commands/web_overlay_commands.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 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_CLEAN_CHROME_BROWSER_UI_COMMANDS_WEB_OVERLAY_COMMANDS_H_ |
+#define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_WEB_OVERLAY_COMMANDS_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+namespace web { |
+class WebState; |
+} |
+ |
+@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
|
+ |
+// Commands used to schedule overlay coordinators requested by web pages. |
+@protocol WebOverlaySchedulerCommands<NSObject> |
+// Notifies the scheduler that |webState| has a queued overlay coordinator to |
+// display. |
+- (void)scheduleWebOverlayForWebState:(web::WebState*)webState; |
+// Notifies the scheduler that the overlay that was started over |webState|'s |
+// content area has been stopped. |
+- (void)webOverlayWasStoppedForWebState:(web::WebState*)webState; |
+// Notifies the scheduler to cancel all overlays scheduled for |webState|. |
+- (void)cancelWebOverlaysForWebState:(web::WebState*)webState; |
+@end |
+ |
+// Commands used by the scheduler to start queued WebOverlayCoordinators. |
+@protocol WebOverlayPresentationCommands<NSObject> |
+// Called by the scheduler to notify the coordinator showing the web content to |
+// start its next queued overlay. |
+- (void)startNextWebOverlayForWebState:(web::WebState*)webState; |
+@end |
+ |
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_WEB_OVERLAY_COMMANDS_H_ |