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

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

Issue 2014003002: mojo/converters/input_events -> ui/events/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@converters
Patch Set: . Created 4 years, 7 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 2014 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 MOJO_CONVERTERS_INPUT_EVENTS_MOJO_EXTENDED_KEY_EVENT_DATA_H_
6 #define MOJO_CONVERTERS_INPUT_EVENTS_MOJO_EXTENDED_KEY_EVENT_DATA_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "mojo/converters/input_events/mojo_input_events_export.h"
12 #include "ui/events/event.h"
13
14 namespace mojo {
15
16 // A structure to store all mojo specific data on a KeyEvent.
17 class MOJO_INPUT_EVENTS_EXPORT MojoExtendedKeyEventData
18 : public ui::ExtendedKeyEventData {
19 public:
20 MojoExtendedKeyEventData(int32_t windows_key_code,
21 uint16_t text,
22 uint16_t unmodified_text);
23 ~MojoExtendedKeyEventData() override;
24
25 int32_t windows_key_code() const { return windows_key_code_; }
26 uint16_t text() const { return text_; }
27 uint16_t unmodified_text() const { return unmodified_text_; }
28
29 // ui::ExtendedKeyEventData:
30 ui::ExtendedKeyEventData* Clone() const override;
31
32 private:
33 const int32_t windows_key_code_;
34 const uint16_t text_;
35 const uint16_t unmodified_text_;
36
37 DISALLOW_COPY_AND_ASSIGN(MojoExtendedKeyEventData);
38 };
39
40 } // namespace mojo
41
42 #endif // MOJO_CONVERTERS_INPUT_EVENTS_MOJO_EXTENDED_KEY_EVENT_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698