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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2887973002: Fix an IME regression for <webview> due to missing IPC message param (Closed)
Patch Set: Created 3 years, 7 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 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 void BrowserPluginGuest::OnImeCommitText( 905 void BrowserPluginGuest::OnImeCommitText(
906 int browser_plugin_instance_id, 906 int browser_plugin_instance_id,
907 const base::string16& text, 907 const base::string16& text,
908 const std::vector<blink::WebCompositionUnderline>& underlines, 908 const std::vector<blink::WebCompositionUnderline>& underlines,
909 const gfx::Range& replacement_range, 909 const gfx::Range& replacement_range,
910 int relative_cursor_pos) { 910 int relative_cursor_pos) {
911 Send(new InputMsg_ImeCommitText(routing_id(), text, underlines, 911 Send(new InputMsg_ImeCommitText(routing_id(), text, underlines,
912 replacement_range, relative_cursor_pos)); 912 replacement_range, relative_cursor_pos));
913 } 913 }
914 914
915 void BrowserPluginGuest::OnImeFinishComposingText(bool keep_selection) { 915 void BrowserPluginGuest::OnImeFinishComposingText(int instance_id,
916 bool keep_selection) {
wjmaclean 2017/05/18 15:13:05 Where is the new parameter getting used?
EhsanK 2017/05/18 15:21:38 Before getting here I suppose: https://cs.chromium
wjmaclean 2017/05/18 15:37:17 I don't understand. You added a parameter to a fun
EhsanK 2017/05/18 17:44:29 As we spoke offline, I added a DCHECK as well as s
916 Send(new InputMsg_ImeFinishComposingText(routing_id(), keep_selection)); 917 Send(new InputMsg_ImeFinishComposingText(routing_id(), keep_selection));
917 } 918 }
918 919
919 void BrowserPluginGuest::OnExtendSelectionAndDelete( 920 void BrowserPluginGuest::OnExtendSelectionAndDelete(
920 int browser_plugin_instance_id, 921 int browser_plugin_instance_id,
921 int before, 922 int before,
922 int after) { 923 int after) {
923 RenderFrameHostImpl* rfh = static_cast<RenderFrameHostImpl*>( 924 RenderFrameHostImpl* rfh = static_cast<RenderFrameHostImpl*>(
924 web_contents()->GetFocusedFrame()); 925 web_contents()->GetFocusedFrame());
925 if (rfh) 926 if (rfh)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 range, character_bounds); 1062 range, character_bounds);
1062 } 1063 }
1063 #endif 1064 #endif
1064 1065
1065 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { 1066 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) {
1066 if (delegate_) 1067 if (delegate_)
1067 delegate_->SetContextMenuPosition(position); 1068 delegate_->SetContextMenuPosition(position);
1068 } 1069 }
1069 1070
1070 } // namespace content 1071 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/common/browser_plugin/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698