| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_EVENTS_EVENT_H_ | 5 #ifndef VIEWS_EVENTS_EVENT_H_ |
| 6 #define VIEWS_EVENTS_EVENT_H_ | 6 #define VIEWS_EVENTS_EVENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 TouchEvent(const TouchEvent& model, View* source, View* target); | 266 TouchEvent(const TouchEvent& model, View* source, View* target); |
| 267 | 267 |
| 268 int identity() const { return touch_id_; } | 268 int identity() const { return touch_id_; } |
| 269 | 269 |
| 270 float radius_x() const { return radius_x_; } | 270 float radius_x() const { return radius_x_; } |
| 271 float radius_y() const { return radius_y_; } | 271 float radius_y() const { return radius_y_; } |
| 272 float rotation_angle() const { return rotation_angle_; } | 272 float rotation_angle() const { return rotation_angle_; } |
| 273 float force() const { return force_; } | 273 float force() const { return force_; } |
| 274 | 274 |
| 275 private: | 275 private: |
| 276 friend class internal::NativeWidgetView; |
| 276 friend class internal::RootView; | 277 friend class internal::RootView; |
| 277 | 278 |
| 278 TouchEvent(const TouchEvent& model, View* root); | 279 TouchEvent(const TouchEvent& model, View* root); |
| 279 | 280 |
| 280 // The identity (typically finger) of the touch starting at 0 and incrementing | 281 // The identity (typically finger) of the touch starting at 0 and incrementing |
| 281 // for each separable additional touch that the hardware can detect. | 282 // for each separable additional touch that the hardware can detect. |
| 282 const int touch_id_; | 283 const int touch_id_; |
| 283 | 284 |
| 284 // Radius of the X (major) axis of the touch ellipse. 1.0 if unknown. | 285 // Radius of the X (major) axis of the touch ellipse. 1.0 if unknown. |
| 285 const float radius_x_; | 286 const float radius_x_; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 | 430 |
| 430 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. | 431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
| 431 int source_operations_; | 432 int source_operations_; |
| 432 | 433 |
| 433 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
| 434 }; | 435 }; |
| 435 | 436 |
| 436 } // namespace views | 437 } // namespace views |
| 437 | 438 |
| 438 #endif // VIEWS_EVENTS_EVENT_H_ | 439 #endif // VIEWS_EVENTS_EVENT_H_ |
| OLD | NEW |