| Index: content/child/blink_platform_impl.cc
|
| diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
|
| index a8d488ac58a3d6fc457beb259064d0852f8dddf7..f87df5eb6cd3388752d4007889ba0087d3499933 100644
|
| --- a/content/child/blink_platform_impl.cc
|
| +++ b/content/child/blink_platform_impl.cc
|
| @@ -59,6 +59,7 @@
|
| #include "third_party/WebKit/public/platform/WebWaitableEvent.h"
|
| #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
|
| #include "ui/base/layout.h"
|
| +#include "ui/events/keycodes/dom4/keycode_converter.h"
|
|
|
| using blink::WebData;
|
| using blink::WebFallbackThemeEngine;
|
| @@ -1286,4 +1287,14 @@ void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
|
| delete impl;
|
| }
|
|
|
| +WebString BlinkPlatformImpl::domCodeStringFromEnum(int dom_code) {
|
| + return WebString::fromUTF8(ui::KeycodeConverter::DomCodeToCodeString(
|
| + static_cast<ui::DomCode>(dom_code)));
|
| +}
|
| +
|
| +int BlinkPlatformImpl::domEnumFromCodeString(const WebString& code) {
|
| + return static_cast<int>(ui::KeycodeConverter::CodeStringToDomCode(
|
| + code.utf8().data()));
|
| +}
|
| +
|
| } // namespace content
|
|
|