| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_EXO_POINTER_DELEGATE_H_ | 5 #ifndef COMPONENTS_EXO_POINTER_DELEGATE_H_ |
| 6 #define COMPONENTS_EXO_POINTER_DELEGATE_H_ | 6 #define COMPONENTS_EXO_POINTER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "ui/events/event_constants.h" | 9 #include "ui/events/event_constants.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Point; | |
| 13 class PointF; | 12 class PointF; |
| 14 class Vector2dF; | 13 class Vector2dF; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace exo { | 16 namespace exo { |
| 18 class Pointer; | 17 class Pointer; |
| 19 class Surface; | 18 class Surface; |
| 20 | 19 |
| 21 // Handles events on pointers in context-specific ways. | 20 // Handles events on pointers in context-specific ways. |
| 22 class PointerDelegate { | 21 class PointerDelegate { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // this method is called. | 68 // this method is called. |
| 70 virtual void OnPointerFrame() = 0; | 69 virtual void OnPointerFrame() = 0; |
| 71 | 70 |
| 72 protected: | 71 protected: |
| 73 virtual ~PointerDelegate() {} | 72 virtual ~PointerDelegate() {} |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace exo | 75 } // namespace exo |
| 77 | 76 |
| 78 #endif // COMPONENTS_EXO_POINTER_DELEGATE_H_ | 77 #endif // COMPONENTS_EXO_POINTER_DELEGATE_H_ |
| OLD | NEW |