OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ | 5 #ifndef UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ |
6 #define UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ | 6 #define UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
12 #include "ui/base/ime/input_method_delegate.h" | 12 #include "ui/base/ime/input_method_delegate.h" |
13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
14 #include "ui/views/views_export.h" | 14 #include "ui/views/views_export.h" |
15 | 15 |
| 16 namespace aura { |
| 17 class WindowEventDispatcher; |
| 18 } |
| 19 |
16 namespace ui { | 20 namespace ui { |
17 class InputMethod; | 21 class InputMethod; |
18 } | 22 } |
19 | 23 |
20 namespace views { | 24 namespace views { |
21 namespace corewm { | 25 namespace corewm { |
22 | 26 |
23 // An event filter that forwards a KeyEvent to a system IME, and dispatches a | 27 // An event filter that forwards a KeyEvent to a system IME, and dispatches a |
24 // TranslatedKeyEvent to the root window as needed. | 28 // TranslatedKeyEvent to the root window as needed. |
25 class VIEWS_EXPORT InputMethodEventFilter | 29 class VIEWS_EXPORT InputMethodEventFilter |
(...skipping 19 matching lines...) Expand all Loading... |
45 // The target dispatcher that will receive translated key events from the IME. | 49 // The target dispatcher that will receive translated key events from the IME. |
46 aura::WindowEventDispatcher* target_dispatcher_; | 50 aura::WindowEventDispatcher* target_dispatcher_; |
47 | 51 |
48 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); | 52 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); |
49 }; | 53 }; |
50 | 54 |
51 } // namespace corewm | 55 } // namespace corewm |
52 } // namespace views | 56 } // namespace views |
53 | 57 |
54 #endif // UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ | 58 #endif // UI_VIEWS_COREWM_INPUT_METHOD_EVENT_FILTER_H_ |
OLD | NEW |