| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 515 |
| 516 #if defined(OS_ANDROID) | 516 #if defined(OS_ANDROID) |
| 517 // Called when we send IME event that expects an ACK. | 517 // Called when we send IME event that expects an ACK. |
| 518 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 518 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 519 | 519 |
| 520 // Called by the browser process for every required IME acknowledgement. | 520 // Called by the browser process for every required IME acknowledgement. |
| 521 void OnImeEventAck(); | 521 void OnImeEventAck(); |
| 522 | 522 |
| 523 // Called by the browser process to update text input state. | 523 // Called by the browser process to update text input state. |
| 524 void OnRequestTextInputStateUpdate(); | 524 void OnRequestTextInputStateUpdate(); |
| 525 | |
| 526 // Called by the browser process to begin (when |begin| is set) or end batch | |
| 527 // edit mode. Note that text input state will not be updated in this mode. | |
| 528 void OnImeBatchEdit(bool begin); | |
| 529 #endif | 525 #endif |
| 530 | 526 |
| 531 // Called by the browser process to update the cursor and composition | 527 // Called by the browser process to update the cursor and composition |
| 532 // information. | 528 // information. |
| 533 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); | 529 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); |
| 534 | 530 |
| 535 // Notify the compositor about a change in viewport size. This should be | 531 // Notify the compositor about a change in viewport size. This should be |
| 536 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 532 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 537 // go through OnResize. | 533 // go through OnResize. |
| 538 void AutoResizeCompositor(); | 534 void AutoResizeCompositor(); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 // Indicates whether tab-initiated fullscreen was granted. | 681 // Indicates whether tab-initiated fullscreen was granted. |
| 686 bool is_fullscreen_granted_; | 682 bool is_fullscreen_granted_; |
| 687 | 683 |
| 688 // Indicates the display mode. | 684 // Indicates the display mode. |
| 689 blink::WebDisplayMode display_mode_; | 685 blink::WebDisplayMode display_mode_; |
| 690 | 686 |
| 691 // It is possible that one ImeEventGuard is nested inside another | 687 // It is possible that one ImeEventGuard is nested inside another |
| 692 // ImeEventGuard. We keep track of the outermost one, and update it as needed. | 688 // ImeEventGuard. We keep track of the outermost one, and update it as needed. |
| 693 ImeEventGuard* ime_event_guard_; | 689 ImeEventGuard* ime_event_guard_; |
| 694 | 690 |
| 695 // Whether IME is in batch edit mode, in which case we do not update text | |
| 696 // input state. | |
| 697 bool ime_in_batch_edit_; | |
| 698 | |
| 699 // True if we have requested this widget be closed. No more messages will | 691 // True if we have requested this widget be closed. No more messages will |
| 700 // be sent, except for a Close. | 692 // be sent, except for a Close. |
| 701 bool closing_; | 693 bool closing_; |
| 702 | 694 |
| 703 // True if it is known that the host is in the process of being shut down. | 695 // True if it is known that the host is in the process of being shut down. |
| 704 bool host_closing_; | 696 bool host_closing_; |
| 705 | 697 |
| 706 // Whether this RenderWidget is currently swapped out, such that the view is | 698 // Whether this RenderWidget is currently swapped out, such that the view is |
| 707 // being rendered by another process. If all RenderWidgets in a process are | 699 // being rendered by another process. If all RenderWidgets in a process are |
| 708 // swapped out, the process can exit. | 700 // swapped out, the process can exit. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 // Stores edit commands associated to the next key event. | 830 // Stores edit commands associated to the next key event. |
| 839 // Will be cleared as soon as the next key event is processed. | 831 // Will be cleared as soon as the next key event is processed. |
| 840 EditCommands edit_commands_; | 832 EditCommands edit_commands_; |
| 841 | 833 |
| 842 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 834 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 843 }; | 835 }; |
| 844 | 836 |
| 845 } // namespace content | 837 } // namespace content |
| 846 | 838 |
| 847 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 839 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |