Граф коммитов

62 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Masayuki Nakano ec7dded4eb Bug 900750 - part 5: Make NativeKey set KeyboardEvent.key value of AltRight key to "AltGraph" when active keyboard layout has AltGr key r=m_kato,smaug
When AltGr key is pressed, following messages come:

1. WM_KEYDOWN for ControlLeft
2. WM_KEYDOWN for AltLeft
3. WM_SYSKEYUP for ControlLeft
4. WM_KEYUP for AltLeft

In these key sequence, KeyboardEvent.key value of keydown event at #2 and keyup
event at #4 should be "AltGraph".  This patch fixes the key value and
adding new test into test_keycodes.xul to check the behavior with
SynthesizeNativeKey().

MozReview-Commit-ID: JZ6WednB8la

--HG--
extra : rebase_source : 596371ede89e90c23f7e842b26ec8155b911fe60
2018-05-31 18:36:33 +09:00
Sylvestre Ledru 794e1be583 Bug 1446809 - Remove some b2g leftover in widget/NativeKeyToDOMKeyName.h r=froydnj
MozReview-Commit-ID: 7nRuHThygp1

--HG--
extra : rebase_source : a6345c1070e669d72576ff19eaf61e17c7c92238
extra : source : df179cf0797daa3d255c40e53cb5f5bfe5f84dd1
2018-03-18 19:30:05 +01:00
Csoregi Natalia fc0283f66c Backed out 10 changesets (bug 1446809) for failing on jsat/test_content_integration.html . CLOSED TREE
Backed out changeset 42146f3856d0 (bug 1446809)
Backed out changeset e6b888d19add (bug 1446809)
Backed out changeset 2293192557ef (bug 1446809)
Backed out changeset 643d30faeef8 (bug 1446809)
Backed out changeset 73639fbb3a61 (bug 1446809)
Backed out changeset df179cf0797d (bug 1446809)
Backed out changeset 04c46f107d24 (bug 1446809)
Backed out changeset 9b98c5aad44c (bug 1446809)
Backed out changeset 347d7259df0f (bug 1446809)
Backed out changeset 2a350e323713 (bug 1446809)
2018-03-21 11:17:38 +02:00
Sylvestre Ledru 26ecd929aa Bug 1446809 - Remove some b2g leftover in widget/NativeKeyToDOMKeyName.h r=froydnj
MozReview-Commit-ID: 7nRuHThygp1

--HG--
extra : rebase_source : bd6c6f4a74c6176a20c8acabd8a7b836c00f019b
extra : histedit_source : 8b7b60f03183c2c0aac41210ded310856a51eb04
2018-03-18 19:30:05 +01:00
Masayuki Nakano 8bd493dbc3 Bug 1343451 - part 2: KeyboardLayout and NativeKey should use native key code value to check if the key event was handled by IME r=m_kato
On Windows, VK_PROCESSKEY key message is sent if the key event is handled by
IME (in IMM mode or IMM-IME).  Therefore, we can set
WidgetKeyboardEvent::mKeyCode to NS_VK_PROCESSKEY and
WidgetKeyboardEvent::mKeyNameIndex to KEY_NAME_INDEX_Process simply when
we receive VK_PROCESSKEY.

MozReview-Commit-ID: 9B8Q7rwfXYD

--HG--
extra : rebase_source : f1ed228b295e6c4bd41192bc773b8118a28db6bc
2017-03-01 15:58:50 +09:00
Cosmin Sabou 462b445081 Backed out 6 changesets (bug 1343451) for mochitest android perma failures on testInputConnection.
Backed out changeset e07105d9698e (bug 1343451)
Backed out changeset dc4a2a5932c3 (bug 1343451)
Backed out changeset 9561ed261d04 (bug 1343451)
Backed out changeset 84a5ec921442 (bug 1343451)
Backed out changeset b34d48936db8 (bug 1343451)
Backed out changeset 4dce7ab14f71 (bug 1343451)
2018-03-12 18:07:46 +02:00
Masayuki Nakano 2b972e10f7 Bug 1343451 - part 2: KeyboardLayout and NativeKey should use native key code value to check if the key event was handled by IME r=m_kato
On Windows, VK_PROCESSKEY key message is sent if the key event is handled by
IME (in IMM mode or IMM-IME).  Therefore, we can set
WidgetKeyboardEvent::mKeyCode to NS_VK_PROCESSKEY and
WidgetKeyboardEvent::mKeyNameIndex to KEY_NAME_INDEX_Process simply when
we receive VK_PROCESSKEY.

