Commit Graph

57 Commits

Author SHA1 Message Date
Gregor Wagner
ea1566d538 Bug 1277234 - Rename key name VolumeUp to AudioVolumeUp. r=masayuki 2016-06-02 15:55:53 +02:00
Masayuki Nakano
4205d9edae Bug 1272578 part.3 Rename key name VolumeMute to AudioVolumeMute except on B2G r=smaug
VolumeMute was renamed to AudioVolumeMute in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KSkcPbIovin

--HG--
extra : rebase_source : 4ff5d92b000599806367b002fd08aa5ae858ee4d
2016-05-21 00:57:18 +09:00
Masayuki Nakano
65d3998d32 Bug 1272578 part.2 Rename key name VolumeUp to AudioVolumeUp except on B2G r=smaug
VolumeUp was renamed to AudioVolumeUp in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KzLVL5Y2dIN

--HG--
extra : rebase_source : d7a70f556684cdc99989e408e0e87a04e2da43d9
2016-05-21 00:55:48 +09:00
Masayuki Nakano
97f043ea9e Bug 1272578 part.1 Rename key name VolumeDown to AudioVolumeDown except on B2G r=smaug
VolumeDown was renamed to AudioVolumeDown in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: cq98qJnS8M

--HG--
extra : rebase_source : 98653e5427d9d4720d19011673cbb0f9cdf36f1a
2016-05-21 00:52:03 +09:00
Tim Chien
a64d29e25a Bug 1234459 - Expose full text in the input box to InputMethod API, r=masayuki, sr=smaug 2016-01-05 00:37:00 +01:00
Xidorn Quan
1a693cf130 Bug 962249 part 3 - Add Window.scrollMin{X,Y} (chrome-only) and convert most of scrollMaxX uses and part of scrollMaxY uses to combinations with the new properties. r=roc,bz
--HG--
extra : source : a07399cae357020c4f6dd33dac16eae82882cc83
2015-10-27 13:38:02 +09:00
Tim Chien
e284a1b7b0 Bug 1201407 - Add input-manage-only events for InputMethod API. r=janjongboom, sr=smaug 2015-09-16 22:11:00 +02:00
Carsten "Tomcat" Book
80cfd656d8 Backed out 1 changesets (bug 1201407) for suspicion of causing linux bc test failures on a CLOSED TREE
Backed out changeset 171eb742e015 (bug 1201407)

--HG--
extra : rebase_source : 1629e6f144ed487f4ecd78ccaf8f880bdac63b9f
2015-09-17 14:38:44 +02:00
Tim Chien
28d24ea24f Bug 1201407 - Add input-manage-only events for InputMethod API, r=janjongboom, sr=smaug 2015-09-16 22:11:00 +02:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Tim Chien
97fd8227ab Bug 1197700 - Correct mistakes in InputMethod.webidl. r=kanru, r=janjongboom, sr=smaug 2015-09-10 22:27:00 +02:00
Carsten "Tomcat" Book
a051fc3931 Backed out 1 changesets (bug 1197700) for test failures in test_interfaces.html on a CLOSED TREE
Backed out changeset fd40cb58dca3 (bug 1197700)
2015-09-10 12:17:03 +02:00
Tim Chien
b2839ce3fd Bug 1197700 - Correct mistakes in InputMethod.webidl. r=kanru, r=janjongboom, sr=smaug
--HG--
extra : rebase_source : 6dae179e27126a9722b9d6015d933dab2252d638
2015-09-09 19:56:00 +02:00
Tim Chien
c6c2017be9 Bug 1137557 - Part 3: Allow content to pass a dict representing the property of the keyboard event to send. r=masayuki, sr=smaug
- Overloading MozInputContext#sendKey() so it could take a dict.
- An optional trailing argument for setComposition() and endComposition() methods for these methods to take the dict.
- New keydown() and keyup() methods that takes dict as the only argument.

