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

Unified Diff: content/renderer/render_view_impl.cc

Issue 658183002: Add support for DOM3 KeyboardEvent keycode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Embedder API to allow access to DOM3 code value based on native key value Created 6 years, 2 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 4ce57722e1313c044c40621e470d51ee4b99f71c..d7d783b941fcf80c6be991f22158aa596f5d965c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -183,6 +183,7 @@
#include "third_party/icu/source/common/unicode/uscript.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/ui_base_switches_util.h"
+#include "ui/events/keycodes/dom4/keycode_converter.h"
#include "ui/events/latency_info.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
@@ -1784,6 +1785,11 @@ bool RenderViewImpl::handleCurrentKeyboardEvent() {
return did_execute_command;
}
+const char* RenderViewImpl::getKeyboardDOMCodeValue(
+ int native) {
apavlov 2014/11/12 08:56:32 This seems to fit 80 chars unwrapped?
Habib Virji 2014/11/24 15:13:09 Done.
+ return ui::KeycodeConverter::NativeKeycodeToCode(native);
+}
+
bool RenderViewImpl::runFileChooser(
const blink::WebFileChooserParams& params,
WebFileChooserCompletion* chooser_completion) {

Powered by Google App Engine
This is Rietveld 408576698