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

Side by Side Diff: ios/clean/chrome/browser/ui/overlays/overlay_queue_observer.h

Issue 2921833002: [iOS Clean] Created OverlayService.
Patch Set: Use service pattern Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
6 #define IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
7
8 #include "base/macros.h"
9
10 class OverlayQueue;
11
12 // Interface for listening to events occurring to OverlayQueues.
13 class OverlayQueueObserver {
14 public:
15 OverlayQueueObserver();
16 virtual ~OverlayQueueObserver();
17
18 // Called when an BrowserCoordinator is added to |queue|.
19 virtual void OverlayQueueDidAddOverlay(OverlayQueue* queue);
20
21 // Called when the overlay being presented by |queue| is about to be stopped
22 // so that a replacement overlay can be started.
23 virtual void OverlayQueueWillReplaceVisibleOverlay(OverlayQueue* queue);
24
25 // Called after the overlay being presented by |queue| is stopped.
26 virtual void OverlayQueueDidStopVisibleOverlay(OverlayQueue* queue);
27
28 // Called when the overlays in |queue| are cancelled.
29 virtual void OverlayQueueDidCancelOverlays(OverlayQueue* queue);
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(OverlayQueueObserver);
33 };
34 #endif // IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698