summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 18:21:41 +0000
committerstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 18:21:41 +0000
commit47ceb6ad716b919bb42a36d6b3a5315d6132d0fe (patch)
tree661429441acf6f26e77323c194fb69a0b150e79c /tools
parent3d649cfbb37d250a7e824dcbd046e6360c911f88 (diff)
downloadchromium_src-47ceb6ad716b919bb42a36d6b3a5315d6132d0fe.zip
chromium_src-47ceb6ad716b919bb42a36d6b3a5315d6132d0fe.tar.gz
chromium_src-47ceb6ad716b919bb42a36d6b3a5315d6132d0fe.tar.bz2
Add a metric to track the control events on the keyboard.
This differentiates between automatic hiding and user-initiated hiding. BUG=302528 TEST=Show and hide the keyboard a few times by focusing and unfocusing text. Also, hide the keyboard once by pressing the hide keyboard button. Go to about:histograms and ensure that "VirtualKeyboard.KeyboardControlEvents" appears with event 0 being the number of times the keyboard was shown, event 1 being the number of times the keyboard was automatically hidden, and event 2 being the number of times a keyboard was manually hidden. Review URL: https://codereview.chromium.org/25548002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228727 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r--tools/metrics/histograms/histograms.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 4acd1ce..aa271d7 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -18608,6 +18608,14 @@ other types of suffix sets.
</summary>
</histogram>
+<histogram name="VirtualKeyboard.KeyboardControlEvent"
+ enum="KeyboardControlEvent">
+ <summary>
+ A count of various control events that can occur on the virtual keyboard,
+ such as showing and hiding.
+ </summary>
+</histogram>
+
<histogram name="VirtualKeyboard.KeystrokesBetweenBackspace">
<summary>
Counts the number of keys typed by the virtual keyboard between each
@@ -22919,6 +22927,12 @@ other types of suffix sets.
<int value="3" label="RTCPeerConnection"/>
</enum>
+<enum name="KeyboardControlEvent" type="int">
+ <int value="0" label="Keyboard was shown."/>
+ <int value="1" label="Keyboard was automatically hidden."/>
+ <int value="2" label="Keyboard was hidden by the user."/>
+</enum>
+
<enum name="LanguageCode" type="int">
<summary>ISO 639 Language Codes.</summary>
<int value="24929" label="Afar"/>