| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 void OnImeEventAck(); | 506 void OnImeEventAck(); |
| 507 | 507 |
| 508 // Called by the browser process to update text input state. | 508 // Called by the browser process to update text input state. |
| 509 void OnRequestTextInputStateUpdate(); | 509 void OnRequestTextInputStateUpdate(); |
| 510 | 510 |
| 511 // Called by the browser process to begin (when |begin| is set) or end batch | 511 // Called by the browser process to begin (when |begin| is set) or end batch |
| 512 // edit mode. Note that text input state will not be updated in this mode. | 512 // edit mode. Note that text input state will not be updated in this mode. |
| 513 void OnImeBatchEdit(bool begin); | 513 void OnImeBatchEdit(bool begin); |
| 514 #endif | 514 #endif |
| 515 | 515 |
| 516 // Force update of text input state. |
| 517 void ForceUpdateTextInputState(ShowIme show_ime, ChangeSource change_source); |
| 518 |
| 519 // An internal function to handle UpdateTextInputState and |
| 520 // ForceUpdateTextInputState. |
| 521 void UpdateTextInputStateInternal(ShowIme show_ime, |
| 522 ChangeSource change_source, |
| 523 bool force_update); |
| 524 |
| 516 // Called by the browser process to update the cursor and composition | 525 // Called by the browser process to update the cursor and composition |
| 517 // information. | 526 // information. |
| 518 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); | 527 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); |
| 519 | 528 |
| 520 // Notify the compositor about a change in viewport size. This should be | 529 // Notify the compositor about a change in viewport size. This should be |
| 521 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 530 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 522 // go through OnResize. | 531 // go through OnResize. |
| 523 void AutoResizeCompositor(); | 532 void AutoResizeCompositor(); |
| 524 | 533 |
| 525 virtual void OnSetDeviceScaleFactor(float device_scale_factor); | 534 virtual void OnSetDeviceScaleFactor(float device_scale_factor); |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // Stores edit commands associated to the next key event. | 829 // Stores edit commands associated to the next key event. |
| 821 // Will be cleared as soon as the next key event is processed. | 830 // Will be cleared as soon as the next key event is processed. |
| 822 EditCommands edit_commands_; | 831 EditCommands edit_commands_; |
| 823 | 832 |
| 824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 833 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 825 }; | 834 }; |
| 826 | 835 |
| 827 } // namespace content | 836 } // namespace content |
| 828 | 837 |
| 829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 838 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |