| 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 private: | 56 private: |
| 57 class ScopedWindowResizer; | 57 class ScopedWindowResizer; |
| 58 | 58 |
| 59 enum DragCompletionStatus { | 59 enum DragCompletionStatus { |
| 60 DRAG_COMPLETE, | 60 DRAG_COMPLETE, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Used to track if this object is deleted while running a nested message | 107 // Used to track if this object is deleted while running a nested message |
| 108 // loop. If non-null the destructor sets this to true. | 108 // loop. If non-null the destructor sets this to true. |
| 109 bool* destroyed_; | 109 bool* destroyed_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 111 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace aura | 114 } // namespace aura |
| 115 | 115 |
| 116 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 116 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |