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

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: copyright 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
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/event_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698