Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: ui/aura/event.h

Issue 9221014: aura: Gesture event plumbing (skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const ui::OSExchangeData& data_; 211 const ui::OSExchangeData& data_;
212 212
213 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 213 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
214 int source_operations_; 214 int source_operations_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 216 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
217 }; 217 };
218 218
219 class AURA_EXPORT ScrollEvent : public MouseEvent { 219 class AURA_EXPORT ScrollEvent : public MouseEvent {
220 public: 220 public:
221 ScrollEvent(const base::NativeEvent& native_event); 221 explicit ScrollEvent(const base::NativeEvent& native_event);
222 ScrollEvent(const ScrollEvent& model, 222 ScrollEvent(const ScrollEvent& model,
223 Window* source, 223 Window* source,
224 Window* target, 224 Window* target,
225 ui::EventType type, 225 ui::EventType type,
226 int flags) 226 int flags)
227 : MouseEvent(model, source, target, type, flags), 227 : MouseEvent(model, source, target, type, flags),
228 x_offset_(model.x_offset_), 228 x_offset_(model.x_offset_),
229 y_offset_(model.y_offset_) { 229 y_offset_(model.y_offset_) {
230 } 230 }
231 231
232 float x_offset() const { return x_offset_; } 232 float x_offset() const { return x_offset_; }
233 float y_offset() const { return y_offset_; } 233 float y_offset() const { return y_offset_; }
234 234
235 private: 235 private:
236 float x_offset_; 236 float x_offset_;
237 float y_offset_; 237 float y_offset_;
238 238
239 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); 239 DISALLOW_COPY_AND_ASSIGN(ScrollEvent);
240 }; 240 };
241 241
242 class AURA_EXPORT GestureEvent : public LocatedEvent {
243 };
244
242 } // namespace aura 245 } // namespace aura
243 246
244 #endif // UI_AURA_EVENT_H_ 247 #endif // UI_AURA_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698