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

Side by Side Diff: Source/web/mac/WebInputEventFactory.mm

Issue 26592011: Move keyboard related files from core/ to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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 | « Source/web/gtk/WebInputEventFactory.cpp ('k') | Source/web/tests/KeyCodeConversionTestGtk.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006-2009 Google Inc. 3 * Copyright (C) 2006-2009 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "WebInputEventFactory.h" 28 #include "WebInputEventFactory.h"
29 29
30 #include <ApplicationServices/ApplicationServices.h> 30 #include <ApplicationServices/ApplicationServices.h>
31 #import <AvailabilityMacros.h> 31 #import <AvailabilityMacros.h>
32 #import <Cocoa/Cocoa.h> 32 #import <Cocoa/Cocoa.h>
33 33
34 #include "WebInputEvent.h" 34 #include "WebInputEvent.h"
35 #include "core/platform/WindowsKeyboardCodes.h" 35 #include "platform/WindowsKeyboardCodes.h"
36 #include "wtf/ASCIICType.h" 36 #include "wtf/ASCIICType.h"
37 37
38 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 38 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060
39 39
40 // Additional Lion APIs. 40 // Additional Lion APIs.
41 enum { 41 enum {
42 NSEventPhaseNone = 0, 42 NSEventPhaseNone = 0,
43 NSEventPhaseBegan = 0x1 << 0, 43 NSEventPhaseBegan = 0x1 << 0,
44 NSEventPhaseStationary = 0x1 << 1, 44 NSEventPhaseStationary = 0x1 << 1,
45 NSEventPhaseChanged = 0x1 << 2, 45 NSEventPhaseChanged = 0x1 << 2,
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 result.globalY = temp.globalY; 1139 result.globalY = temp.globalY;
1140 1140
1141 result.type = gestureEventTypeForEvent(event); 1141 result.type = gestureEventTypeForEvent(event);
1142 result.modifiers = modifiersFromEvent(event); 1142 result.modifiers = modifiersFromEvent(event);
1143 result.timeStampSeconds = [event timestamp]; 1143 result.timeStampSeconds = [event timestamp];
1144 1144
1145 return result; 1145 return result;
1146 } 1146 }
1147 1147
1148 } // namespace WebKit 1148 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/gtk/WebInputEventFactory.cpp ('k') | Source/web/tests/KeyCodeConversionTestGtk.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698