Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: ios/clean/chrome/browser/ui/commands/web_overlay_commands.h

Issue 2921833002: [iOS Clean] Created OverlayService.
Patch Set: self review Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698