MozReview-Commit-ID: 9B8Q7rwfXYD

--HG--
extra : rebase_source : a15105e3b6acf1f1911a8299911353dc4179e2c0
2017-03-01 15:58:50 +09:00
Eric Rahm fe18bf0131 Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj
MozReview-Commit-ID: 8r4eMwiZ4Vg
2017-08-08 14:41:09 -07:00
Masayuki Nakano 6395b563e8 Bug 1339509 Map ISO_Left_Tab to DOM Tab key r=karlt
Shift + Tab key combination causes ISO_Left_Tab keysym instead of Tab.  It should be mapped to DOM Tab key.

MozReview-Commit-ID: IgQj7tkQdoJ

--HG--
extra : rebase_source : 2f88c1181795d568ac4ec785f416d986d8d6625e
2017-02-17 16:47:35 +09:00
Masayuki Nakano 07f4ac2764 Bug 1274503 part.4 Remove some odd whitespaces in NativeKeyToDOMKeyName.h r=smaug
MozReview-Commit-ID: GxcVOPMNqOx

--HG--
extra : rebase_source : 3270985bba0d78c87df77d3e94d2a4942a9c46c6
2016-11-21 22:14:36 +09:00
Masayuki Nakano 173ce3fe7c Bug 1274503 part.3 Remap AKEYCODE_BACK, AKEYCODE_DPAD_CENTER and AKEYCODE_CAPTIONS to same KeyboardEvent.key value as Chromium r=smaug
AKEYCODE_BACK should be remapped from "BrowserBack" to "GoBack".
AKEYCODE_DPAD_CENTER should be remapped from "Accept" to "Enter".
AKEYCODE_CAPTIONS should be remapped from "Subtitle" to "ClosedCaptionToggle".

The new values are same as Chromium and they are also declared in the spec.

FYI: Gaia doesn't use above key values, so, it's safe to use KEY_MAP_ANDROID for them.

MozReview-Commit-ID: AJwhB59cKzq

--HG--
extra : rebase_source : 8fc923647ee92b39a3317c36fa306f555ddfe2c8
2016-11-21 22:15:07 +09:00
Masayuki Nakano ab577a1cb6 Bug 1274503 part.2 Add KeyboardEvent.key value mapping on Android which are not mapped by Gecko but mapped on Chromium r=smaug
First, we should get rid of "Unidentified" keys which are mapped to specific value on Chromium and we can agree without any discussion.

MozReview-Commit-ID: C4TZzndahNM

--HG--
extra : rebase_source : 5e9d7527c4109049a44391fca45f2ffbd0f81960
2016-12-01 21:38:54 +09:00
Masayuki Nakano db5a4ed912 Bug 1274503 part.1 AKEYCODE_ASSIST shouldn't be mapped to "Help" r=smaug
I mapped AKEYCODE_ASSIST to "Help".  However, Chromium doesn't map the keycode to anything. Additionally, Android has a new keycode AKEYCODE_HELP and Chromium maps it to "Help". So, we should use Chromium's mapping for it.

MozReview-Commit-ID: 19zTP0xclYI

--HG--
extra : rebase_source : c6e5d9f7572b496e4766159aa281088571b11d91
2016-11-04 21:08:04 +09:00
Masayuki Nakano bd5c351eec Bug 1274503 part.0 Move "MediaFastForward" to "Media Keys" section for keeping same order with the spec r=smaug
MozReview-Commit-ID: 4eGNIDmbPds

--HG--
extra : rebase_source : 9702ff391f4d4f7ddabdc9aefdfafdd381d5d69f
2016-11-03 22:01:10 +09:00
Sebastian Hengst 3c1524e5e0 Bug 1306137 - remove b2g camera code: Remove dom/camera/ and code which depends on it. r=aosmond,bkelly
MozReview-Commit-ID: 7gvZrDtmcZP

--HG--
extra : rebase_source : 31f06357fdc36566465668f55bf3fcc5402fe9e0
2016-10-04 20:16:28 +02:00
Nicholas Nethercote a913f99107 Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal.
Because bug 1282866 removed Qt support but missed a bunch of things.
* * *
Bug 1285554 - more

