blob: 69560ea83aaa20f36c7fbc5c0f2fd5c0bea13bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright 2014 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 ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_
#define ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_
#include "athena/athena_export.h"
#include "ui/aura/window.h"
namespace athena {
class WindowListProviderObserver;
// 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() {}
// Adding/removing an observer to status changes.
virtual void AddObserver(WindowListProviderObserver* observer) = 0;
virtual void RemoveObserver(WindowListProviderObserver* observer) = 0;
// Returns an ordered list of the current window configuration.
virtual const aura::Window::Windows& GetWindowList() const = 0;
// Returns true if the |window| is part of the list.
virtual bool IsWindowInList(aura::Window* window) const = 0;
// Stacks 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 StackWindowFrontOf(aura::Window* window,
aura::Window* reference_window) = 0;
// Stacks a given |window| directly behind a |reference_window|.
// Note: The |window| and |reference_window| has to be in the list already.
virtual void StackWindowBehindTo(aura::Window* window,
aura::Window* reference_window) = 0;
};
} // namespace athena
#endif // ATHENA_WM_PUBLIC_WINDOW_LIST_PROVIDER_H_
|