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