| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Overridden from ui::EventHandler: | 40 // Overridden from ui::EventHandler: |
| 41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 43 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 43 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 44 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 44 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 45 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 45 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 46 | 46 |
| 47 // Overridden form aura::client::WindowMoveClient: | 47 // Overridden form aura::client::WindowMoveClient: |
| 48 virtual aura::client::WindowMoveResult RunMoveLoop( | 48 virtual aura::client::WindowMoveResult RunMoveLoop( |
| 49 aura::Window* source, | 49 aura::Window* source, |
| 50 const gfx::Point& drag_offset) OVERRIDE; | 50 const gfx::Vector2d& drag_offset) OVERRIDE; |
| 51 virtual void EndMoveLoop() OVERRIDE; | 51 virtual void EndMoveLoop() OVERRIDE; |
| 52 | 52 |
| 53 // Overridden form ash::DisplayController::Observer: | 53 // Overridden form ash::DisplayController::Observer: |
| 54 virtual void OnDisplayConfigurationChanging() OVERRIDE; | 54 virtual void OnDisplayConfigurationChanging() OVERRIDE; |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 // Creates a new WindowResizer. | 57 // Creates a new WindowResizer. |
| 58 virtual WindowResizer* CreateWindowResizer(aura::Window* window, | 58 virtual WindowResizer* CreateWindowResizer(aura::Window* window, |
| 59 const gfx::Point& point_in_parent, | 59 const gfx::Point& point_in_parent, |
| 60 int window_component); | 60 int window_component); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 scoped_ptr<ScopedWindowResizer> window_resizer_; | 109 scoped_ptr<ScopedWindowResizer> window_resizer_; |
| 110 | 110 |
| 111 base::Closure quit_closure_; | 111 base::Closure quit_closure_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 113 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace aura | 116 } // namespace aura |
| 117 | 117 |
| 118 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 118 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |