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 ash {
     18 
     19 // This implements a window overview item with a single window which can be
     20 // selected.
     21 class WindowSelectorWindow : public WindowSelectorItem {
     22  public:
     23   WindowSelectorWindow(aura::Window* window);
     24   virtual ~WindowSelectorWindow();
     25 
     26   // WindowSelectorItem:
     27   virtual aura::Window* GetRootWindow() OVERRIDE;
     28   virtual bool HasSelectableWindow(const aura::Window* window) OVERRIDE;
     29   virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE;
     30   virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE;
     31   virtual aura::Window* SelectionWindow() OVERRIDE;
     32   virtual void RemoveWindow(const aura::Window* window) OVERRIDE;
     33   virtual bool empty() const OVERRIDE;
     34   virtual void PrepareForOverview() OVERRIDE;
     35   virtual void SetItemBounds(aura::Window* root_window,
     36                              const gfx::Rect& target_bounds,
     37                              bool animate) OVERRIDE;
     38 
     39  private:
     40   ScopedTransformOverviewWindow transform_window_;
     41 
     42   DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
     43 };
     44 
     45 }  // namespace ash
     46 
     47 #endif  // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
     48