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

Unified Diff: content/browser/renderer_host/input/web_input_event_util_posix.cc

Issue 1308063007: Generate non-located windowsKeyCode for the WebInputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 5 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
Index: content/browser/renderer_host/input/web_input_event_util_posix.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util_posix.cc b/content/browser/renderer_host/input/web_input_event_util_posix.cc
deleted file mode 100644
index 1eabf91a314f9702cb7772c950fd43ef7adf4377..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/web_input_event_util_posix.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/renderer_host/input/web_input_event_util_posix.h"
-
-namespace content {
-
-blink::WebInputEvent::Modifiers GetLocationModifiersFromWindowsKeyCode(
- ui::KeyboardCode key_code) {
- switch (key_code) {
- case ui::VKEY_LCONTROL:
- case ui::VKEY_LSHIFT:
- case ui::VKEY_LMENU:
- case ui::VKEY_LWIN:
- return blink::WebKeyboardEvent::IsLeft;
- case ui::VKEY_RCONTROL:
- case ui::VKEY_RSHIFT:
- case ui::VKEY_RMENU:
- case ui::VKEY_RWIN:
- return blink::WebKeyboardEvent::IsRight;
- default:
- return static_cast<blink::WebInputEvent::Modifiers>(0);
- }
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698