OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google Inc. | 3 * Copyright (C) 2008, 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 17 matching lines...) Expand all Loading... |
28 #include "platform/PlatformKeyboardEvent.h" | 28 #include "platform/PlatformKeyboardEvent.h" |
29 | 29 |
30 #if OS(WIN) | 30 #if OS(WIN) |
31 #include <windows.h> | 31 #include <windows.h> |
32 #elif OS(MACOSX) | 32 #elif OS(MACOSX) |
33 #import <Carbon/Carbon.h> | 33 #import <Carbon/Carbon.h> |
34 #else | 34 #else |
35 #include "platform/NotImplemented.h" | 35 #include "platform/NotImplemented.h" |
36 #endif | 36 #endif |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 #if OS(WIN) | 40 #if OS(WIN) |
41 static const unsigned short HIGHBITMASKSHORT = 0x8000; | 41 static const unsigned short HIGHBITMASKSHORT = 0x8000; |
42 #endif | 42 #endif |
43 | 43 |
44 void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type) | 44 void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type) |
45 { | 45 { |
46 #if OS(WIN) | 46 #if OS(WIN) |
47 // No KeyDown events on Windows to disambiguate. | 47 // No KeyDown events on Windows to disambiguate. |
48 ASSERT_NOT_REACHED(); | 48 ASSERT_NOT_REACHED(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 metaKey = currentModifiers & ::cmdKey; | 99 metaKey = currentModifiers & ::cmdKey; |
100 #else | 100 #else |
101 shiftKey = false; | 101 shiftKey = false; |
102 ctrlKey = false; | 102 ctrlKey = false; |
103 altKey = false; | 103 altKey = false; |
104 metaKey = false; | 104 metaKey = false; |
105 notImplemented(); | 105 notImplemented(); |
106 #endif | 106 #endif |
107 } | 107 } |
108 | 108 |
109 } // namespace WebCore | 109 } // namespace blink |
OLD | NEW |