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

Side by Side Diff: ui/base/events/event.cc

Issue 16402012: Use a direct include of strings headers in ui/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
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/events/event.h" 5 #include "ui/base/events/event.h"
6 6
7 #if defined(USE_X11) 7 #if defined(USE_X11)
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #endif 9 #endif
10 10
11 #include <cmath> 11 #include <cmath>
12 #include <cstring> 12 #include <cstring>
13 13
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "ui/base/events/event_utils.h" 16 #include "ui/base/events/event_utils.h"
17 #include "ui/base/keycodes/keyboard_code_conversion.h" 17 #include "ui/base/keycodes/keyboard_code_conversion.h"
18 #include "ui/gfx/point3_f.h" 18 #include "ui/gfx/point3_f.h"
19 #include "ui/gfx/point_conversions.h" 19 #include "ui/gfx/point_conversions.h"
20 #include "ui/gfx/transform.h" 20 #include "ui/gfx/transform.h"
21 #include "ui/gfx/transform_util.h" 21 #include "ui/gfx/transform_util.h"
22 22
23 #if defined(USE_X11) 23 #if defined(USE_X11)
24 #include "ui/base/keycodes/keyboard_code_conversion_x.h" 24 #include "ui/base/keycodes/keyboard_code_conversion_x.h"
25 #endif 25 #endif
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 int GestureEvent::GetLowestTouchId() const { 732 int GestureEvent::GetLowestTouchId() const {
733 if (touch_ids_bitfield_ == 0) 733 if (touch_ids_bitfield_ == 0)
734 return -1; 734 return -1;
735 int i = -1; 735 int i = -1;
736 // Find the index of the least significant 1 bit 736 // Find the index of the least significant 1 bit
737 while (!(1 << ++i & touch_ids_bitfield_)); 737 while (!(1 << ++i & touch_ids_bitfield_));
738 return i; 738 return i;
739 } 739 }
740 740
741 } // namespace ui 741 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aurax11.cc ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698