| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ | 5 #ifndef ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ |
| 6 #define ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ | 6 #define ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Adding/removing an observer to status changes. | 22 // Adding/removing an observer to status changes. |
| 23 virtual void AddObserver(WindowListProviderObserver* observer) = 0; | 23 virtual void AddObserver(WindowListProviderObserver* observer) = 0; |
| 24 virtual void RemoveObserver(WindowListProviderObserver* observer) = 0; | 24 virtual void RemoveObserver(WindowListProviderObserver* observer) = 0; |
| 25 | 25 |
| 26 // Returns an ordered list of the current window configuration. | 26 // Returns an ordered list of the current window configuration. |
| 27 virtual const aura::Window::Windows& GetWindowList() const = 0; | 27 virtual const aura::Window::Windows& GetWindowList() const = 0; |
| 28 | 28 |
| 29 // Returns true if the |window| is part of the list. | 29 // Returns true if the |window| is part of the list. |
| 30 virtual bool IsWindowInList(aura::Window* window) const = 0; | 30 virtual bool IsWindowInList(aura::Window* window) const = 0; |
| 31 | 31 |
| 32 // Returns true if the given window is a window which can be handled by the | |
| 33 // WindowListProvider. | |
| 34 virtual bool IsValidWindow(aura::Window* window) const = 0; | |
| 35 | |
| 36 // Stacks a given |window| in direct front of a |reference_window|. | 32 // Stacks a given |window| in direct front of a |reference_window|. |
| 37 // Note: The |window| and |reference_window| has to be in the list already. | 33 // Note: The |window| and |reference_window| has to be in the list already. |
| 38 virtual void StackWindowFrontOf(aura::Window* window, | 34 virtual void StackWindowFrontOf(aura::Window* window, |
| 39 aura::Window* reference_window) = 0; | 35 aura::Window* reference_window) = 0; |
| 40 | 36 |
| 41 // Stacks a given |window| directly behind a |reference_window|. | 37 // Stacks a given |window| directly behind a |reference_window|. |
| 42 // Note: The |window| and |reference_window| has to be in the list already. | 38 // Note: The |window| and |reference_window| has to be in the list already. |
| 43 virtual void StackWindowBehindTo(aura::Window* window, | 39 virtual void StackWindowBehindTo(aura::Window* window, |
| 44 aura::Window* reference_window) = 0; | 40 aura::Window* reference_window) = 0; |
| 45 }; | 41 }; |
| 46 | 42 |
| 47 } // namespace athena | 43 } // namespace athena |
| 48 | 44 |
| 49 #endif // ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ | 45 #endif // ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_ |
| OLD | NEW |