| OLD | NEW |
| 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_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Cancels window selection. | 61 // Cancels window selection. |
| 62 void CancelSelection(); | 62 void CancelSelection(); |
| 63 | 63 |
| 64 // ui::EventHandler: | 64 // ui::EventHandler: |
| 65 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 65 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 66 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 66 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 67 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 67 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 68 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 68 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 69 | 69 |
| 70 // gfx::DisplayObserver: | 70 // gfx::DisplayObserver: |
| 71 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | |
| 72 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 71 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
| 73 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 72 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
| 73 virtual void OnDisplayMetricsChanged( |
| 74 const gfx::Display& display, |
| 75 gfx::DisplayObserver::DisplayMetrics metrics) OVERRIDE; |
| 74 | 76 |
| 75 // aura::WindowObserver: | 77 // aura::WindowObserver: |
| 76 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE; | 78 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE; |
| 77 virtual void OnWindowBoundsChanged(aura::Window* window, | 79 virtual void OnWindowBoundsChanged(aura::Window* window, |
| 78 const gfx::Rect& old_bounds, | 80 const gfx::Rect& old_bounds, |
| 79 const gfx::Rect& new_bounds) OVERRIDE; | 81 const gfx::Rect& new_bounds) OVERRIDE; |
| 80 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 82 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 81 | 83 |
| 82 // aura::client::ActivationChangeObserver: | 84 // aura::client::ActivationChangeObserver: |
| 83 virtual void OnWindowActivated(aura::Window* gained_active, | 85 virtual void OnWindowActivated(aura::Window* gained_active, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Tracks windows which were hidden because they were not part of the | 143 // Tracks windows which were hidden because they were not part of the |
| 142 // overview. | 144 // overview. |
| 143 aura::WindowTracker hidden_windows_; | 145 aura::WindowTracker hidden_windows_; |
| 144 | 146 |
| 145 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 147 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace ash | 150 } // namespace ash |
| 149 | 151 |
| 150 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 152 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |