| 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_WINDOW_LIST_PROVIDER_IMPL_H_ | 5 #ifndef ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ |
| 6 #define ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ | 6 #define ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include "athena/wm/public/window_list_provider.h" | 8 #include "athena/wm/public/window_list_provider.h" |
| 9 | 9 |
| 10 namespace athena { | 10 namespace athena { |
| 11 | 11 |
| 12 // This implementation of the WindowListProviderImpl uses the same order as in | 12 // This implementation of the WindowListProviderImpl uses the same order as in |
| 13 // the container window's stacking order. | 13 // the container window's stacking order. |
| 14 class ATHENA_EXPORT WindowListProviderImpl : public WindowListProvider { | 14 class ATHENA_EXPORT WindowListProviderImpl : public WindowListProvider { |
| 15 public: | 15 public: |
| 16 explicit WindowListProviderImpl(aura::Window* container); | 16 explicit WindowListProviderImpl(aura::Window* container); |
| 17 virtual ~WindowListProviderImpl(); | 17 virtual ~WindowListProviderImpl(); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 // WindowListProvider: | 20 // WindowListProvider: |
| 21 virtual aura::Window::Windows GetWindowList() const OVERRIDE; | 21 virtual aura::Window::Windows GetCurrentWindowList() const OVERRIDE; |
| 22 virtual bool IsWindowInList(aura::Window* window) const OVERRIDE; |
| 23 virtual bool IsValidWindow(aura::Window* window) const OVERRIDE; |
| 24 virtual void AddWindow(aura::Window* window) OVERRIDE; |
| 25 virtual void MoveToFront(aura::Window* window) OVERRIDE; |
| 26 virtual void MoveWindowInFrontOfReferenceWindow( |
| 27 aura::Window* window, |
| 28 aura::Window*reference_window) OVERRIDE; |
| 29 virtual void MoveWindowBehindOfReferenceWindow( |
| 30 aura::Window* window, |
| 31 aura::Window*reference_window) OVERRIDE; |
| 22 | 32 |
| 23 aura::Window* container_; | 33 aura::Window* container_; |
| 24 | 34 |
| 25 DISALLOW_COPY_AND_ASSIGN(WindowListProviderImpl); | 35 DISALLOW_COPY_AND_ASSIGN(WindowListProviderImpl); |
| 26 }; | 36 }; |
| 27 | 37 |
| 28 } // namespace athena | 38 } // namespace athena |
| 29 | 39 |
| 30 #endif // ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ | 40 #endif // ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ |
| OLD | NEW |