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 UI_VIEWS_EVENTS_EVENT_H_ | 5 #ifndef UI_VIEWS_EVENTS_EVENT_H_ |
6 #define UI_VIEWS_EVENTS_EVENT_H_ | 6 #define UI_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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 private: | 403 private: |
404 // Data associated with the drag/drop session. | 404 // Data associated with the drag/drop session. |
405 const ui::OSExchangeData& data_; | 405 const ui::OSExchangeData& data_; |
406 | 406 |
407 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. | 407 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
408 int source_operations_; | 408 int source_operations_; |
409 | 409 |
410 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 410 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
411 }; | 411 }; |
412 | 412 |
| 413 class VIEWS_EXPORT ScrollEvent : public MouseEvent { |
| 414 public: |
| 415 explicit ScrollEvent(const NativeEvent& native_event); |
| 416 float x_offset() const { return x_offset_; } |
| 417 float y_offset() const { return y_offset_; } |
| 418 |
| 419 private: |
| 420 float x_offset_; |
| 421 float y_offset_; |
| 422 |
| 423 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); |
| 424 }; |
| 425 |
413 } // namespace views | 426 } // namespace views |
414 | 427 |
415 #endif // UI_VIEWS_EVENTS_EVENT_H_ | 428 #endif // UI_VIEWS_EVENTS_EVENT_H_ |
OLD | NEW |