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_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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 private: | 197 private: |
198 // Data associated with the drag/drop session. | 198 // Data associated with the drag/drop session. |
199 const ui::OSExchangeData& data_; | 199 const ui::OSExchangeData& data_; |
200 | 200 |
201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. | 201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
202 int source_operations_; | 202 int source_operations_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
205 }; | 205 }; |
206 | 206 |
| 207 class AURA_EXPORT ScrollEvent : public MouseEvent { |
| 208 public: |
| 209 ScrollEvent(const base::NativeEvent& native_event); |
| 210 ScrollEvent(const ScrollEvent& model, |
| 211 Window* source, |
| 212 Window* target, |
| 213 ui::EventType type, |
| 214 int flags) |
| 215 : MouseEvent(model, source, target, type, flags), |
| 216 x_offset_(model.x_offset_), |
| 217 y_offset_(model.y_offset_) { |
| 218 } |
| 219 |
| 220 float x_offset() const { return x_offset_; } |
| 221 float y_offset() const { return y_offset_; } |
| 222 |
| 223 private: |
| 224 float x_offset_; |
| 225 float y_offset_; |
| 226 |
| 227 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); |
| 228 }; |
| 229 |
207 } // namespace aura | 230 } // namespace aura |
208 | 231 |
209 #endif // UI_AURA_EVENT_H_ | 232 #endif // UI_AURA_EVENT_H_ |
OLD | NEW |