| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 void CancelUpdateTextDirection(); | 303 void CancelUpdateTextDirection(); |
| 304 | 304 |
| 305 // Notifies the renderer whether or not the input method attached to this | 305 // Notifies the renderer whether or not the input method attached to this |
| 306 // process is activated. | 306 // process is activated. |
| 307 // When the input method is activated, a renderer process sends IPC messages | 307 // When the input method is activated, a renderer process sends IPC messages |
| 308 // to notify the status of its composition node. (This message is mainly used | 308 // to notify the status of its composition node. (This message is mainly used |
| 309 // for notifying the position of the input cursor so that the browser can | 309 // for notifying the position of the input cursor so that the browser can |
| 310 // display input method windows under the cursor.) | 310 // display input method windows under the cursor.) |
| 311 void SetInputMethodActive(bool activate); | 311 void SetInputMethodActive(bool activate); |
| 312 | 312 |
| 313 // Notifies the renderer changes of IME candidate window state. | |
| 314 void CandidateWindowShown(); | |
| 315 void CandidateWindowUpdated(); | |
| 316 void CandidateWindowHidden(); | |
| 317 | |
| 318 // Update the composition node of the renderer (or WebKit). | 313 // Update the composition node of the renderer (or WebKit). |
| 319 // WebKit has a special node (a composition node) for input method to change | 314 // WebKit has a special node (a composition node) for input method to change |
| 320 // its text without affecting any other DOM nodes. When the input method | 315 // its text without affecting any other DOM nodes. When the input method |
| 321 // (attached to the browser) updates its text, the browser sends IPC messages | 316 // (attached to the browser) updates its text, the browser sends IPC messages |
| 322 // to update the composition node of the renderer. | 317 // to update the composition node of the renderer. |
| 323 // (Read the comments of each function for its detail.) | 318 // (Read the comments of each function for its detail.) |
| 324 | 319 |
| 325 // Sets the text of the composition node. | 320 // Sets the text of the composition node. |
| 326 // This function can also update the cursor position and mark the specified | 321 // This function can also update the cursor position and mark the specified |
| 327 // range in the composition node. | 322 // range in the composition node. |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 bool is_focused_; | 831 bool is_focused_; |
| 837 | 832 |
| 838 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 833 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 839 | 834 |
| 840 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 835 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 841 }; | 836 }; |
| 842 | 837 |
| 843 } // namespace content | 838 } // namespace content |
| 844 | 839 |
| 845 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 840 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |