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_OVERVIEW_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ |
6 #define ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Dispatched when the list of windows has changed. | 56 // Dispatched when the list of windows has changed. |
57 void OnWindowsChanged(); | 57 void OnWindowsChanged(); |
58 | 58 |
59 // ui::EventHandler: | 59 // ui::EventHandler: |
60 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 60 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
61 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 61 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
62 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 62 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
63 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 63 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
64 | 64 |
65 // gfx::DisplayObserver: | 65 // gfx::DisplayObserver: |
66 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | |
67 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 66 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
68 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 67 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
| 68 virtual void OnDisplayMetricsChanged( |
| 69 const gfx::Display& display, |
| 70 DisplayObserver::DisplayMetrics metrics) OVERRIDE; |
69 | 71 |
70 private: | 72 private: |
71 // Returns the target of |event| or NULL if the event is not targeted at | 73 // Returns the target of |event| or NULL if the event is not targeted at |
72 // any of the windows in the selector. | 74 // any of the windows in the selector. |
73 aura::Window* GetEventTarget(ui::LocatedEvent* event); | 75 aura::Window* GetEventTarget(ui::LocatedEvent* event); |
74 | 76 |
75 // Returns the top-level window selected by targeting |window| or NULL if | 77 // Returns the top-level window selected by targeting |window| or NULL if |
76 // no overview window was found for |window|. | 78 // no overview window was found for |window|. |
77 aura::Window* GetTargetedWindow(aura::Window* window); | 79 aura::Window* GetTargetedWindow(aura::Window* window); |
78 | 80 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Tracks windows which were hidden because they were not part of the | 116 // Tracks windows which were hidden because they were not part of the |
115 // overview. | 117 // overview. |
116 aura::WindowTracker hidden_windows_; | 118 aura::WindowTracker hidden_windows_; |
117 | 119 |
118 DISALLOW_COPY_AND_ASSIGN(WindowOverview); | 120 DISALLOW_COPY_AND_ASSIGN(WindowOverview); |
119 }; | 121 }; |
120 | 122 |
121 } // namespace ash | 123 } // namespace ash |
122 | 124 |
123 #endif // ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ | 125 #endif // ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ |
OLD | NEW |