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

Side by Side Diff: ash/ime/event.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to ash/ime/ Created 8 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/ime/event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 ASH_WM_EVENT_H_
6 #define ASH_WM_EVENT_H_
7 #pragma once
8
9 #include "ash/ash_export.h"
10 #include "base/event_types.h"
11 #include "ui/aura/event.h"
12 #include "ui/base/events.h"
13 #include "ui/base/keycodes/keyboard_codes.h"
14
15 namespace ash {
16
17 // A key event which is translated by an input method (IME).
18 // For example, if an IME receives a KeyEvent(ui::VKEY_SPACE), and it does not
19 // consume the key, the IME usually generates and dispatches a
20 // TranslatedKeyEvent(ui::VKEY_SPACE) event. If the IME receives a KeyEvent and
21 // it does consume the event, it might dispatch a
22 // TranslatedKeyEvent(ui::VKEY_PROCESSKEY) event as defined in the DOM spec.
23 class ASH_EXPORT TranslatedKeyEvent : public aura::KeyEvent {
24 public:
25 TranslatedKeyEvent(const base::NativeEvent& native_event, bool is_char);
26
27 // Used for synthetic events such as a VKEY_PROCESSKEY key event.
28 TranslatedKeyEvent(bool is_press,
29 ui::KeyboardCode key_code,
30 int flags);
31
32 // Changes the type() of the object from ET_TRANSLATED_KEY_* to ET_KEY_* so
33 // that RenderWidgetHostViewAura and NativeWidgetAura could handle the event.
34 void ConvertToKeyEvent();
35 };
36
37 } // namespace ash
38
39 #endif // ASH_WM_EVENT_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/ime/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698