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

Side by Side Diff: ui/base/gestures/gesture_point.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/base/events/event_target.h ('k') | ui/base/gestures/gesture_recognizer.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 #include "ui/base/gestures/gesture_point.h" 5 #include "ui/base/gestures/gesture_point.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/base/event.h" 10 #include "ui/base/events/event.h"
11 #include "ui/base/events.h" 11 #include "ui/base/events/event_constants.h"
12 #include "ui/base/gestures/gesture_configuration.h" 12 #include "ui/base/gestures/gesture_configuration.h"
13 #include "ui/base/gestures/gesture_types.h"
13 #include "ui/base/gestures/gesture_util.h" 14 #include "ui/base/gestures/gesture_util.h"
14 #include "ui/base/gestures/gesture_types.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 GesturePoint::GesturePoint() 18 GesturePoint::GesturePoint()
19 : first_touch_time_(0.0), 19 : first_touch_time_(0.0),
20 last_touch_time_(0.0), 20 last_touch_time_(0.0),
21 last_tap_time_(0.0), 21 last_tap_time_(0.0),
22 velocity_calculator_( 22 velocity_calculator_(
23 GestureConfiguration::points_buffered_for_velocity()), 23 GestureConfiguration::points_buffered_for_velocity()),
24 point_id_(-1), 24 point_id_(-1),
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 event.location().y() - radius, 190 event.location().y() - radius,
191 radius * 2, 191 radius * 2,
192 radius * 2); 192 radius * 2);
193 if (IsInClickWindow(event)) 193 if (IsInClickWindow(event))
194 enclosing_rect_ = enclosing_rect_.Union(rect); 194 enclosing_rect_ = enclosing_rect_.Union(rect);
195 else 195 else
196 enclosing_rect_ = rect; 196 enclosing_rect_ = rect;
197 } 197 }
198 198
199 } // namespace ui 199 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/events/event_target.h ('k') | ui/base/gestures/gesture_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698