Bug 924893 - Add info for the value_selector to contextchange chrome event. r=yxl
authorJan Jongboom <janjongboom@gmail.com>
Thu, 17 Oct 2013 11:08:55 -0400
changeset 165018 d020cdb227800a53001bd5d51aab7bae145bca13
parent 165017 411ed228d6ee5c8d1133154c38267b6ab9dd00a8
child 165019 7b73d5834399753220e5ee70d7eea7e36d5b4ac6
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyxl
bugs924893
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 924893 - Add info for the value_selector to contextchange chrome event. r=yxl
dom/inputmethod/Keyboard.jsm
--- a/dom/inputmethod/Keyboard.jsm
+++ b/dom/inputmethod/Keyboard.jsm
@@ -184,19 +184,25 @@ this.Keyboard = {
     ppmm.broadcastAsyncMessage(newEventName, msg.data);
   },
 
   handleFocusChange: function keyboardHandleFocusChange(msg) {
     this.forwardEvent('Keyboard:FocusChange', msg);
 
     let browser = Services.wm.getMostRecentWindow("navigator:browser");
 
+    // Chrome event, used also to render value selectors; that's why we need
+    // the info about choices / min / max here as well...
     browser.shell.sendChromeEvent({
       type: 'inputmethod-contextchange',
-      inputType: msg.data.type
+      inputType: msg.data.type,
+      value: msg.data.value,
+      choices: JSON.stringify(msg.data.choices),
+      min: msg.data.min,
+      max: msg.data.max
     });
   },
 
   setSelectedOption: function keyboardSetSelectedOption(msg) {
     this.sendAsyncMessage('Forms:Select:Choice', msg.data);
   },
 
   setSelectedOptions: function keyboardSetSelectedOptions(msg) {