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

Side by Side Diff: ui/base/gestures/gesture_sequence.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/gestures/gesture_sequence.h ('k') | ui/base/gestures/gesture_types.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_sequence.h" 5 #include "ui/base/gestures/gesture_sequence.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "ui/base/event.h" 12 #include "ui/base/events/event.h"
13 #include "ui/base/events.h" 13 #include "ui/base/events/event_constants.h"
14 #include "ui/base/gestures/gesture_configuration.h" 14 #include "ui/base/gestures/gesture_configuration.h"
15 #include "ui/base/gestures/gesture_util.h" 15 #include "ui/base/gestures/gesture_util.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 namespace { 20 namespace {
21 21
22 // ui::EventType is mapped to TouchState so it can fit into 3 bits of 22 // ui::EventType is mapped to TouchState so it can fit into 3 bits of
23 // Signature. 23 // Signature.
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 return; 1053 return;
1054 1054
1055 // Since long press timer has been started, there should be a non-NULL point. 1055 // Since long press timer has been started, there should be a non-NULL point.
1056 const GesturePoint* point = GetPointByPointId(0); 1056 const GesturePoint* point = GetPointByPointId(0);
1057 if (!ui::gestures::IsInsideManhattanSquare(point->first_touch_position(), 1057 if (!ui::gestures::IsInsideManhattanSquare(point->first_touch_position(),
1058 event.location())) 1058 event.location()))
1059 long_press_timer_->Stop(); 1059 long_press_timer_->Stop();
1060 } 1060 }
1061 1061
1062 } // namespace ui 1062 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/gestures/gesture_sequence.h ('k') | ui/base/gestures/gesture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698