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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 UInt32 currentModifiers = GetCurrentKeyModifiers(); | 106 UInt32 currentModifiers = GetCurrentKeyModifiers(); |
107 if (currentModifiers & ::shiftKey) | 107 if (currentModifiers & ::shiftKey) |
108 modifiers |= ShiftKey; | 108 modifiers |= ShiftKey; |
109 if (currentModifiers & ::controlKey) | 109 if (currentModifiers & ::controlKey) |
110 modifiers |= CtrlKey; | 110 modifiers |= CtrlKey; |
111 if (currentModifiers & ::optionKey) | 111 if (currentModifiers & ::optionKey) |
112 modifiers |= AltKey; | 112 modifiers |= AltKey; |
113 if (currentModifiers & ::cmdKey) | 113 if (currentModifiers & ::cmdKey) |
114 modifiers |= MetaKey; | 114 modifiers |= MetaKey; |
115 #else | 115 #else |
116 // See https://crbug.com/538289 | 116 // TODO(crbug.com/538289): Implement on other platforms. |
117 NOTIMPLEMENTED(); | 117 return static_cast<Modifiers>(0); |
118 #endif | 118 #endif |
119 return static_cast<Modifiers>(modifiers); | 119 return static_cast<Modifiers>(modifiers); |
120 } | 120 } |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
OLD | NEW |