--HG--
extra : rebase_source : c48d2485f1fdf1c961e08d91651bbca41e3a1a53
2016-07-12 09:16:45 +10:00
Gregor Wagner ea1566d538 Bug 1277234 - Rename key name VolumeUp to AudioVolumeUp. r=masayuki 2016-06-02 15:55:53 +02:00
Masayuki Nakano 38e54402b2 Bug 1272599 part.2 Rename KeyboardEvent.key values, "MozHomeScreen" and "MozCameraFocusAdjust" to "GoHome" and "CameraFocus" except on B2G r=smaug
KEYCODE_HOME was temporarily named as "MozHomeScreen" and KEYCODE_FOCUS was temprarily named as "MozCameraFocusAdjust" since they were not defined by the spec. However, in the latest spec, they are defined as "GoHome" and "CameraFocus". So, it is the time to rename them.

However, these temporary key names are still used by Gaia. Until it's fixed, we should keep using the temporary names only on B2G.

MozReview-Commit-ID: 9ILtZdf6EUQ

--HG--
extra : rebase_source : f673ca6e128705af3071dafbd7ab1eb8e310297d
2016-05-20 21:29:10 +09:00
Masayuki Nakano 18d7f8212d Bug 1272599 part.1 Rename KeyboardEvent.key value, "MozPhoneCall" to "Call" r=smaug
Android's KEYCODE_CALL was temporarily named as "MozPhoneCall" since proper key name was not defined in the spec. However, now, it's defined as "Call" in the latest spec. Therefore, we should rename this key name.

Note that this isn't available on Android because the key event is never fired on applications. However, this key may be useful on B2G. Although, the key is not used by current Gaia.

MozReview-Commit-ID: GF4STYrGMig

--HG--
extra : rebase_source : 7d94c0a3c47d9ba1fadc4de475d71967d6281545
2016-05-20 21:00:20 +09: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
Masayuki Nakano 02cb827ee5 Bug 1272592 Merge "MediaSelect" key value into "LaunchMediaPlayer" r=smaug
"MediaSelect" is merged into "LanuchMediaPlayer" in the spec since there is no difference between them and "LaunchMediaPlayer" explains the meaning clearer.

This patch removes "MediaSelect" key value and maps all keys which are mapped to "MediaSelect" to "LaunchMediaPlayer".

MozReview-Commit-ID: IEZhV4p6Qag
2016-05-19 20:47:32 +09:00
Masayuki Nakano 838c23f20a Bug 1232919 part.2 Reorganize NativeKeyToDOMKeyName.h for using same definition order of the latest UI Events KeyboardEvent key values r=smaug
MozReview-Commit-ID: ANBe57BbVgb

--HG--
extra : rebase_source : 694c3cb66449f51a75a311f8fc07b5b1c40ae1d6
2016-05-13 18:49:46 +09:00
Wes Kocher 7c13cd34da Backed out changeset 3c46096adeaf (bug 1272592) for landing before some requisite commits CLOSED TREE 2016-05-20 17:59:41 -07:00
Masayuki Nakano 90aa97cb1c Bug 1272592 Merge "MediaSelect" key value into "LaunchMediaPlayer" r=smaug
"MediaSelect" is merged into "LanuchMediaPlayer" in the spec since there is no difference between them and "LaunchMediaPlayer" explains the meaning clearer.

This patch removes "MediaSelect" key value and maps all keys which are mapped to "MediaSelect" to "LaunchMediaPlayer".

MozReview-Commit-ID: IEZhV4p6Qag

--HG--
extra : rebase_source : deeeb5bd6b0aa7fa4c7beb9b6e4cd5671520c232
2016-05-19 20:47:32 +09:00
Hansu Kim 634317f368 Bug 1112712 - DOM key mapping for soft1 soft2 and call keys r=schien
--HG--
extra : amend_source : 12897e7dc7681ea285088153a258983e6b90e5a1
2015-10-16 11:04:11 -07:00
Nigel Babu 6075cf3e03 Backed out changeset 02a7211c3ac8 (bug 1112712) for build bustage 2015-10-05 14:29:44 +05:30
hansu9866@gmail.com 238476d73a Bug 1112712 - DOM key and code mapping for simple phone hardware keys. r=masayuki
commit eb0f93fdeaba83493ad231b62e8d27793e1a67ca
Author: Hansu Kim <hansu9866@gmail.com>
    Bug 1112712 DOM key and code mapping for simple phone hardware keys

    Change-Id: I8b37b82e374ce287af334061eaaa49f1b9f350b8

