OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BASE_IME_INPUT_METHOD_TSF_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_TSF_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "ui/base/ime/input_method_win.h" | 13 #include "ui/base/ime/input_method_win.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 class TSFEventRouter; | 17 class TSFEventRouter; |
18 | 18 |
19 // An InputMethod implementation based on Windows TSF API. | 19 // An InputMethod implementation based on Windows TSF API. |
20 class UI_EXPORT InputMethodTSF : public InputMethodWin { | 20 class UI_BASE_EXPORT InputMethodTSF : public InputMethodWin { |
21 public: | 21 public: |
22 InputMethodTSF(internal::InputMethodDelegate* delegate, | 22 InputMethodTSF(internal::InputMethodDelegate* delegate, |
23 HWND toplevel_window_handle); | 23 HWND toplevel_window_handle); |
24 virtual ~InputMethodTSF(); | 24 virtual ~InputMethodTSF(); |
25 | 25 |
26 // Overridden from InputMethod: | 26 // Overridden from InputMethod: |
27 virtual void OnFocus() OVERRIDE; | 27 virtual void OnFocus() OVERRIDE; |
28 virtual void OnBlur() OVERRIDE; | 28 virtual void OnBlur() OVERRIDE; |
29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
30 NativeEventResult* result) OVERRIDE; | 30 NativeEventResult* result) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
49 // TSF event router and observer. | 49 // TSF event router and observer. |
50 scoped_ptr<TSFEventObserver> tsf_event_observer_; | 50 scoped_ptr<TSFEventObserver> tsf_event_observer_; |
51 scoped_ptr<TSFEventRouter> tsf_event_router_; | 51 scoped_ptr<TSFEventRouter> tsf_event_router_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); | 53 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace ui | 56 } // namespace ui |
57 | 57 |
58 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ | 58 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ |
OLD | NEW |