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

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: Merge cleanup. (Implementing four new virtuals added in the base.) 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura/root_window.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/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 public: 364 public:
365 GestureEvent(ui::EventType type, 365 GestureEvent(ui::EventType type,
366 int x, 366 int x,
367 int y, 367 int y,
368 int flags, 368 int flags,
369 base::Time time_stamp, 369 base::Time time_stamp,
370 float delta_x, 370 float delta_x,
371 float delta_y, 371 float delta_y,
372 unsigned int touch_ids_bitfield); 372 unsigned int touch_ids_bitfield);
373 373
374 // Create a new TouchEvent which is identical to the provided model. 374 // Create a new GestureEvent which is identical to the provided model.
375 // If source / target windows are provided, the model location will be 375 // If source / target windows are provided, the model location will be
376 // converted from |source| coordinate system to |target| coordinate system. 376 // converted from |source| coordinate system to |target| coordinate system.
377 GestureEvent(const GestureEvent& model, Window* source, Window* target); 377 GestureEvent(const GestureEvent& model, Window* source, Window* target);
378 378
379 virtual ~GestureEvent(); 379 virtual ~GestureEvent();
380 380
381 float delta_x() const { return delta_x_; } 381 float delta_x() const { return delta_x_; }
382 float delta_y() const { return delta_y_; } 382 float delta_y() const { return delta_y_; }
383 383
384 // Returns the lowest touch-id of any of the touches which make up this 384 // Returns the lowest touch-id of any of the touches which make up this
(...skipping 10 matching lines...) Expand all
395 // This value is stored as a bitfield because the number of touch ids varies, 395 // This value is stored as a bitfield because the number of touch ids varies,
396 // but we currently don't need more than 32 touches at a time. 396 // but we currently don't need more than 32 touches at a time.
397 const unsigned int touch_ids_bitfield_; 397 const unsigned int touch_ids_bitfield_;
398 398
399 DISALLOW_COPY_AND_ASSIGN(GestureEvent); 399 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
400 }; 400 };
401 401
402 } // namespace aura 402 } // namespace aura
403 403
404 #endif // UI_AURA_EVENT_H_ 404 #endif // UI_AURA_EVENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698