| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. | 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 String m_text; | 98 String m_text; |
| 99 String m_unmodifiedText; | 99 String m_unmodifiedText; |
| 100 String m_keyIdentifier; | 100 String m_keyIdentifier; |
| 101 String m_code; | 101 String m_code; |
| 102 String m_key; | 102 String m_key; |
| 103 int m_windowsVirtualKeyCode; | 103 int m_windowsVirtualKeyCode; |
| 104 int m_nativeVirtualKeyCode; | 104 int m_nativeVirtualKeyCode; |
| 105 bool m_autoRepeat; | 105 bool m_autoRepeat; |
| 106 bool m_isKeypad; | 106 bool m_isKeypad; |
| 107 bool m_isSystemKey; | 107 bool m_isSystemKey; |
| 108 |
| 109 private: |
| 110 friend class Internals; |
| 111 enum OverrideCapsLockState { |
| 112 Default, |
| 113 On, |
| 114 Off |
| 115 }; |
| 116 // Allows overriding the current caps lock state for testing purposes. |
| 117 PLATFORM_EXPORT static void setCurrentCapsLockState(OverrideCapsLockState st
ate) { s_overrideCapsLockState = state; } |
| 118 PLATFORM_EXPORT static OverrideCapsLockState s_overrideCapsLockState; |
| 108 }; | 119 }; |
| 109 | 120 |
| 110 } // namespace blink | 121 } // namespace blink |
| 111 | 122 |
| 112 #endif // PlatformKeyboardEvent_h | 123 #endif // PlatformKeyboardEvent_h |
| OLD | NEW |