Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: content/renderer/render_widget.h

Issue 2460173003: Revert "Allow selection change update before beginBatchEdit" on M54 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 #if defined(OS_ANDROID) 497 #if defined(OS_ANDROID)
498 // Called when we send IME event that expects an ACK. 498 // Called when we send IME event that expects an ACK.
499 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); 499 void OnImeEventSentForAck(const blink::WebTextInputInfo& info);
500 500
501 // Called by the browser process for every required IME acknowledgement. 501 // Called by the browser process for every required IME acknowledgement.
502 void OnImeEventAck(); 502 void OnImeEventAck();
503 503
504 // Called by the browser process to update text input state. 504 // Called by the browser process to update text input state.
505 void OnRequestTextInputStateUpdate(); 505 void OnRequestTextInputStateUpdate();
506
507 // Called by the browser process to begin (when |begin| is set) or end batch
508 // edit mode. Note that text input state will not be updated in this mode.
509 void OnImeBatchEdit(bool begin);
510 #endif 506 #endif
511 507
512 // Called by the browser process to update the cursor and composition 508 // Called by the browser process to update the cursor and composition
513 // information. 509 // information.
514 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); 510 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request);
515 511
516 // Notify the compositor about a change in viewport size. This should be 512 // Notify the compositor about a change in viewport size. This should be
517 // used only with auto resize mode WebWidgets, as normal WebWidgets should 513 // used only with auto resize mode WebWidgets, as normal WebWidgets should
518 // go through OnResize. 514 // go through OnResize.
519 void AutoResizeCompositor(); 515 void AutoResizeCompositor();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // Indicates whether tab-initiated fullscreen was granted. 661 // Indicates whether tab-initiated fullscreen was granted.
666 bool is_fullscreen_granted_; 662 bool is_fullscreen_granted_;
667 663
668 // Indicates the display mode. 664 // Indicates the display mode.
669 blink::WebDisplayMode display_mode_; 665 blink::WebDisplayMode display_mode_;
670 666
671 // It is possible that one ImeEventGuard is nested inside another 667 // It is possible that one ImeEventGuard is nested inside another
672 // ImeEventGuard. We keep track of the outermost one, and update it as needed. 668 // ImeEventGuard. We keep track of the outermost one, and update it as needed.
673 ImeEventGuard* ime_event_guard_; 669 ImeEventGuard* ime_event_guard_;
674 670
675 // Whether IME is in batch edit mode, in which case we do not update text
676 // input state.
677 bool ime_in_batch_edit_;
678
679 // True if we have requested this widget be closed. No more messages will 671 // True if we have requested this widget be closed. No more messages will
680 // be sent, except for a Close. 672 // be sent, except for a Close.
681 bool closing_; 673 bool closing_;
682 674
683 // True if it is known that the host is in the process of being shut down. 675 // True if it is known that the host is in the process of being shut down.
684 bool host_closing_; 676 bool host_closing_;
685 677
686 // Whether this RenderWidget is currently swapped out, such that the view is 678 // Whether this RenderWidget is currently swapped out, such that the view is
687 // being rendered by another process. If all RenderWidgets in a process are 679 // being rendered by another process. If all RenderWidgets in a process are
688 // swapped out, the process can exit. 680 // swapped out, the process can exit.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 // Stores edit commands associated to the next key event. 807 // Stores edit commands associated to the next key event.
816 // Will be cleared as soon as the next key event is processed. 808 // Will be cleared as soon as the next key event is processed.
817 EditCommands edit_commands_; 809 EditCommands edit_commands_;
818 810
819 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 811 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
820 }; 812 };
821 813
822 } // namespace content 814 } // namespace content
823 815
824 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 816 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698