blob: ebb04302dba32293716e8c452c9c41f7838c23ab (
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
46
47
48
49
50
51
52
53
54
|
// Copyright 2013 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 ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
#define ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
#include "ash/wm/overview/window_selector_item.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "ui/gfx/rect.h"
namespace aura {
class RootWindow;
class Window;
}
namespace ash {
class ScopedTransformOverviewWindow;
// This class implements a window selector item containing one or more attached
// panel windows. These panels are grouped into a single overview item in
// overview mode and the callout arrows are hidden at this point.
class WindowSelectorPanels : public WindowSelectorItem {
public:
WindowSelectorPanels();
virtual ~WindowSelectorPanels();
// Adds |window| to the selector item. This window should be an attached
// panel window.
void AddWindow(aura::Window* window);
// WindowSelectorItem:
virtual const aura::RootWindow* GetRootWindow() const OVERRIDE;
virtual aura::Window* TargetedWindow(
const aura::Window* target) const OVERRIDE;
virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
virtual aura::Window* SelectionWindow() const OVERRIDE;
virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
virtual bool empty() const OVERRIDE;
virtual void SetItemBounds(aura::RootWindow* root_window,
const gfx::Rect& target_bounds) OVERRIDE;
private:
typedef ScopedVector<ScopedTransformOverviewWindow> WindowList;
WindowList transform_windows_;
DISALLOW_COPY_AND_ASSIGN(WindowSelectorPanels);
};
} // namespace ash
#endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
|