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

Side by Side Diff: ui/events/win/events_win.cc

Issue 1881893002: Remove unnecessary include (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | 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 <stdint.h> 5 #include <stdint.h>
6 #include <windowsx.h> 6 #include <windowsx.h>
7 7
8 #include "ui/events/event_constants.h" 8 #include "ui/events/event_constants.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "ui/events/event_utils.h" 12 #include "ui/events/event_utils.h"
13 #include "ui/events/keycodes/keyboard_code_conversion_win.h" 13 #include "ui/events/keycodes/keyboard_code_conversion_win.h"
14 #include "ui/events/win/system_event_state_lookup.h" 14 #include "ui/events/win/system_event_state_lookup.h"
15 #include "ui/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/win/dpi.h"
17 16
18 namespace ui { 17 namespace ui {
19 18
20 namespace { 19 namespace {
21 20
22 // From MSDN: "Mouse" events are flagged with 0xFF515700 if they come 21 // From MSDN: "Mouse" events are flagged with 0xFF515700 if they come
23 // from a touch or stylus device. In Vista or later, they are also flagged 22 // from a touch or stylus device. In Vista or later, they are also flagged
24 // with 0x80 if they come from touch. 23 // with 0x80 if they come from touch.
25 #define MOUSEEVENTF_FROMTOUCH (0xFF515700 | 0x80) 24 #define MOUSEEVENTF_FROMTOUCH (0xFF515700 | 0x80)
26 25
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } 409 }
411 410
412 LPARAM GetLParamFromScanCode(uint16_t scan_code) { 411 LPARAM GetLParamFromScanCode(uint16_t scan_code) {
413 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; 412 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16;
414 if ((scan_code & 0xE000) == 0xE000) 413 if ((scan_code & 0xE000) == 0xE000)
415 l_param |= (1 << 24); 414 l_param |= (1 << 24);
416 return l_param; 415 return l_param;
417 } 416 }
418 417
419 } // namespace ui 418 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698