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

Side by Side Diff: mojo/converters/input_events/mojo_extended_key_event_data.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h>
6
5 #include "mojo/converters/input_events/mojo_extended_key_event_data.h" 7 #include "mojo/converters/input_events/mojo_extended_key_event_data.h"
6 8
7 namespace mojo { 9 namespace mojo {
8 10
9 MojoExtendedKeyEventData::MojoExtendedKeyEventData(int32_t windows_key_code, 11 MojoExtendedKeyEventData::MojoExtendedKeyEventData(int32_t windows_key_code,
10 uint16_t text, 12 uint16_t text,
11 uint16_t unmodified_text) 13 uint16_t unmodified_text)
12 : windows_key_code_(windows_key_code), 14 : windows_key_code_(windows_key_code),
13 text_(text), 15 text_(text),
14 unmodified_text_(unmodified_text) { 16 unmodified_text_(unmodified_text) {
15 } 17 }
16 18
17 MojoExtendedKeyEventData::~MojoExtendedKeyEventData() {} 19 MojoExtendedKeyEventData::~MojoExtendedKeyEventData() {}
18 20
19 ui::ExtendedKeyEventData* MojoExtendedKeyEventData::Clone() const { 21 ui::ExtendedKeyEventData* MojoExtendedKeyEventData::Clone() const {
20 return new MojoExtendedKeyEventData(windows_key_code_, 22 return new MojoExtendedKeyEventData(windows_key_code_,
21 text_, 23 text_,
22 unmodified_text_); 24 unmodified_text_);
23 } 25 }
24 26
25 } // namespace mojo 27 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/converters/input_events/mojo_extended_key_event_data.h ('k') | mojo/converters/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698