--HG--
extra : source : ce86cf91f423417b4b6ca5842bca793817b3284a
2015-08-23 21:19:00 -04:00
Tim Chien
877fd2b4fe Bug 1137557 - Part 2: Remove sendKeyEvent from forms.js. r=masayuki, r=smaug (to make the webidl hook happy)
--HG--
extra : source : 83af10efcd3ced1f1ffaa202aeea7de03cf096f9
2015-07-17 04:41:00 -04:00
Ryan VanderMeulen
aeacc8883e Backed out 4 changesets (bug 1137557) for causing intermittent Gij switching_test.js failures.
Backed out changeset ce86cf91f423 (bug 1137557)
Backed out changeset 83af10efcd3c (bug 1137557)
Backed out changeset e48ed45d1c80 (bug 1137557)
Backed out changeset 81e93b60a622 (bug 1137557)

CLOSED TREE

--HG--
extra : rebase_source : 2bf3467951041be553ab34c45d49c445829d21bb
2015-08-24 13:27:01 -04:00
Tim Chien
11bce71d96 Bug 1137557 - Part 3: Allow content to pass a dict representing the property of the keyboard event to send. r=masayuki, sr=smaug
- Overloading MozInputContext#sendKey() so it could take a dict.
- An optional trailing argument for setComposition() and endComposition() methods for these methods to take the dict.
- New keydown() and keyup() methods that takes dict as the only argument.
2015-08-23 21:19:00 -04:00
Tim Chien
f91ccd8918 Bug 1137557 - Part 2: Remove sendKeyEvent from forms.js. r=masayuki, r=smaug (to make the webidl hook happy) 2015-07-17 04:41:00 -04:00
Tim Chien
59f6a80b1e Bug 1175399 - Move readonly detection into isFocusableElement. r=janjongboom 2015-07-03 01:42:00 +02:00
Tim Chien
7a032efd9b Bug 1162360 - Dispatches focus and blur message synchronously, r=yxl 2015-05-21 20:13:00 +02:00
Ryan VanderMeulen
917d00df0a Backed out changeset 0cd8eeb72c1b (bug 1162360) for suspicion of causing share_activity_test.js permafail.
CLOSED TREE
2015-05-29 13:06:29 -04:00
Tim Chien
6518772df5 Bug 1162360 - Dispatches focus and blur message synchronously. r=yxl
--HG--
extra : rebase_source : ba93466d207c9363ff3d18f31139aa78490dadc6
2015-05-21 20:13:00 -04:00
Tim Chien
6ad39882f0 Bug 1122463 - Don't blur the input when submit is cancelled. r=yxl
--HG--
extra : rebase_source : 02b5f6bdd130c58355371cce630f58e00647b4d7
2015-02-11 21:39:00 -05:00
Morris Tseng
e75a6e55d6 Bug 1125045 - yAxisVisible should compare with offset.height instead of pos.width. r=xyuan 2015-02-26 01:01:00 +01:00
Masayuki Nakano
ca9bed9a3f Bug 1119609 part.18 Add nsITextInputProcessor.commitCompositionWith() and drop aCommitString from nsITextInputProcessor.commitComposition() r=smaug, sr=smaug 2015-02-19 15:50:21 +09:00
Masayuki Nakano
e0f19b8f22 Bug 1119609 part.12 nsITextInputProcessor should take KeyboardEvent as an argument of composition releated methods for dispatching key events around composition events r=smaug, sr=smaug 2015-02-19 15:50:20 +09:00
Masayuki Nakano
cebca7ab8a Bug 1131026 Rename nsITextInputProcessor.init() and .initForTests() to .beginInputTransaction() and .beginInputTransactionForTests() r=smaug, sr=smaug 2015-02-10 17:09:29 +09:00
Masayuki Nakano
23bb94d093 Bug 917322 part.19 Add nsITextInputProcessorCallback r=smaug+xyuan, sr=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
0e8bfa0a8e Bug 917322 part.13 B2G should use nsITextInputProcessor in forms.js r=smaug+xyuan 2015-01-28 15:27:32 +09:00
Olli Pettay
faee2dfe7e Bug 1079236, Event.composedTarget to reveal the original non-native-anonymous event target, r=wchen, r=smaug 2015-01-23 13:55:46 +02:00
Masayuki Nakano
fa0d074313 Bug 1077345 part.8 CompositionManager.endComposition() in forms.js should use nsIDOMWindowUtils.sendCompositionEvent('compositioncommit') r=xyuan 2014-11-25 14:02:32 +09:00
Tim Chien
e3277f83ab Bug 1079455 - Drop edit action when focus message is not yet send. r=yxl 2014-10-23 20:22:00 +02:00
Tim Chien
be9563ed5b Bug 1079728 - Ensure that the blur message is sent after removing focus. r=yxl 2014-10-21 06:57:00 -04:00
Jan Jongboom
c8c3ab24b8 Bug 1059163 - Add a mutation observer to contenteditable elements to detect selection changes that nsISelectionPrivate misses. r=yxl 2014-10-09 06:06:00 -04:00
Ting-Yu Chou
86be933479 Bug 1066515 - Part 1: Set selection range directly when replacing within current text node. r=yxl 2014-10-03 14:09:53 +08:00
Carsten "Tomcat" Book
5e19affa54 Backed out changeset 46c1cce018de (bug 1059163) for frequent test failures of the new test 2014-10-09 12:08:09 +02:00
Jan Jongboom
f19ff988ec Bug 1059163 - Add a mutation observer to contenteditable elements to detect selection changes that nsISelectionPrivate misses r=xyuan 2014-10-08 16:27:27 -07:00
Masayuki Nakano
e6d1b6b01e Bug 975383 part.7 Remove compositionupdate dispatchers in forms.js of B2G r=yxl 2014-10-03 15:33:49 +09:00
Tim Chien
0e320d9362 Bug 1057898 - Tap between two inputs should result one inputcontextchange event. r=yxl 2014-09-04 19:43:00 -04:00
Jan Jongboom
854280cee5 Bug 1026997 - Use nsISelectionPrivate to track selection changes in forms.js. r=yxl 2014-08-13 02:12:00 -04:00
Bill McCloskey
055511bb01 Bug 921299 - Don't consider all keypresses to be synthetic events on b2g (r=smaug) 2014-07-10 16:46:28 -07:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Yuan Xulei
5ef8a3a81b Bug 986992 - Part 1: Merge navigator.mozKeyboard to navigator.mozInputMethod. r=fabrice 2014-03-31 10:38:45 +08:00
Wei Deng
91d0671901 Bug 960946 - Correct events which can be generated and sent repeatedly from longpressing a key. r=yxl 2014-03-25 15:46:52 +08:00
Wei Deng
4164cd3490 Bug 978918 - Filter hidden <br> when get content editable text length. r=yxl 2014-03-20 18:37:00 +08:00
Yuan Xulei
c2990feebc Bug 952724 - Make InputContext#replaceSurroundingText match spec. r=janjongboom 2014-01-03 09:17:28 -05:00
Jan Jongboom
a9e07e2740 Bug 952080 - Rejection state for sendKey. r=yxl 2014-01-02 10:39:26 -05:00
Kevin Grandon
6b31866e22 Bug 942749 - [keyboard] Fix forms.js contenteditable scroll position. r=fabrice 2013-12-13 16:10:56 -05:00
Jan Jongboom
c4f182ab0d Bug 944681 - Don't fire inputcontextchange on selection change from mouseup. r=yxl
--HG--
extra : rebase_source : bd6286e8bdec2ceb081d837d9341b54ca69a1886
2013-12-10 10:14:39 -05:00
Kan-Ru Chen (陳侃如)
2dccb91273 Bug 941468 - Only load forms.js once per-process. r=yxl 2013-12-08 23:28:47 +08:00