| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Moves the overview to only |root_window|. | 60 // Moves the overview to only |root_window|. |
| 61 void MoveToSingleRootWindow(aura::Window* root_window); | 61 void MoveToSingleRootWindow(aura::Window* root_window); |
| 62 | 62 |
| 63 // ui::EventHandler: | 63 // ui::EventHandler: |
| 64 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 64 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 65 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 65 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 66 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 66 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 67 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 67 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 68 | 68 |
| 69 // gfx::DisplayObserver: | 69 // gfx::DisplayObserver: |
| 70 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | |
| 71 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 70 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
| 72 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; | 71 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; |
| 72 virtual void OnDisplayMetricsChanged(const gfx::Display& display, |
| 73 DisplayObserver::DisplayMetrics metrics) OVERRIDE; |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 // Returns the target of |event| or NULL if the event is not targeted at | 76 // Returns the target of |event| or NULL if the event is not targeted at |
| 76 // any of the windows in the selector. | 77 // any of the windows in the selector. |
| 77 aura::Window* GetEventTarget(ui::LocatedEvent* event); | 78 aura::Window* GetEventTarget(ui::LocatedEvent* event); |
| 78 | 79 |
| 79 // Returns the top-level window selected by targeting |window| or NULL if | 80 // Returns the top-level window selected by targeting |window| or NULL if |
| 80 // no overview window was found for |window|. | 81 // no overview window was found for |window|. |
| 81 aura::Window* GetTargetedWindow(aura::Window* window); | 82 aura::Window* GetTargetedWindow(aura::Window* window); |
| 82 | 83 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Tracks windows which were hidden because they were not part of the | 128 // Tracks windows which were hidden because they were not part of the |
| 128 // overview. | 129 // overview. |
| 129 aura::WindowTracker hidden_windows_; | 130 aura::WindowTracker hidden_windows_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(WindowOverview); | 132 DISALLOW_COPY_AND_ASSIGN(WindowOverview); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace ash | 135 } // namespace ash |
| 135 | 136 |
| 136 #endif // ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ | 137 #endif // ASH_WM_OVERVIEW_WINDOW_OVERVIEW_H_ |
| OLD | NEW |