--HG--
extra : amend_source : 3331d014f4206e0a6351a5607a83af21c0ca883f
2015-10-01 16:13:00 +02:00
Kartikaya Gupta cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Alexandre Lissy d5f7076117 Bug 1133741 - Add camera focus hardware button. r=masayuki 2015-02-20 00:06:00 -05:00
Masayuki Nakano 5dcd3154ee Bug 1121878 Map Copy, Cut, ChannelDown, ChannelUp and MediaFastForward to proper WM_APPCOMMAND message r=smaug+jimm 2015-01-16 21:15:06 +09:00
Sean Lin 8e19b30dd6 Bug 1116762 - Add MozHomeScreen key name for home button. r=masayuki 2015-01-08 11:29:54 +08:00
Masayuki Nakano ce2aef65dd Bug 1031156 Map GDK_AudioForward to "MediaFastForwar" r=karlt 2014-12-30 10:47:56 +09:00
Masayuki Nakano 7fd8ddebc2 Bug 865561 Dispatch key events when WM_APPCOMMAND is fired for a keypress r=jimm+smaug 2014-12-30 10:47:56 +09:00
Masayuki Nakano f840763cec Bug 1027477 Don't map "Exit" key value to HOME button of smartphones r=mwu+nchen+smaug 2014-12-30 10:47:56 +09:00
Masayuki Nakano f9f5b47d2c Bug 1027474 Support "VideoModeNext" key value on GTK r=smaug+karlt 2014-12-30 10:47:56 +09:00
Masayuki Nakano 4cefbaca68 Bug 1027472 Support Symbol key value on Android and Gonk r=mwu+nchen+smaug 2014-12-30 10:47:55 +09:00
Masayuki Nakano 478c8eafdf Bug 1027007 Support multimedia keyboard's special key values "Close", "MailForward", "MailReply", "MailSend", "New", "Open", "Print" and "SpellCheck" on GTK and Qt r=smaug+karlt+romaxa 2014-12-30 10:47:55 +09:00
Masayuki Nakano 4cfc2a5d68 Bug 1026939 Support "LaunchFoo" key values which launches specific application on GTK, Qt, Android and Gonk r=nchen+karlt+mwu+smaug+romaxa 2014-12-30 10:47:55 +09:00
Masayuki Nakano 20c6bd2f32 Bug 1023062 Support "TV", "TVInput", "TVPower", "AVInput", "AVPower", "STBInput" and "STBPower" key values on Androind and Gonk r=nchen+mwu+smaug 2014-12-30 10:47:55 +09:00
Masayuki Nakano 3801317282 Bug 936322 Support "GroupFirst", "GroupLast", "GroupNext" and "GroupPrevious" key values on GTK, Android and Gonk r=nchen+karlt+mwu+smaug 2014-12-30 10:47:55 +09:00
Masayuki Nakano 569bacdbd2 Bug 896348 Support "Eisu" key value on Mac, Android and Gonk r=smichaud+nchen+mwu+smaug 2014-12-30 10:47:55 +09:00
Masayuki Nakano b76d23b4bc Bug 900400 Support "HiraganaKatakana" and "ZenkakuHankaku" on GTK, Qt, Android and Gonk r=nchen+karlt+mwu+smaug+romaxa 2014-12-30 10:47:55 +09:00
Masayuki Nakano bc55189154 Bug 900392 Support "SingleCandidate" key value on GTK and Qt r=romaxa+karlt+smaug 2014-12-30 10:47:55 +09:00
Masayuki Nakano d5da3d58da Bug 900384 Support "Redo" key value on GTK r=karlt+smaug 2014-12-30 10:47:54 +09:00
Masayuki Nakano f55d83102d Bug 900382 Support "LogOff", "PowerOff", "Hibernate", "Standby" and "WakeUp" key values on Windows, GTK and Qt r=jimm+karlt+smaug+jimm 2014-12-30 10:47:54 +09:00
Masayuki Nakano 6e2fea9d4e Bug 900378 Support "ZoomIn" and "ZoomOut" key values on GTK, Qt, Android and Gonk r=romaxa+nchen+karlt+mwu+smaug 2014-12-30 10:47:54 +09:00