| Index: content/child/blink_platform_impl.cc
|
| diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
|
| index 25faab4b5b5a80c78133361e56a334c2725175dd..9031457e1f42ae858ea217bc2e3ae767225cecf0 100644
|
| --- a/content/child/blink_platform_impl.cc
|
| +++ b/content/child/blink_platform_impl.cc
|
| @@ -1341,4 +1341,14 @@ int BlinkPlatformImpl::domEnumFromCodeString(const WebString& code) {
|
| code.utf8().data()));
|
| }
|
|
|
| +WebString BlinkPlatformImpl::domKeyStringFromEnum(int dom_key) {
|
| + return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
|
| + static_cast<ui::DomKey>(dom_key)));
|
| +}
|
| +
|
| +int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key) {
|
| + return static_cast<int>(ui::KeycodeConverter::KeyStringToDomKey(
|
| + key.utf8().data()));
|
| +}
|
| +
|
| } // namespace content
|
|
|