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 UI_AURA_EVENT_H_ | 5 #ifndef UI_AURA_EVENT_H_ |
6 #define UI_AURA_EVENT_H_ | 6 #define UI_AURA_EVENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 const ui::OSExchangeData& data_; | 259 const ui::OSExchangeData& data_; |
260 | 260 |
261 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. | 261 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
262 int source_operations_; | 262 int source_operations_; |
263 | 263 |
264 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 264 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
265 }; | 265 }; |
266 | 266 |
267 class AURA_EXPORT ScrollEvent : public MouseEvent { | 267 class AURA_EXPORT ScrollEvent : public MouseEvent { |
268 public: | 268 public: |
269 ScrollEvent(const base::NativeEvent& native_event); | 269 explicit ScrollEvent(const base::NativeEvent& native_event); |
270 ScrollEvent(const ScrollEvent& model, | 270 ScrollEvent(const ScrollEvent& model, |
271 Window* source, | 271 Window* source, |
272 Window* target, | 272 Window* target, |
273 ui::EventType type, | 273 ui::EventType type, |
274 int flags) | 274 int flags) |
275 : MouseEvent(model, source, target, type, flags), | 275 : MouseEvent(model, source, target, type, flags), |
276 x_offset_(model.x_offset_), | 276 x_offset_(model.x_offset_), |
277 y_offset_(model.y_offset_) { | 277 y_offset_(model.y_offset_) { |
278 } | 278 } |
279 | 279 |
280 float x_offset() const { return x_offset_; } | 280 float x_offset() const { return x_offset_; } |
281 float y_offset() const { return y_offset_; } | 281 float y_offset() const { return y_offset_; } |
282 | 282 |
283 private: | 283 private: |
284 float x_offset_; | 284 float x_offset_; |
285 float y_offset_; | 285 float y_offset_; |
286 | 286 |
287 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); | 287 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); |
288 }; | 288 }; |
289 | 289 |
| 290 class AURA_EXPORT GestureEvent : public LocatedEvent { |
| 291 }; |
| 292 |
290 } // namespace aura | 293 } // namespace aura |
291 | 294 |
292 #endif // UI_AURA_EVENT_H_ | 295 #endif // UI_AURA_EVENT_H_ |
OLD | NEW |