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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Simplify Mojo binding based on rockot@'s advice Created 3 years, 5 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
Index: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
index 9fd15aa2c1959416c2569f356aa81c7b9093632e..7ec3e4771276349ba3c91208242e943f79ae93cc 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
@@ -23,6 +23,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.util.Feature;
import org.chromium.content.browser.input.ImeAdapter;
+import org.chromium.content.browser.input.TextSuggestionHost;
import org.chromium.content.browser.test.ContentJUnit4ClassRunner;
import org.chromium.content.browser.test.util.TestInputMethodManagerWrapper;
import org.chromium.content_public.browser.WebContents;
@@ -104,6 +105,9 @@ public class PopupZoomerTest {
new TestInputMethodManagerWrapper(mContentViewCore)));
mPopupZoomer = createPopupZoomerForTest(InstrumentationRegistry.getTargetContext());
mContentViewCore.setPopupZoomerForTest(mPopupZoomer);
+ mContentViewCore.setTextSuggestionHostForTesting(new TextSuggestionHost(context,
+ webContents, mActivityTestRule.getContentViewCore().getContainerView(),
+ mContentViewCore, mContentViewCore.getRenderCoordinates()));
}
});
}
« no previous file with comments | « content/public/android/java/strings/android_content_strings.grd ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698