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

Unified Diff: ui/events/event.cc

Issue 1312833006: Remove ui::KeyEvent::platform_keycode_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ui/events/event.h ('k') | ui/events/event_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 383e3736c38c42bdcff6b8159ad1576170982421..9af664c62720baaa2afaf039090d7086e48dfd46 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -672,8 +672,7 @@ KeyEvent::KeyEvent(const base::NativeEvent& native_event)
EventFlagsFromNative(native_event)),
key_code_(KeyboardCodeFromNative(native_event)),
code_(CodeFromNative(native_event)),
- is_char_(IsCharFromNative(native_event)),
- platform_keycode_(PlatformKeycodeFromNative(native_event)) {
+ is_char_(IsCharFromNative(native_event)) {
if (IsRepeated(*this))
set_flags(flags() | ui::EF_IS_REPEAT);
@@ -729,7 +728,6 @@ KeyEvent::KeyEvent(const KeyEvent& rhs)
key_code_(rhs.key_code_),
code_(rhs.code_),
is_char_(rhs.is_char_),
- platform_keycode_(rhs.platform_keycode_),
key_(rhs.key_) {
if (rhs.extended_key_event_data_)
extended_key_event_data_.reset(rhs.extended_key_event_data_->Clone());
@@ -742,7 +740,6 @@ KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) {
code_ = rhs.code_;
key_ = rhs.key_;
is_char_ = rhs.is_char_;
- platform_keycode_ = rhs.platform_keycode_;
if (rhs.extended_key_event_data_)
extended_key_event_data_.reset(rhs.extended_key_event_data_->Clone());
@@ -785,7 +782,7 @@ void KeyEvent::ApplyLayout() const {
}
#elif defined(USE_OZONE)
if (KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()->Lookup(
- code, flags(), &key_, &dummy_key_code, &platform_keycode_)) {
+ code, flags(), &key_, &dummy_key_code)) {
return;
}
#else
« no previous file with comments | « ui/events/event.h ('k') | ui/events/event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698