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

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

Issue 1635953002: Added replacement_range to ImeSetComposition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: erikchen's review Created 4 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } 890 }
891 891
892 void BrowserPluginGuest::OnImeSetComposition( 892 void BrowserPluginGuest::OnImeSetComposition(
893 int browser_plugin_instance_id, 893 int browser_plugin_instance_id,
894 const std::string& text, 894 const std::string& text,
895 const std::vector<blink::WebCompositionUnderline>& underlines, 895 const std::vector<blink::WebCompositionUnderline>& underlines,
896 int selection_start, 896 int selection_start,
897 int selection_end) { 897 int selection_end) {
898 Send(new InputMsg_ImeSetComposition(routing_id(), 898 Send(new InputMsg_ImeSetComposition(routing_id(),
899 base::UTF8ToUTF16(text), underlines, 899 base::UTF8ToUTF16(text), underlines,
900 gfx::Range::InvalidRange(),
900 selection_start, selection_end)); 901 selection_start, selection_end));
901 } 902 }
902 903
903 void BrowserPluginGuest::OnImeConfirmComposition( 904 void BrowserPluginGuest::OnImeConfirmComposition(
904 int browser_plugin_instance_id, 905 int browser_plugin_instance_id,
905 const std::string& text, 906 const std::string& text,
906 bool keep_selection) { 907 bool keep_selection) {
907 Send(new InputMsg_ImeConfirmComposition(routing_id(), 908 Send(new InputMsg_ImeConfirmComposition(routing_id(),
908 base::UTF8ToUTF16(text), 909 base::UTF8ToUTF16(text),
909 gfx::Range::InvalidRange(), 910 gfx::Range::InvalidRange(),
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 range, character_bounds); 1064 range, character_bounds);
1064 } 1065 }
1065 #endif 1066 #endif
1066 1067
1067 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { 1068 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) {
1068 if (delegate_) 1069 if (delegate_)
1069 delegate_->SetContextMenuPosition(position); 1070 delegate_->SetContextMenuPosition(position);
1070 } 1071 }
1071 1072
1072 } // namespace content 1073 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698