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

Side by Side Diff: third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp

Issue 1979033002: Kill log spam from PlatformKeyboardEvent::getCurrentModifierState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | 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) 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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698