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

Unified Diff: ui/events/event.cc

Issue 2250273002: ui: Remove unused ExtendedKeyEventData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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') | no next file » | 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 c9da7bbf70be6c787317e93f4eb4ed51cd487720..eff99926a21b3d44e1d31a6f1d1e30d897f6e899 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -1047,8 +1047,6 @@ KeyEvent::KeyEvent(const KeyEvent& rhs)
code_(rhs.code_),
is_char_(rhs.is_char_),
key_(rhs.key_) {
- if (rhs.extended_key_event_data_)
- extended_key_event_data_.reset(rhs.extended_key_event_data_->Clone());
}
KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) {
@@ -1058,20 +1056,12 @@ KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) {
code_ = rhs.code_;
key_ = rhs.key_;
is_char_ = rhs.is_char_;
-
- if (rhs.extended_key_event_data_)
- extended_key_event_data_.reset(rhs.extended_key_event_data_->Clone());
}
return *this;
}
KeyEvent::~KeyEvent() {}
-void KeyEvent::SetExtendedKeyEventData(
- std::unique_ptr<ExtendedKeyEventData> data) {
- extended_key_event_data_ = std::move(data);
-}
-
void KeyEvent::ApplyLayout() const {
ui::DomCode code = code_;
if (code == DomCode::NONE) {
« no previous file with comments | « ui/events/event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698