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

Side by Side Diff: ui/base/win/events_win.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/keycodes/keyboard_code_conversion.cc ('k') | ui/base/x/events_x.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 <windowsx.h> 5 #include <windowsx.h>
6 6
7 #include "ui/base/events.h" 7 #include "ui/base/events/event_constants.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "base/win/win_util.h" 11 #include "base/win/win_util.h"
12 #include "ui/base/keycodes/keyboard_code_conversion_win.h" 12 #include "ui/base/keycodes/keyboard_code_conversion_win.h"
13 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 namespace { 17 namespace {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // Windows emulates mouse messages for touch events. 350 // Windows emulates mouse messages for touch events.
351 bool IsMouseEventFromTouch(UINT message) { 351 bool IsMouseEventFromTouch(UINT message) {
352 return (message == WM_MOUSEMOVE || 352 return (message == WM_MOUSEMOVE ||
353 message == WM_LBUTTONDOWN || message == WM_LBUTTONUP || 353 message == WM_LBUTTONDOWN || message == WM_LBUTTONUP ||
354 message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) && 354 message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) &&
355 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == 355 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) ==
356 MOUSEEVENTF_FROMTOUCH; 356 MOUSEEVENTF_FROMTOUCH;
357 } 357 }
358 358
359 } // namespace ui 359 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/keycodes/keyboard_code_conversion.cc ('k') | ui/base/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698