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

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: Remove logging statements, fix copyright years in new files Created 3 years, 11 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..0f85643f21be1e78504eac42412e130e3ce5389b
--- /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 {
+ int mDocumentMarkerID;
Changwan Ryu 2017/02/14 00:58:01 nit: normally style convention for public variable
+ int mSuggestionIndex;
+ String mPrefix;
+ String mText;
+ String mSuffix;
+
+ SuggestionInfo(
+ int 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