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

Unified Diff: Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/platform/chromium/KeyboardCodes.h ('k') | Source/core/platform/graphics/FontCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp
diff --git a/Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp b/Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp
index 4514d2f12f185e93fbc22fee3d3fba4b0467f4ed..228686bab09234197cbe1fbb03d6d6b9d0451ff5 100644
--- a/Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp
+++ b/Source/core/platform/chromium/PlatformKeyboardEventChromium.cpp
@@ -27,7 +27,7 @@
#include "config.h"
#include "core/platform/PlatformKeyboardEvent.h"
-#if OS(WINDOWS)
+#if OS(WIN)
#include <windows.h>
#elif OS(MACOSX)
#import <Carbon/Carbon.h>
@@ -37,13 +37,13 @@
namespace WebCore {
-#if OS(WINDOWS)
+#if OS(WIN)
static const unsigned short HIGH_BIT_MASK_SHORT = 0x8000;
#endif
void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type)
{
-#if OS(WINDOWS)
+#if OS(WIN)
// No KeyDown events on Windows to disambiguate.
ASSERT_NOT_REACHED();
#else
@@ -73,7 +73,7 @@ void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type)
bool PlatformKeyboardEvent::currentCapsLockState()
{
-#if OS(WINDOWS)
+#if OS(WIN)
// FIXME: Does this even work inside the sandbox?
return GetKeyState(VK_CAPITAL) & 1;
#elif OS(MACOSX)
@@ -86,7 +86,7 @@ bool PlatformKeyboardEvent::currentCapsLockState()
void PlatformKeyboardEvent::getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey)
{
-#if OS(WINDOWS)
+#if OS(WIN)
shiftKey = GetKeyState(VK_SHIFT) & HIGH_BIT_MASK_SHORT;
ctrlKey = GetKeyState(VK_CONTROL) & HIGH_BIT_MASK_SHORT;
altKey = GetKeyState(VK_MENU) & HIGH_BIT_MASK_SHORT;
« no previous file with comments | « Source/core/platform/chromium/KeyboardCodes.h ('k') | Source/core/platform/graphics/FontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698