OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 VIEWS_IME_INPUT_METHOD_WIN_H_ | 5 #ifndef VIEWS_IME_INPUT_METHOD_WIN_H_ |
6 #define VIEWS_IME_INPUT_METHOD_WIN_H_ | 6 #define VIEWS_IME_INPUT_METHOD_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 private: | 48 private: |
49 LRESULT OnImeSetContext( | 49 LRESULT OnImeSetContext( |
50 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 50 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
51 LRESULT OnImeStartComposition( | 51 LRESULT OnImeStartComposition( |
52 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 52 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
53 LRESULT OnImeComposition( | 53 LRESULT OnImeComposition( |
54 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 54 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
55 LRESULT OnImeEndComposition( | 55 LRESULT OnImeEndComposition( |
56 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 56 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
| 57 LRESULT OnImeRequest( |
| 58 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
57 // For both WM_CHAR and WM_SYSCHAR | 59 // For both WM_CHAR and WM_SYSCHAR |
58 LRESULT OnChar( | 60 LRESULT OnChar( |
59 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 61 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
60 // For both WM_DEADCHAR and WM_SYSDEADCHAR | 62 // For both WM_DEADCHAR and WM_SYSDEADCHAR |
61 LRESULT OnDeadChar( | 63 LRESULT OnDeadChar( |
62 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | 64 UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); |
63 | 65 |
| 66 LRESULT OnDocumentFeed(RECONVERTSTRING *reconv); |
| 67 LRESULT OnReconvertString(RECONVERTSTRING *reconv); |
64 | 68 |
65 // Overridden from InputMethodBase. | 69 // Overridden from InputMethodBase. |
66 virtual void FocusedViewWillChange() OVERRIDE; | 70 virtual void FocusedViewWillChange() OVERRIDE; |
67 virtual void FocusedViewDidChange() OVERRIDE; | 71 virtual void FocusedViewDidChange() OVERRIDE; |
68 | 72 |
69 // A helper function to return the Widget's native window. | 73 // A helper function to return the Widget's native window. |
70 HWND hwnd() const { return widget()->GetNativeView(); } | 74 HWND hwnd() const { return widget()->GetNativeView(); } |
71 | 75 |
72 // Asks the client to confirm current composition text. | 76 // Asks the client to confirm current composition text. |
73 void ConfirmCompositionText(); | 77 void ConfirmCompositionText(); |
(...skipping 18 matching lines...) Expand all Loading... |
92 // Windows IMM32 wrapper. | 96 // Windows IMM32 wrapper. |
93 // (See "ui/base/win/ime_input.h" for its details.) | 97 // (See "ui/base/win/ime_input.h" for its details.) |
94 ui::ImeInput ime_input_; | 98 ui::ImeInput ime_input_; |
95 | 99 |
96 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 100 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
97 }; | 101 }; |
98 | 102 |
99 } // namespace views | 103 } // namespace views |
100 | 104 |
101 #endif // VIEWS_IME_INPUT_METHOD_WIN_H_ | 105 #endif // VIEWS_IME_INPUT_METHOD_WIN_H_ |
OLD | NEW |