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

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

Issue 2309983002: Allow selection change update before beginBatchEdit (Closed)
Patch Set: polish up a bit Created 4 years, 3 months 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 509
510 #if defined(OS_ANDROID) 510 #if defined(OS_ANDROID)
511 // Called when we send IME event that expects an ACK. 511 // Called when we send IME event that expects an ACK.
512 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); 512 void OnImeEventSentForAck(const blink::WebTextInputInfo& info);
513 513
514 // Called by the browser process for every required IME acknowledgement. 514 // Called by the browser process for every required IME acknowledgement.
515 void OnImeEventAck(); 515 void OnImeEventAck();
516 516
517 // Called by the browser process to update text input state. 517 // Called by the browser process to update text input state.
518 void OnRequestTextInputStateUpdate(); 518 void OnRequestTextInputStateUpdate();
519
520 // Called by the browser process to begin (when |begin| is set) or end batch
521 // edit mode. Note that text input state will not be updated in this mode.
522 void OnImeBatchEdit(bool begin);
519 #endif 523 #endif
520 524
521 // Called by the browser process to update the cursor and composition 525 // Called by the browser process to update the cursor and composition
522 // information. 526 // information.
523 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); 527 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request);
524 528
525 // Notify the compositor about a change in viewport size. This should be 529 // Notify the compositor about a change in viewport size. This should be
526 // used only with auto resize mode WebWidgets, as normal WebWidgets should 530 // used only with auto resize mode WebWidgets, as normal WebWidgets should
527 // go through OnResize. 531 // go through OnResize.
528 void AutoResizeCompositor(); 532 void AutoResizeCompositor();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // Indicates whether tab-initiated fullscreen was granted. 678 // Indicates whether tab-initiated fullscreen was granted.
675 bool is_fullscreen_granted_; 679 bool is_fullscreen_granted_;
676 680
677 // Indicates the display mode. 681 // Indicates the display mode.
678 blink::WebDisplayMode display_mode_; 682 blink::WebDisplayMode display_mode_;
679 683
680 // It is possible that one ImeEventGuard is nested inside another 684 // It is possible that one ImeEventGuard is nested inside another
681 // ImeEventGuard. We keep track of the outermost one, and update it as needed. 685 // ImeEventGuard. We keep track of the outermost one, and update it as needed.
682 ImeEventGuard* ime_event_guard_; 686 ImeEventGuard* ime_event_guard_;
683 687
688 // Whether IME is in batch edit mode, in which case we do not update text
689 // input state.
690 bool ime_in_batch_edit_;
691
684 // True if we have requested this widget be closed. No more messages will 692 // True if we have requested this widget be closed. No more messages will
685 // be sent, except for a Close. 693 // be sent, except for a Close.
686 bool closing_; 694 bool closing_;
687 695
688 // True if it is known that the host is in the process of being shut down. 696 // True if it is known that the host is in the process of being shut down.
689 bool host_closing_; 697 bool host_closing_;
690 698
691 // Whether this RenderWidget is currently swapped out, such that the view is 699 // Whether this RenderWidget is currently swapped out, such that the view is
692 // being rendered by another process. If all RenderWidgets in a process are 700 // being rendered by another process. If all RenderWidgets in a process are
693 // swapped out, the process can exit. 701 // swapped out, the process can exit.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 // This reference is set by the RenderFrame and is used to query the IME- 816 // This reference is set by the RenderFrame and is used to query the IME-
809 // related state from the plugin to later send to the browser. 817 // related state from the plugin to later send to the browser.
810 PepperPluginInstanceImpl* focused_pepper_plugin_; 818 PepperPluginInstanceImpl* focused_pepper_plugin_;
811 819
812 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 820 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
813 }; 821 };
814 822
815 } // namespace content 823 } // namespace content
816 824
817 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 825 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698