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

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

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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_unittest.cc ('k') | ash/wm/overview/window_selector_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
7 7
8 #include "ash/wm/overview/scoped_transform_overview_window.h" 8 #include "ash/wm/overview/scoped_transform_overview_window.h"
9 #include "ash/wm/overview/window_selector_item.h" 9 #include "ash/wm/overview/window_selector_item.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace aura { 13 namespace aura {
14 class RootWindow;
15 class Window; 14 class Window;
16 } 15 }
17 16
18 namespace ash { 17 namespace ash {
19 18
20 // This implements a window overview item with a single window which can be 19 // This implements a window overview item with a single window which can be
21 // selected. 20 // selected.
22 class WindowSelectorWindow : public WindowSelectorItem { 21 class WindowSelectorWindow : public WindowSelectorItem {
23 public: 22 public:
24 WindowSelectorWindow(aura::Window* window); 23 WindowSelectorWindow(aura::Window* window);
25 virtual ~WindowSelectorWindow(); 24 virtual ~WindowSelectorWindow();
26 25
27 // WindowSelectorItem: 26 // WindowSelectorItem:
28 virtual aura::RootWindow* GetRootWindow() OVERRIDE; 27 virtual aura::Window* GetRootWindow() OVERRIDE;
29 virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE; 28 virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE;
30 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE; 29 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
31 virtual aura::Window* SelectionWindow() OVERRIDE; 30 virtual aura::Window* SelectionWindow() OVERRIDE;
32 virtual void RemoveWindow(const aura::Window* window) OVERRIDE; 31 virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
33 virtual bool empty() const OVERRIDE; 32 virtual bool empty() const OVERRIDE;
34 virtual void PrepareForOverview() OVERRIDE; 33 virtual void PrepareForOverview() OVERRIDE;
35 virtual void SetItemBounds(aura::RootWindow* root_window, 34 virtual void SetItemBounds(aura::Window* root_window,
36 const gfx::Rect& target_bounds, 35 const gfx::Rect& target_bounds,
37 bool animate) OVERRIDE; 36 bool animate) OVERRIDE;
38 37
39 private: 38 private:
40 ScopedTransformOverviewWindow transform_window_; 39 ScopedTransformOverviewWindow transform_window_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow); 41 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
43 }; 42 };
44 43
45 } // namespace ash 44 } // namespace ash
46 45
47 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 46 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/overview/window_selector_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698