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

Side by Side Diff: ui/events/mojo/mojo_extended_key_event_data.h

Issue 2048633004: Remove type converters for ui::Event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_EVENTS_MOJO_MOJO_EXTENDED_KEY_EVENT_DATA_H_
6 #define UI_EVENTS_MOJO_MOJO_EXTENDED_KEY_EVENT_DATA_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "ui/events/event.h"
12 #include "ui/events/mojo/mojo_input_events_export.h"
13
14 // TODO(beng): should be ui namespace
15 namespace mojo {
16
17 // A structure to store all mojo specific data on a KeyEvent.
18 class MOJO_INPUT_EVENTS_EXPORT MojoExtendedKeyEventData
19 : public ui::ExtendedKeyEventData {
20 public:
21 MojoExtendedKeyEventData(int32_t windows_key_code,
22 uint16_t text,
23 uint16_t unmodified_text);
24 ~MojoExtendedKeyEventData() override;
25
26 int32_t windows_key_code() const { return windows_key_code_; }
27 uint16_t text() const { return text_; }
28 uint16_t unmodified_text() const { return unmodified_text_; }
29
30 // ui::ExtendedKeyEventData:
31 ui::ExtendedKeyEventData* Clone() const override;
32
33 private:
34 const int32_t windows_key_code_;
35 const uint16_t text_;
36 const uint16_t unmodified_text_;
37
38 DISALLOW_COPY_AND_ASSIGN(MojoExtendedKeyEventData);
39 };
40
41 } // namespace mojo
42
43 #endif // UI_EVENTS_MOJO_MOJO_EXTENDED_KEY_EVENT_DATA_H_
OLDNEW
« no previous file with comments | « ui/events/mojo/input_events_type_converters.cc ('k') | ui/events/mojo/mojo_extended_key_event_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698