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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1214823002: Revert of [KeyboardEvent] Add embedder APIs to translate between Dom |key| enum and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/child/blink_platform_impl.h ('k') | ui/events/keycodes/dom/dom_key.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 9c87777d0758caeca30573143c6c77fc881c2384..78939bb0167d693444707233ea5ba300d1cc7eb3 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -71,7 +71,6 @@
#include "third_party/WebKit/public/web/WebSecurityOrigin.h"
#include "ui/base/layout.h"
#include "ui/events/gestures/blink/web_gesture_curve_impl.h"
-#include "ui/events/keycodes/dom/dom_key.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
using blink::WebData;
@@ -1393,23 +1392,4 @@
code.utf8().data()));
}
-WebString BlinkPlatformImpl::domKeyStringFromEnum(int dom_key) {
- if (dom_key < DOM_KEY_PRINT_NON_DIFF) {
- std::string dom_key_char = base::StringPrintf("%c", dom_key);
- return WebString::fromUTF8(dom_key_char);
- } else {
- return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
- static_cast<ui::DomKey>(dom_key - DOM_KEY_PRINT_NON_DIFF)));
- }
-}
-
-int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key) {
- ui::DomKey dom_key =
- ui::KeycodeConverter::KeyStringToDomKey(key.utf8().data());
- if (ui::DomKey::NONE == dom_key) {
- return key.at(0);
- }
- return static_cast<int>(dom_key);
-}
-
} // namespace content
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | ui/events/keycodes/dom/dom_key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698