| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GRID_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_GRID_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_GRID_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_GRID_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/wm/overview/window_selector.h" | 10 #include "ash/wm/overview/window_selector.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool is_selecting() const { return selection_widget_ != NULL; } | 86 bool is_selecting() const { return selection_widget_ != NULL; } |
| 87 | 87 |
| 88 // Returns the root window in which the grid displays the windows. | 88 // Returns the root window in which the grid displays the windows. |
| 89 const aura::Window* root_window() const { return root_window_; } | 89 const aura::Window* root_window() const { return root_window_; } |
| 90 | 90 |
| 91 const std::vector<WindowSelectorItem*>& window_list() const { | 91 const std::vector<WindowSelectorItem*>& window_list() const { |
| 92 return window_list_.get(); | 92 return window_list_.get(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 // aura::WindowObserver: | 95 // aura::WindowObserver: |
| 96 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 96 virtual void OnWindowDestroying(aura::Window* window) override; |
| 97 // TODO(flackr): Handle window bounds changed in WindowSelectorItem. | 97 // TODO(flackr): Handle window bounds changed in WindowSelectorItem. |
| 98 virtual void OnWindowBoundsChanged(aura::Window* window, | 98 virtual void OnWindowBoundsChanged(aura::Window* window, |
| 99 const gfx::Rect& old_bounds, | 99 const gfx::Rect& old_bounds, |
| 100 const gfx::Rect& new_bounds) OVERRIDE; | 100 const gfx::Rect& new_bounds) override; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 friend class WindowSelectorTest; | 103 friend class WindowSelectorTest; |
| 104 | 104 |
| 105 // Internal function to initialize the selection widget. | 105 // Internal function to initialize the selection widget. |
| 106 void InitSelectionWidget(WindowSelector::Direction direction); | 106 void InitSelectionWidget(WindowSelector::Direction direction); |
| 107 | 107 |
| 108 // Moves the selection widget to the specified |direction|. | 108 // Moves the selection widget to the specified |direction|. |
| 109 void MoveSelectionWidget(WindowSelector::Direction direction, | 109 void MoveSelectionWidget(WindowSelector::Direction direction, |
| 110 bool recreate_selection_widget, | 110 bool recreate_selection_widget, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 137 | 137 |
| 138 // Number of columns in the grid. | 138 // Number of columns in the grid. |
| 139 size_t num_columns_; | 139 size_t num_columns_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(WindowGrid); | 141 DISALLOW_COPY_AND_ASSIGN(WindowGrid); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace ash | 144 } // namespace ash |
| 145 | 145 |
| 146 #endif // ASH_WM_OVERVIEW_WINDOW_GRID_H_ | 146 #endif // ASH_WM_OVERVIEW_WINDOW_GRID_H_ |
| OLD | NEW |