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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/PlatformKeyboardEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformKeyboardEvent.h
diff --git a/Source/platform/PlatformKeyboardEvent.h b/Source/platform/PlatformKeyboardEvent.h
index c024a03f6b2311e5a6c6b27fcf3468a43aa9f63a..2190b6fbd4ce4433e5ad168adf9f5516b90451e4 100644
--- a/Source/platform/PlatformKeyboardEvent.h
+++ b/Source/platform/PlatformKeyboardEvent.h
@@ -105,6 +105,17 @@ protected:
bool m_autoRepeat;
bool m_isKeypad;
bool m_isSystemKey;
+
+private:
+ friend class Internals;
+ enum OverrideCapsLockState {
+ Default,
+ On,
+ Off
+ };
+ // Allows overriding the current caps lock state for testing purposes.
+ PLATFORM_EXPORT static void setCurrentCapsLockState(OverrideCapsLockState state) { s_overrideCapsLockState = state; }
+ PLATFORM_EXPORT static OverrideCapsLockState s_overrideCapsLockState;
};
} // namespace blink
« 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