summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorazurewei <azurewei@chromium.org>2016-03-23 21:28:36 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-24 04:30:38 +0000
commit09c089d0d14e2c0cf1675ab353d676498b0495e4 (patch)
treeb52eabc18c3c2ecd8e0813c6165255b1f19435e5 /extensions
parentcdc755c0552ebca53e2a86d678a3dd7f7f5dbcf6 (diff)
downloadchromium_src-09c089d0d14e2c0cf1675ab353d676498b0495e4.zip
chromium_src-09c089d0d14e2c0cf1675ab353d676498b0495e4.tar.gz
chromium_src-09c089d0d14e2c0cf1675ab353d676498b0495e4.tar.bz2
Add inputMethodPrivate.showInputView API.
A new private API is needed to let the IME menu show the virtual emoji\handwriting\voice keyboard directly. This is easy when the '--enable-virtual-keyboard' flag is turned on, or the 'On-screen keyboard' is enabled. Just calling keyboard_controller::ShowKeyboard() could finish the work. While, when neither of these two keyboards is enabled, the API should create the instance of the input view window and make sure it will only be shown once. When the virtual keyboard is enabled, the input view window could be popped up automatically by system when the cursor is focused into a input filed. But if the virtual keyboard is brought up by inputMethodPrivate.showInputView API with the '--enable-virtual-keyboard' flag off, the input view window should never be automatically shown after it's hidden. BUG=570761 TEST=None Review URL: https://codereview.chromium.org/1796063002 Cr-Commit-Position: refs/heads/master@{#383030}
Diffstat (limited to 'extensions')
-rw-r--r--extensions/browser/extension_function_histogram_value.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/browser/extension_function_histogram_value.h b/extensions/browser/extension_function_histogram_value.h
index 6eb5fad..4bfb028 100644
--- a/extensions/browser/extension_function_histogram_value.h
+++ b/extensions/browser/extension_function_histogram_value.h
@@ -1171,6 +1171,7 @@ enum HistogramValue {
INPUTMETHODPRIVATE_NOTIFYIMEMENUITEMACTIVATED,
INPUT_IME_SHOWWINDOW,
INPUT_IME_HIDEWINDOW,
+ INPUTMETHODPRIVATE_SHOWINPUTVIEW,
// Last entry: Add new entries above, then run:
// python tools/metrics/histograms/update_extension_histograms.py
ENUM_BOUNDARY