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

Unified Diff: content/browser/android/ime_adapter_android.cc

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix presubmit warning I ignored 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/ime_adapter_android.cc
diff --git a/content/browser/android/ime_adapter_android.cc b/content/browser/android/ime_adapter_android.cc
index bbb0ec982690b34d7d61052a70e15a434d525663..2b5904cf30830150e7df663f6d050f9e227020dd 100644
--- a/content/browser/android/ime_adapter_android.cc
+++ b/content/browser/android/ime_adapter_android.cc
@@ -293,8 +293,7 @@ void ImeAdapterAndroid::SetEditableSelectionOffsets(
if (!rfh)
return;
- rfh->Send(new InputMsg_SetEditableSelectionOffsets(rfh->GetRoutingID(), start,
- end));
+ rfh->GetFrameInputHandler()->SetEditableSelectionOffsets(start, end);
}
void ImeAdapterAndroid::SetCharacterBounds(
@@ -328,12 +327,12 @@ void ImeAdapterAndroid::SetComposingRegion(JNIEnv*,
if (!rfh)
return;
- std::vector<blink::WebCompositionUnderline> underlines;
- underlines.push_back(blink::WebCompositionUnderline(
- 0, end - start, SK_ColorBLACK, false, SK_ColorTRANSPARENT));
+ std::vector<ui::CompositionUnderline> underlines;
+ underlines.push_back(ui::CompositionUnderline(0, end - start, SK_ColorBLACK,
+ false, SK_ColorTRANSPARENT));
- rfh->Send(new InputMsg_SetCompositionFromExistingText(
- rfh->GetRoutingID(), start, end, underlines));
+ rfh->GetFrameInputHandler()->SetCompositionFromExistingText(start, end,
+ underlines);
}
void ImeAdapterAndroid::DeleteSurroundingText(JNIEnv*,
@@ -343,7 +342,7 @@ void ImeAdapterAndroid::DeleteSurroundingText(JNIEnv*,
RenderFrameHostImpl* rfh =
static_cast<RenderFrameHostImpl*>(GetFocusedFrame());
if (rfh)
- rfh->DeleteSurroundingText(before, after);
+ rfh->GetFrameInputHandler()->DeleteSurroundingText(before, after);
}
void ImeAdapterAndroid::DeleteSurroundingTextInCodePoints(
@@ -353,8 +352,10 @@ void ImeAdapterAndroid::DeleteSurroundingTextInCodePoints(
int after) {
RenderFrameHostImpl* rfh =
static_cast<RenderFrameHostImpl*>(GetFocusedFrame());
- if (rfh)
- rfh->DeleteSurroundingTextInCodePoints(before, after);
+ if (rfh) {
+ rfh->GetFrameInputHandler()->DeleteSurroundingTextInCodePoints(before,
+ after);
+ }
}
bool ImeAdapterAndroid::RequestTextInputStateUpdate(
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698