| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |