From 68b990e7ce2b87a6f83cc4fedec7b1cc26ced60c Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 26 Aug 2013 12:27:38 +0900 Subject: [PATCH] Add emoji keyboard element ids Bug: 6370846 Change-Id: I0ac55bc06e1527bafad395f4a2b5059e1fed4b5d --- java/res/values/attrs.xml | 14 ++++++++++++++ .../android/inputmethod/keyboard/KeyboardId.java | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 3512686d0..4c5097654 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -373,6 +373,13 @@ + + + + + + + @@ -427,6 +434,13 @@ + + + + + + + diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardId.java b/java/src/com/android/inputmethod/keyboard/KeyboardId.java index 08ce064e0..53748bb58 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardId.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardId.java @@ -53,6 +53,13 @@ public final class KeyboardId { public static final int ELEMENT_PHONE = 7; public static final int ELEMENT_PHONE_SYMBOLS = 8; public static final int ELEMENT_NUMBER = 9; + public static final int ELEMENT_EMOJI_RECENTS = 10; + public static final int ELEMENT_EMOJI_CATEGORY1 = 11; + public static final int ELEMENT_EMOJI_CATEGORY2 = 12; + public static final int ELEMENT_EMOJI_CATEGORY3 = 13; + public static final int ELEMENT_EMOJI_CATEGORY4 = 14; + public static final int ELEMENT_EMOJI_CATEGORY5 = 15; + public static final int ELEMENT_EMOJI_CATEGORY6 = 16; public final InputMethodSubtype mSubtype; public final Locale mLocale; @@ -215,6 +222,13 @@ public final class KeyboardId { case ELEMENT_PHONE: return "phone"; case ELEMENT_PHONE_SYMBOLS: return "phoneSymbols"; case ELEMENT_NUMBER: return "number"; + case ELEMENT_EMOJI_RECENTS: return "emojiRecents"; + case ELEMENT_EMOJI_CATEGORY1: return "emojiCategory1"; + case ELEMENT_EMOJI_CATEGORY2: return "emojiCategory2"; + case ELEMENT_EMOJI_CATEGORY3: return "emojiCategory3"; + case ELEMENT_EMOJI_CATEGORY4: return "emojiCategory4"; + case ELEMENT_EMOJI_CATEGORY5: return "emojiCategory5"; + case ELEMENT_EMOJI_CATEGORY6: return "emojiCategory6"; default: return null; } }