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

Side by Side Diff: ash/wm/overview/window_selector_panels.h

Issue 23654037: Add panels as a single group of windows per display for overview window cycling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix restored panel relayout when some panels minimized. Created 7 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
« no previous file with comments | « ash/wm/overview/window_selector_item.cc ('k') | ash/wm/overview/window_selector_panels.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
7
8 #include "ash/wm/overview/window_selector_item.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_vector.h"
11 #include "ui/gfx/rect.h"
12
13 namespace aura {
14 class RootWindow;
15 class Window;
16 }
17
18 namespace ash {
19
20 class ScopedTransformOverviewWindow;
21
22 // This class implements a window selector item containing one or more attached
23 // panel windows. These panels are grouped into a single overview item in
24 // overview mode and the callout arrows are hidden at this point.
25 class WindowSelectorPanels : public WindowSelectorItem {
26 public:
27 WindowSelectorPanels();
28 virtual ~WindowSelectorPanels();
29
30 // Adds |window| to the selector item. This window should be an attached
31 // panel window.
32 void AddWindow(aura::Window* window);
33
34 // WindowSelectorItem:
35 virtual const aura::RootWindow* GetRootWindow() const OVERRIDE;
36 virtual aura::Window* TargetedWindow(
37 const aura::Window* target) const OVERRIDE;
38 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
39 virtual aura::Window* SelectionWindow() const OVERRIDE;
40 virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
41 virtual bool empty() const OVERRIDE;
42 virtual void SetItemBounds(aura::RootWindow* root_window,
43 const gfx::Rect& target_bounds) OVERRIDE;
44
45 private:
46 typedef ScopedVector<ScopedTransformOverviewWindow> WindowList;
47 WindowList transform_windows_;
48
49 DISALLOW_COPY_AND_ASSIGN(WindowSelectorPanels);
50 };
51
52 } // namespace ash
53
54 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector_item.cc ('k') | ash/wm/overview/window_selector_panels.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698