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

Unified Diff: ios/clean/chrome/browser/ui/web_contents/overlays/web_overlay_scheduler.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/web_contents/overlays/web_overlay_scheduler.h
diff --git a/ios/clean/chrome/browser/ui/web_contents/overlays/web_overlay_scheduler.h b/ios/clean/chrome/browser/ui/web_contents/overlays/web_overlay_scheduler.h
new file mode 100644
index 0000000000000000000000000000000000000000..e5c3487da8e3dd6d062cb57e40048b190f89b6ae
--- /dev/null
+++ b/ios/clean/chrome/browser/ui/web_contents/overlays/web_overlay_scheduler.h
@@ -0,0 +1,27 @@
+// 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_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDULER_H_
+#define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDULER_H_
+
+#include <Foundation/Foundation.h>
+
+#import "ios/clean/chrome/browser/ui/commands/web_overlay_commands.h"
+
+@protocol TabGridCommands;
+
+// An object that manages displaying a WebState's content view before starting
+// an overlay from its WebOverlayQueue.
+@interface WebOverlayScheduler : NSObject<WebOverlaySchedulerCommands>
+
+// Designated initializer for a WebOverlayScheduler that uses |dispatcher| to
+// switch the foreground tab and present overlays.
+- (instancetype)initWithDispatcher:
+ (id<TabGridCommands, WebOverlayPresentationCommands>)dispatcher
+ NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_OVERLAYS_WEB_OVERLAY_SCHEDULER_H_

Powered by Google App Engine
This is Rietveld 408576698