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

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

Issue 12087091: Move string tokenizer to base/strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 7 years, 10 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 | « testing/android/native_test_launcher.cc ('k') | webkit/glue/webkit_glue.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) 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 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/string_number_conversions.h" 12 #include "base/string_number_conversions.h"
13 #include "base/string_tokenizer.h"
14 #include "base/time.h" 13 #include "base/time.h"
15 #include "ui/base/events/event.h" 14 #include "ui/base/events/event.h"
16 #include "ui/base/events/event_constants.h" 15 #include "ui/base/events/event_constants.h"
17 #include "ui/base/gestures/gesture_configuration.h" 16 #include "ui/base/gestures/gesture_configuration.h"
18 #include "ui/base/gestures/gesture_util.h" 17 #include "ui/base/gestures/gesture_util.h"
19 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
20 19
21 namespace ui { 20 namespace ui {
22 21
23 namespace { 22 namespace {
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 return; 1123 return;
1125 1124
1126 // Since long press timer has been started, there should be a non-NULL point. 1125 // Since long press timer has been started, there should be a non-NULL point.
1127 const GesturePoint* point = GetPointByPointId(0); 1126 const GesturePoint* point = GetPointByPointId(0);
1128 if (!ui::gestures::IsInsideManhattanSquare(point->first_touch_position(), 1127 if (!ui::gestures::IsInsideManhattanSquare(point->first_touch_position(),
1129 event.location())) 1128 event.location()))
1130 GetLongPressTimer()->Stop(); 1129 GetLongPressTimer()->Stop();
1131 } 1130 }
1132 1131
1133 } // namespace ui 1132 } // namespace ui
OLDNEW
« no previous file with comments | « testing/android/native_test_launcher.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698