| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 virtual void OnPointerEventActivate(); | 305 virtual void OnPointerEventActivate(); |
| 306 | 306 |
| 307 // Notifies the renderer whether or not the input method attached to this | 307 // Notifies the renderer whether or not the input method attached to this |
| 308 // process is activated. | 308 // process is activated. |
| 309 // When the input method is activated, a renderer process sends IPC messages | 309 // When the input method is activated, a renderer process sends IPC messages |
| 310 // to notify the status of its composition node. (This message is mainly used | 310 // to notify the status of its composition node. (This message is mainly used |
| 311 // for notifying the position of the input cursor so that the browser can | 311 // for notifying the position of the input cursor so that the browser can |
| 312 // display input method windows under the cursor.) | 312 // display input method windows under the cursor.) |
| 313 void SetInputMethodActive(bool activate); | 313 void SetInputMethodActive(bool activate); |
| 314 | 314 |
| 315 // Notifies the renderer changes of IME candidate window state. |
| 316 void CandidateWindowShow(); |
| 317 void CandidateWindowUpdate(); |
| 318 void CandidateWindowHide(); |
| 319 |
| 315 // Update the composition node of the renderer (or WebKit). | 320 // Update the composition node of the renderer (or WebKit). |
| 316 // WebKit has a special node (a composition node) for input method to change | 321 // WebKit has a special node (a composition node) for input method to change |
| 317 // its text without affecting any other DOM nodes. When the input method | 322 // its text without affecting any other DOM nodes. When the input method |
| 318 // (attached to the browser) updates its text, the browser sends IPC messages | 323 // (attached to the browser) updates its text, the browser sends IPC messages |
| 319 // to update the composition node of the renderer. | 324 // to update the composition node of the renderer. |
| 320 // (Read the comments of each function for its detail.) | 325 // (Read the comments of each function for its detail.) |
| 321 | 326 |
| 322 // Sets the text of the composition node. | 327 // Sets the text of the composition node. |
| 323 // This function can also update the cursor position and mark the specified | 328 // This function can also update the cursor position and mark the specified |
| 324 // range in the composition node. | 329 // range in the composition node. |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 int64 last_input_number_; | 925 int64 last_input_number_; |
| 921 | 926 |
| 922 BrowserRenderingStats rendering_stats_; | 927 BrowserRenderingStats rendering_stats_; |
| 923 | 928 |
| 924 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 929 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 925 }; | 930 }; |
| 926 | 931 |
| 927 } // namespace content | 932 } // namespace content |
| 928 | 933 |
| 929 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 934 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |