Home | History | Annotate | Download | only in overview
      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_WINDOW_H_
      6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
      7 
      8 #include "ash/wm/overview/scoped_transform_overview_window.h"
      9 #include "ash/wm/overview/window_selector_item.h"
     10 #include "base/compiler_specific.h"
     11 #include "ui/gfx/rect.h"
     12 
     13 namespace aura {
     14 class Window;
     15 }
     16 
     17 namespace views {
     18 class Widget;
     19 }
     20 
     21 namespace ash {
     22 
     23 // This implements a window overview item with a single window which can be
     24 // selected.
     25 class WindowSelectorWindow : public WindowSelectorItem {
     26  public:
     27   explicit WindowSelectorWindow(aura::Window* window);
     28   virtual ~WindowSelectorWindow();
     29 
     30   // WindowSelectorItem:
     31   virtual aura::Window* GetRootWindow() OVERRIDE;
     32   virtual bool HasSelectableWindow(const aura::Window* window) OVERRIDE;
     33   virtual bool Contains(const aura::Window* target) OVERRIDE;
     34   virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
     35   virtual aura::Window* SelectionWindow() OVERRIDE;
     36   virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
     37   virtual bool empty() const OVERRIDE;
     38   virtual void PrepareForOverview() OVERRIDE;
     39   virtual void SetItemBounds(aura::Window* root_window,
     40                              const gfx::Rect& target_bounds,
     41                              bool animate) OVERRIDE;
     42 
     43  private:
     44   // The window with a scoped transform represented by this selector item.
     45   ScopedTransformOverviewWindow transform_window_;
     46 
     47   DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
     48 };
     49 
     50 }  // namespace ash
     51 
     52 #endif  // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
     53