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

Side by Side Diff: views/events/event.h

Issue 7540002: Fix a few issues with touch-events and views-desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « views/desktop/desktop_window_root_view.cc ('k') | views/touchui/gesture_manager.cc » ('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) 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 VIEWS_EVENTS_EVENT_H_ 5 #ifndef VIEWS_EVENTS_EVENT_H_
6 #define VIEWS_EVENTS_EVENT_H_ 6 #define VIEWS_EVENTS_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 TouchEvent(const TouchEvent& model, View* source, View* target); 266 TouchEvent(const TouchEvent& model, View* source, View* target);
267 267
268 int identity() const { return touch_id_; } 268 int identity() const { return touch_id_; }
269 269
270 float radius_x() const { return radius_x_; } 270 float radius_x() const { return radius_x_; }
271 float radius_y() const { return radius_y_; } 271 float radius_y() const { return radius_y_; }
272 float rotation_angle() const { return rotation_angle_; } 272 float rotation_angle() const { return rotation_angle_; }
273 float force() const { return force_; } 273 float force() const { return force_; }
274 274
275 private: 275 private:
276 friend class internal::NativeWidgetView;
276 friend class internal::RootView; 277 friend class internal::RootView;
277 278
278 TouchEvent(const TouchEvent& model, View* root); 279 TouchEvent(const TouchEvent& model, View* root);
279 280
280 // The identity (typically finger) of the touch starting at 0 and incrementing 281 // The identity (typically finger) of the touch starting at 0 and incrementing
281 // for each separable additional touch that the hardware can detect. 282 // for each separable additional touch that the hardware can detect.
282 const int touch_id_; 283 const int touch_id_;
283 284
284 // Radius of the X (major) axis of the touch ellipse. 1.0 if unknown. 285 // Radius of the X (major) axis of the touch ellipse. 1.0 if unknown.
285 const float radius_x_; 286 const float radius_x_;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 430
430 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
431 int source_operations_; 432 int source_operations_;
432 433
433 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
434 }; 435 };
435 436
436 } // namespace views 437 } // namespace views
437 438
438 #endif // VIEWS_EVENTS_EVENT_H_ 439 #endif // VIEWS_EVENTS_EVENT_H_
OLDNEW
« no previous file with comments | « views/desktop/desktop_window_root_view.cc ('k') | views/touchui/gesture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698