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

Side by Side Diff: Source/platform/PlatformKeyboardEvent.h

Issue 1177043016: [SP] Add a drawing recorder before painting caps lock indicator in password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Need to rebaseline new tests under virtual/antialiasedtext as well. Created 5 years, 6 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
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/PlatformKeyboardEvent.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, 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
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
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/PlatformKeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698