| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 501 |
| 502 #if defined(OS_ANDROID) | 502 #if defined(OS_ANDROID) |
| 503 // Called when we send IME event that expects an ACK. | 503 // Called when we send IME event that expects an ACK. |
| 504 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 504 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 505 | 505 |
| 506 // Called by the browser process for every required IME acknowledgement. | 506 // Called by the browser process for every required IME acknowledgement. |
| 507 void OnImeEventAck(); | 507 void OnImeEventAck(); |
| 508 | 508 |
| 509 // Called by the browser process to update text input state. | 509 // Called by the browser process to update text input state. |
| 510 void OnRequestTextInputStateUpdate(); | 510 void OnRequestTextInputStateUpdate(); |
| 511 | |
| 512 // Called by the browser process to begin (when |begin| is set) or end batch | |
| 513 // edit mode. Note that text input state will not be updated in this mode. | |
| 514 void OnImeBatchEdit(bool begin); | |
| 515 #endif | 511 #endif |
| 516 | 512 |
| 517 // Called by the browser process to update the cursor and composition | 513 // Called by the browser process to update the cursor and composition |
| 518 // information. | 514 // information. |
| 519 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); | 515 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); |
| 520 | 516 |
| 521 // Notify the compositor about a change in viewport size. This should be | 517 // Notify the compositor about a change in viewport size. This should be |
| 522 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 518 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 523 // go through OnResize. | 519 // go through OnResize. |
| 524 void AutoResizeCompositor(); | 520 void AutoResizeCompositor(); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 // Indicates whether tab-initiated fullscreen was granted. | 660 // Indicates whether tab-initiated fullscreen was granted. |
| 665 bool is_fullscreen_granted_; | 661 bool is_fullscreen_granted_; |
| 666 | 662 |
| 667 // Indicates the display mode. | 663 // Indicates the display mode. |
| 668 blink::WebDisplayMode display_mode_; | 664 blink::WebDisplayMode display_mode_; |
| 669 | 665 |
| 670 // It is possible that one ImeEventGuard is nested inside another | 666 // It is possible that one ImeEventGuard is nested inside another |
| 671 // ImeEventGuard. We keep track of the outermost one, and update it as needed. | 667 // ImeEventGuard. We keep track of the outermost one, and update it as needed. |
| 672 ImeEventGuard* ime_event_guard_; | 668 ImeEventGuard* ime_event_guard_; |
| 673 | 669 |
| 674 // Whether IME is in batch edit mode, in which case we do not update text | |
| 675 // input state. | |
| 676 bool ime_in_batch_edit_; | |
| 677 | |
| 678 // True if we have requested this widget be closed. No more messages will | 670 // True if we have requested this widget be closed. No more messages will |
| 679 // be sent, except for a Close. | 671 // be sent, except for a Close. |
| 680 bool closing_; | 672 bool closing_; |
| 681 | 673 |
| 682 // True if it is known that the host is in the process of being shut down. | 674 // True if it is known that the host is in the process of being shut down. |
| 683 bool host_closing_; | 675 bool host_closing_; |
| 684 | 676 |
| 685 // Whether this RenderWidget is currently swapped out, such that the view is | 677 // Whether this RenderWidget is currently swapped out, such that the view is |
| 686 // being rendered by another process. If all RenderWidgets in a process are | 678 // being rendered by another process. If all RenderWidgets in a process are |
| 687 // swapped out, the process can exit. | 679 // swapped out, the process can exit. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 // Stores edit commands associated to the next key event. | 813 // Stores edit commands associated to the next key event. |
| 822 // Will be cleared as soon as the next key event is processed. | 814 // Will be cleared as soon as the next key event is processed. |
| 823 EditCommands edit_commands_; | 815 EditCommands edit_commands_; |
| 824 | 816 |
| 825 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 826 }; | 818 }; |
| 827 | 819 |
| 828 } // namespace content | 820 } // namespace content |
| 829 | 821 |
| 830 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |