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

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

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: addressed feedback. Created 3 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
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/ime/input_method_event_handler.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 2015 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_IME_INPUT_METHOD_EVENT_HANDLER_H_
6 #define ASH_IME_INPUT_METHOD_EVENT_HANDLER_H_
7
8 #include "ash/ash_export.h"
9 #include "base/macros.h"
10 #include "ui/events/event_handler.h"
11
12 namespace ui {
13 class InputMethod;
14 class KeyEvent;
15 }
16
17 namespace ash {
18
19 // An EventHandler
20 class ASH_EXPORT InputMethodEventHandler : public ui::EventHandler {
21 public:
22 explicit InputMethodEventHandler(ui::InputMethod* input_method);
23 ~InputMethodEventHandler() override;
24
25 // True to skip sending event to the InputMethod. This is used
26 // to process event passed from |DispatchKeyEventPostIME|.
27 void SetPostIME(bool post_ime);
28
29 private:
30 // Overridden from ui::EventHandler:
31 void OnKeyEvent(ui::KeyEvent* event) override;
32
33 ui::InputMethod* input_method_;
34
35 bool post_ime_;
36
37 DISALLOW_COPY_AND_ASSIGN(InputMethodEventHandler);
38 };
39
40 } // namespace ash
41
42 #endif // ASH_INPUT_METHOD_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/ime/input_method_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698