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

Side by Side Diff: athena/wm/window_list_provider_impl.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: Addressed 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "ui/aura/window_observer.h"
9 10
10 namespace athena { 11 namespace athena {
11 12
13 class WindowListProviderObserver;
14
12 // This implementation of the WindowListProviderImpl uses the same order as in 15 // This implementation of the WindowListProviderImpl uses the same order as in
13 // the container window's stacking order. 16 // the container window's stacking order.
14 class ATHENA_EXPORT WindowListProviderImpl : public WindowListProvider { 17 class ATHENA_EXPORT WindowListProviderImpl : public WindowListProvider,
18 public aura::WindowObserver {
15 public: 19 public:
16 explicit WindowListProviderImpl(aura::Window* container); 20 explicit WindowListProviderImpl(aura::Window* container);
17 virtual ~WindowListProviderImpl(); 21 virtual ~WindowListProviderImpl();
18 22
19 private: 23 private:
20 // WindowListProvider: 24 // WindowListProvider:
25 virtual void AddObserver(WindowListProviderObserver* observer) OVERRIDE;
26 virtual void RemoveObserver(WindowListProviderObserver* observer) OVERRIDE;
21 virtual aura::Window::Windows GetWindowList() const OVERRIDE; 27 virtual aura::Window::Windows GetWindowList() const OVERRIDE;
28 virtual bool IsWindowInList(aura::Window* window) const OVERRIDE;
29 virtual bool IsValidWindow(aura::Window* window) const OVERRIDE;
30 virtual void MoveToFront(aura::Window* window) OVERRIDE;
31 virtual void StackWindowFrontOf(aura::Window* window,
32 aura::Window*reference_window) OVERRIDE;
33 virtual void StackWindowBehindTo(aura::Window* window,
34 aura::Window*reference_window) OVERRIDE;
35
36 // aura::WindowObserver:
37 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE;
38 virtual void OnWillRemoveWindow(aura::Window* old_window) OVERRIDE;
39 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE;
22 40
23 aura::Window* container_; 41 aura::Window* container_;
42 ObserverList<WindowListProviderObserver> observers_;
24 43
25 DISALLOW_COPY_AND_ASSIGN(WindowListProviderImpl); 44 DISALLOW_COPY_AND_ASSIGN(WindowListProviderImpl);
26 }; 45 };
27 46
28 } // namespace athena 47 } // namespace athena
29 48
30 #endif // ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_ 49 #endif // ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698