| 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 UI_BASE_IME_INPUT_METHOD_WIN_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 LRESULT OnImeRequest(UINT message, | 42 LRESULT OnImeRequest(UINT message, |
| 43 WPARAM wparam, | 43 WPARAM wparam, |
| 44 LPARAM lparam, | 44 LPARAM lparam, |
| 45 BOOL* handled); | 45 BOOL* handled); |
| 46 // For both WM_CHAR and WM_SYSCHAR | 46 // For both WM_CHAR and WM_SYSCHAR |
| 47 LRESULT OnChar(HWND window_handle, | 47 LRESULT OnChar(HWND window_handle, |
| 48 UINT message, | 48 UINT message, |
| 49 WPARAM wparam, | 49 WPARAM wparam, |
| 50 LPARAM lparam, | 50 LPARAM lparam, |
| 51 BOOL* handled); | 51 BOOL* handled); |
| 52 // For both WM_DEADCHAR and WM_SYSDEADCHAR | |
| 53 // TODO(yukawa): Stop handling WM_DEADCHAR and WM_SYSDEADCHAR when non-Aura | |
| 54 // build is deprecated. | |
| 55 LRESULT OnDeadChar(UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled); | |
| 56 | 52 |
| 57 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); | 53 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); |
| 58 LRESULT OnReconvertString(RECONVERTSTRING* reconv); | 54 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
| 59 LRESULT OnQueryCharPosition(IMECHARPOSITION* char_positon); | 55 LRESULT OnQueryCharPosition(IMECHARPOSITION* char_positon); |
| 60 | 56 |
| 61 // Returns the window handle to which |text_input_client| is bound. | 57 // Returns the window handle to which |text_input_client| is bound. |
| 62 // On Aura environment, |toplevel_window_handle_| is always returned. | 58 // On Aura environment, |toplevel_window_handle_| is always returned. |
| 63 HWND GetAttachedWindowHandle(const TextInputClient* text_input_client) const; | 59 HWND GetAttachedWindowHandle(const TextInputClient* text_input_client) const; |
| 64 | 60 |
| 65 // Returns true if the Win32 native window bound to |client| is considered | 61 // Returns true if the Win32 native window bound to |client| is considered |
| (...skipping 27 matching lines...) Expand all Loading... |
| 93 // workaround against crbug.com/319100 | 89 // workaround against crbug.com/319100 |
| 94 // TODO(yukawa, IME): Figure out long-term solution. | 90 // TODO(yukawa, IME): Figure out long-term solution. |
| 95 bool accept_carriage_return_; | 91 bool accept_carriage_return_; |
| 96 | 92 |
| 97 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 93 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
| 98 }; | 94 }; |
| 99 | 95 |
| 100 } // namespace ui | 96 } // namespace ui |
| 101 | 97 |
| 102 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ | 98 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| OLD | NEW |