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

Unified Diff: ash/common/wm/overview/window_selector_delegate.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ash/common/wm/overview/window_selector_controller.cc ('k') | ash/common/wm/overview/window_selector_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/window_selector_delegate.h
diff --git a/ash/common/wm/overview/window_selector_delegate.h b/ash/common/wm/overview/window_selector_delegate.h
deleted file mode 100644
index 655198d3504d5c650e5da696a14bee84d3d4d907..0000000000000000000000000000000000000000
--- a/ash/common/wm/overview/window_selector_delegate.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 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 ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_
-#define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "base/compiler_specific.h"
-
-namespace ash {
-
-class WindowSelectorDelegate;
-
-class ASH_EXPORT DelayedAnimationObserver {
- public:
- virtual ~DelayedAnimationObserver() {}
-
- // Sets an |owner| that can be notified when the animation that |this|
- // observes completes.
- virtual void SetOwner(WindowSelectorDelegate* owner) = 0;
-
- // Can be called by the |owner| to delete the owned widget. The |owner| is
- // then responsible for deleting |this| instance of the
- // DelayedAnimationObserver.
- virtual void Shutdown() = 0;
-};
-
-// Implement this class to handle the selection event from WindowSelector.
-class ASH_EXPORT WindowSelectorDelegate {
- public:
- // Invoked if selection is ended.
- virtual void OnSelectionEnded() = 0;
-
- // Passes ownership of |animation_observer| to |this| delegate.
- virtual void AddDelayedAnimationObserver(
- std::unique_ptr<DelayedAnimationObserver> animation_observer) = 0;
-
- // Finds and erases |animation_observer| from the list deleting the widget
- // owned by the |animation_observer|.
- // This method should be called when a scheduled animation completes.
- // If the animation completion callback is a result of a window getting
- // destroyed then the DelayedAnimationObserver::Shutdown() should be called
- // first before destroying the window.
- virtual void RemoveAndDestroyAnimationObserver(
- DelayedAnimationObserver* animation_observer) = 0;
-
- protected:
- virtual ~WindowSelectorDelegate() {}
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_
« no previous file with comments | « ash/common/wm/overview/window_selector_controller.cc ('k') | ash/common/wm/overview/window_selector_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698