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