| Index: ios/clean/chrome/browser/ui/overlays/overlay_queue_observer.h
|
| diff --git a/ios/clean/chrome/browser/ui/overlays/overlay_queue_observer.h b/ios/clean/chrome/browser/ui/overlays/overlay_queue_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33a5a66863832f7b34b0ce9387da9241e6098ac7
|
| --- /dev/null
|
| +++ b/ios/clean/chrome/browser/ui/overlays/overlay_queue_observer.h
|
| @@ -0,0 +1,34 @@
|
| +// 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_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
|
| +#define IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +class OverlayQueue;
|
| +
|
| +// Interface for listening to events occurring to OverlayQueues.
|
| +class OverlayQueueObserver {
|
| + public:
|
| + OverlayQueueObserver();
|
| + virtual ~OverlayQueueObserver();
|
| +
|
| + // Called when an BrowserCoordinator is added to |queue|.
|
| + virtual void OverlayQueueDidAddOverlay(OverlayQueue* queue);
|
| +
|
| + // Called when the overlay being presented by |queue| is about to be stopped
|
| + // so that a replacement overlay can be started.
|
| + virtual void OverlayQueueWillReplaceVisibleOverlay(OverlayQueue* queue);
|
| +
|
| + // Called after the overlay being presented by |queue| is stopped.
|
| + virtual void OverlayQueueDidStopVisibleOverlay(OverlayQueue* queue);
|
| +
|
| + // Called when the overlays in |queue| are cancelled.
|
| + virtual void OverlayQueueDidCancelOverlays(OverlayQueue* queue);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(OverlayQueueObserver);
|
| +};
|
| +#endif // IOS_CLEAN_CHROME_BROWSER_UI_OVERLAYS_OVERLAY_QUEUE_OBSERVER_H_
|
|
|