OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/events/event.h" | 5 #include "ui/events/event.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 | 10 |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 code_(DomCode::NONE), | 1197 code_(DomCode::NONE), |
1198 is_char_(true), | 1198 is_char_(true), |
1199 key_(DomKey::FromCharacter(character)) {} | 1199 key_(DomKey::FromCharacter(character)) {} |
1200 | 1200 |
1201 KeyEvent::KeyEvent(const KeyEvent& rhs) | 1201 KeyEvent::KeyEvent(const KeyEvent& rhs) |
1202 : Event(rhs), | 1202 : Event(rhs), |
1203 key_code_(rhs.key_code_), | 1203 key_code_(rhs.key_code_), |
1204 code_(rhs.code_), | 1204 code_(rhs.code_), |
1205 is_char_(rhs.is_char_), | 1205 is_char_(rhs.is_char_), |
1206 key_(rhs.key_), | 1206 key_(rhs.key_), |
| 1207 skip_ime_(rhs.skip_ime_), |
1207 properties_(rhs.properties_ | 1208 properties_(rhs.properties_ |
1208 ? base::MakeUnique<Properties>(*rhs.properties_) | 1209 ? base::MakeUnique<Properties>(*rhs.properties_) |
1209 : nullptr) {} | 1210 : nullptr) {} |
1210 | 1211 |
1211 KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) { | 1212 KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) { |
1212 if (this != &rhs) { | 1213 if (this != &rhs) { |
1213 Event::operator=(rhs); | 1214 Event::operator=(rhs); |
1214 key_code_ = rhs.key_code_; | 1215 key_code_ = rhs.key_code_; |
1215 code_ = rhs.code_; | 1216 code_ = rhs.code_; |
1216 key_ = rhs.key_; | 1217 key_ = rhs.key_; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 flags | EF_FROM_TOUCH), | 1447 flags | EF_FROM_TOUCH), |
1447 details_(details), | 1448 details_(details), |
1448 unique_touch_event_id_(unique_touch_event_id) { | 1449 unique_touch_event_id_(unique_touch_event_id) { |
1449 latency()->set_source_event_type(ui::SourceEventType::TOUCH); | 1450 latency()->set_source_event_type(ui::SourceEventType::TOUCH); |
1450 } | 1451 } |
1451 | 1452 |
1452 GestureEvent::~GestureEvent() { | 1453 GestureEvent::~GestureEvent() { |
1453 } | 1454 } |
1454 | 1455 |
1455 } // namespace ui | 1456 } // namespace ui |
OLD | NEW |