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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_panels.h
diff --git a/ash/wm/overview/window_selector_panels.h b/ash/wm/overview/window_selector_panels.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebb04302dba32293716e8c452c9c41f7838c23ab
--- /dev/null
+++ b/ash/wm/overview/window_selector_panels.h
@@ -0,0 +1,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_
« 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