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

Unified Diff: athena/wm/public/window_list_provider.h

Issue 480293003: Adding functions to the window_list_provider for accessing the activities window list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the other functions as well Created 6 years, 3 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: athena/wm/public/window_list_provider.h
diff --git a/athena/wm/public/window_list_provider.h b/athena/wm/public/window_list_provider.h
index d22aa3da376069285b1c1bf0b1a9f556a3f2fb3d..5ba56ed5f41f936bcfd7ff0fe5ed307b4be57437 100644
--- a/athena/wm/public/window_list_provider.h
+++ b/athena/wm/public/window_list_provider.h
@@ -11,12 +11,41 @@
namespace athena {
// Interface for an ordered list of aura::Window objects.
+// Note that lists returned by GetCurrentWindowList() will not change if any of
+// the other member functions will be called later.
class ATHENA_EXPORT WindowListProvider {
public:
virtual ~WindowListProvider() {}
- // Returns an ordered list of windows.
- virtual aura::Window::Windows GetWindowList() const = 0;
+ // Returns an ordered list of the current window configuration.
+ virtual aura::Window::Windows GetCurrentWindowList() const = 0;
oshima 2014/09/05 23:13:06 Current implies there is something else. What's th
Mr4D (OOO till 08-26) 2014/09/08 17:35:07 The returned list will not change if the content c
oshima 2014/09/09 18:28:37 That's same with any API that returns list (aura::
Mr4D (OOO till 08-26) 2014/09/10 00:01:58 Done.
+
+ // Returns true if the |window| is part of the list.
+ virtual bool IsWindowInList(aura::Window* window) const = 0;
oshima 2014/09/05 23:13:06 I feel method name are too long. How about Contai
Mr4D (OOO till 08-26) 2014/09/08 17:35:07 Done.
+
+ // Returns true if the given window is a window which can be handled by the
+ // WindowListProvider.
+ virtual bool IsValidWindow(aura::Window* window) const = 0;
+
+ // Adds a |window| to the front of the list. If the |window| is already in the
+ // list it will be moved to the front.
+ virtual void AddWindow(aura::Window* window) = 0;
oshima 2014/09/05 23:13:06 Do you need this? A window must be added by Widget
Mr4D (OOO till 08-26) 2014/09/08 17:35:07 Someone must have the knowledge of where to add an
oshima 2014/09/09 18:28:37 Adding is implicit now, so having AddWindow is con
Mr4D (OOO till 08-26) 2014/09/10 00:01:58 Acknowledged.
+
+ // Moves a given |window| to the front of all windows of the window list.
+ // Note: The window has to be in the list already.
+ virtual void MoveToFront(aura::Window* window) = 0;
+
+ // Moves a given |window| in direct front of a |reference_window|.
+ // Note: The |window| and |reference_window| has to be in the list already.
+ virtual void MoveWindowInFrontOfReferenceWindow(
+ aura::Window* window,
+ aura::Window* reference_window) = 0;
+
+ // Moves a given |window| directly behind a |reference_window|.
+ // Note: The |window| and |reference_window| has to be in the list already.
+ virtual void MoveWindowBehindOfReferenceWindow(
+ aura::Window* window,
+ aura::Window* reference_window) = 0;
};
} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698