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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/SuggestionInfo.java

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 years, 8 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/java/src/org/chromium/content/browser/input/SuggestionInfo.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/SuggestionInfo.java b/content/public/android/java/src/org/chromium/content/browser/input/SuggestionInfo.java
new file mode 100644
index 0000000000000000000000000000000000000000..26efb919f11a8e2c074c2a234b815e90e782e6fc
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/input/SuggestionInfo.java
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.content.browser.input;
+
+/**
+ * Represents an entry in a text suggestion popup menu. Contains the information
+ * necessary to display the menu entry and the information necessary to apply
+ * the suggestion.
+ */
+public class SuggestionInfo {
+ long mDocumentMarkerID;
+ int mSuggestionIndex;
+ String mPrefix;
+ String mText;
+ String mSuffix;
+
+ SuggestionInfo(
+ long documentMarkerID, int suggestionIndex, String prefix, String text, String suffix) {
+ mDocumentMarkerID = documentMarkerID;
+ mSuggestionIndex = suggestionIndex;
+ mPrefix = prefix;
+ mText = text;
+ mSuffix = suffix;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698