Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Issue 1560293002: Rename KEY_ constants to avoid conflict with <linux/input.h> (Closed)

Created:
4 years, 11 months ago by kpschoedel
Modified:
4 years, 11 months ago
Reviewers:
*Wez
CC:
chromium-reviews, chromoting-reviews_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org, dcheng, Dmitry Titov, jam, jbauman+watch_chromium.org, jennb, jianli, kalyank, nona+watch_chromium.org, oshima+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, tdresser+watch_chromium.org, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename KEY_ constants to avoid conflict with <linux/input.h> Most |enum class DomCode| constants are named by mapping the names from the W3C specification from CamelCase to SHOUTY_CASE. For the Latin letters, named 'KeyX' in the spec, the KEY_X form conflicts with macro definitions in <linux/input.h>. This change renames DomCode::KEY_X constants to DomCode::US_X to avoid the conflict and to highlight that these are positional codes corresponding to the labels on a US QWERTY layout. (TBR for 15 files with only spelling changes.) R=wez@chromium.org TBR=ben@chromium.org Committed: https://crrev.com/a281bf14844158a68c774a02b960e3c3144b8bd0 Cr-Commit-Position: refs/heads/master@{#368075}

Patch Set 1 #

Patch Set 2 : Address review comments (Wez) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -365 lines) Patch
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 25 chunks +58 lines, -58 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_engine_browsertests.cc View 1 7 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/exo/keyboard_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/normalizing_input_filter_mac_unittest.cc View 1 7 chunks +24 lines, -24 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/chromeos/character_composer_unittest.cc View 1 22 chunks +47 lines, -47 lines 0 comments Download
M ui/events/event.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/keycodes/dom/keycode_converter_data.inc View 1 1 chunk +29 lines, -29 lines 0 comments Download
M ui/events/keycodes/dom_us_layout_data.h View 1 2 chunks +52 lines, -52 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion_unittest.cc View 1 2 chunks +52 lines, -52 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc View 2 chunks +1 line, -7 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.cc View 4 chunks +3 lines, -11 lines 0 comments Download
M ui/events/ozone/layout/keyboard_layout_engine_unittest.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc View 1 10 chunks +20 lines, -20 lines 0 comments Download
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc View 1 12 chunks +20 lines, -20 lines 0 comments Download
M ui/ozone/demo/ozone_demo.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 6 chunks +6 lines, -6 lines 0 comments Download
M ui/views/controls/combobox/combobox_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560293002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560293002/1
4 years, 11 months ago (2016-01-05 23:27:54 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-06 00:38:31 UTC) #4
kpschoedel
+Wez@ for keycode_converter_data.inc in line with discussion on https://codereview.chromium.org/1165223003 and reminded by https://groups.google.com/a/chromium.org/d/msg/chromium-dev/bbkV7DvWs5Q/cH3CF-_TCgAJ +cc dcheng@ ...
4 years, 11 months ago (2016-01-06 16:42:10 UTC) #8
Wez
LGTM I'm not keen on the DomCode::X form - DOM uses the KeyX form to ...
4 years, 11 months ago (2016-01-06 21:52:49 UTC) #9
kpschoedel
On 2016/01/06 21:52:49, Wez wrote: > I'm not keen on the DomCode::X form - DOM ...
4 years, 11 months ago (2016-01-06 22:27:56 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560293002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560293002/20001
4 years, 11 months ago (2016-01-06 22:29:00 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 00:44:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560293002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560293002/20001
4 years, 11 months ago (2016-01-07 15:03:24 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-07 15:08:29 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-07 15:09:30 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a281bf14844158a68c774a02b960e3c3144b8bd0
Cr-Commit-Position: refs/heads/master@{#368075}

Powered by Google App Engine
This is Rietveld 408576698