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

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

Issue 10365009: Adding Gesture Recognition to RenderWidgetHostViewWin (web client) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed views dependency. Created 8 years, 7 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
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/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 public: 356 public:
357 GestureEvent(ui::EventType type, 357 GestureEvent(ui::EventType type,
358 int x, 358 int x,
359 int y, 359 int y,
360 int flags, 360 int flags,
361 base::Time time_stamp, 361 base::Time time_stamp,
362 float delta_x, 362 float delta_x,
363 float delta_y, 363 float delta_y,
364 unsigned int touch_ids_bitfield); 364 unsigned int touch_ids_bitfield);
365 365
366 // Create a new TouchEvent which is identical to the provided model. 366 // Create a new GestureEvent which is identical to the provided model.
367 // If source / target windows are provided, the model location will be 367 // If source / target windows are provided, the model location will be
368 // converted from |source| coordinate system to |target| coordinate system. 368 // converted from |source| coordinate system to |target| coordinate system.
369 GestureEvent(const GestureEvent& model, Window* source, Window* target); 369 GestureEvent(const GestureEvent& model, Window* source, Window* target);
370 370
371 virtual ~GestureEvent(); 371 virtual ~GestureEvent();
372 372
373 float delta_x() const { return delta_x_; } 373 float delta_x() const { return delta_x_; }
374 float delta_y() const { return delta_y_; } 374 float delta_y() const { return delta_y_; }
375 375
376 // Returns the lowest touch-id of any of the touches which make up this 376 // Returns the lowest touch-id of any of the touches which make up this
(...skipping 10 matching lines...) Expand all
387 // This value is stored as a bitfield because the number of touch ids varies, 387 // This value is stored as a bitfield because the number of touch ids varies,
388 // but we currently don't need more than 32 touches at a time. 388 // but we currently don't need more than 32 touches at a time.
389 const unsigned int touch_ids_bitfield_; 389 const unsigned int touch_ids_bitfield_;
390 390
391 DISALLOW_COPY_AND_ASSIGN(GestureEvent); 391 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
392 }; 392 };
393 393
394 } // namespace aura 394 } // namespace aura
395 395
396 #endif // UI_AURA_EVENT_H_ 396 #endif // UI_AURA_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698