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

Issue 1604053002: cc: Fix enum style conformance in InputHandler. (Closed)

Created:
4 years, 11 months ago by danakj
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, cc-bugs_chromium.org, chromium-reviews, dglazkov+blink, piman, tdresser+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix enum style conformance in InputHandler. This fixes enums to be always SHOUT_CASE, uses LAST_FOO instead of FOO_COUNT to avoid NOTREACHED() cases in switches, and moves the bitflags "enum" MainThreadScrollingReason into its own file, making it a struct (for scoping) with a set of constants inside instead, not an enum. R=aelias@chromium.org, tdresser@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/3590476fbc8b9d8680bbc0a033025ab6daa5fe26 Cr-Commit-Position: refs/heads/master@{#370780}

Patch Set 1 #

Total comments: 4

Patch Set 2 : enumname: fixandrebase #

Patch Set 3 : enumname: . #

Patch Set 4 : enumname: more-rebase #

Patch Set 5 : enumname: enumcompare-rebase #

Patch Set 6 : enumname: fixcasts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -200 lines) Patch
M cc/blink/web_layer_impl.cc View 1 2 3 4 5 2 chunks +28 lines, -30 lines 0 comments Download
M cc/input/input_handler.h View 1 3 chunks +6 lines, -38 lines 0 comments Download
A cc/input/main_thread_scrolling_reason.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +2 lines, -3 lines 0 comments Download
M cc/layers/layer.cc View 5 chunks +7 lines, -6 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/layer_impl.cc View 8 chunks +14 lines, -8 lines 0 comments Download
M cc/layers/layer_unittest.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 11 chunks +28 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 35 chunks +57 lines, -49 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 5 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/public/platform/WebMainThreadScrollingReason.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 1 2 3 11 chunks +20 lines, -26 lines 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (15 generated)
danakj
I wanted to delete WebMainThreadScrollingReason too, but it's used in core/ which I don't think ...
4 years, 11 months ago (2016-01-19 23:24:23 UTC) #2
danakj
On 2016/01/19 23:24:23, danakj wrote: > I wanted to delete WebMainThreadScrollingReason too, but it's used ...
4 years, 11 months ago (2016-01-19 23:24:53 UTC) #3
aelias_OOO_until_Jul13
lgtm
4 years, 11 months ago (2016-01-19 23:40:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604053002/1
4 years, 11 months ago (2016-01-19 23:44:15 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/113114) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-20 01:00:11 UTC) #8
tdresser
Thanks a lot! Incidentally https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/public/web/WebTouchAction.h&q=webtou&sq=package:chromium&l=1 is what I modeled much of this style from. https://codereview.chromium.org/1604053002/diff/1/cc/input/main_thread_scrolling_reason.h ...
4 years, 11 months ago (2016-01-20 15:17:27 UTC) #9
tdresser
On 2016/01/20 15:17:27, tdresser wrote: > Thanks a lot! > > Incidentally > https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/public/web/WebTouchAction.h&q=webtou&sq=package:chromium&l=1 > ...
4 years, 11 months ago (2016-01-20 15:17:34 UTC) #10
tdresser
On 2016/01/20 15:17:34, tdresser wrote: > On 2016/01/20 15:17:27, tdresser wrote: > > Thanks a ...
4 years, 11 months ago (2016-01-20 15:39:49 UTC) #11
danakj
https://codereview.chromium.org/1604053002/diff/1/cc/input/main_thread_scrolling_reason.h File cc/input/main_thread_scrolling_reason.h (right): https://codereview.chromium.org/1604053002/diff/1/cc/input/main_thread_scrolling_reason.h#newcode26 cc/input/main_thread_scrolling_reason.h:26: enum : uint32_t { kMaxNonTransientScrollingReason = kPageOverlay }; On ...
4 years, 11 months ago (2016-01-20 21:00:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604053002/40001
4 years, 11 months ago (2016-01-20 22:03:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/10652)
4 years, 11 months ago (2016-01-20 23:26:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604053002/60001
4 years, 11 months ago (2016-01-20 23:38:22 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/10743)
4 years, 11 months ago (2016-01-21 03:34:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604053002/80001
4 years, 11 months ago (2016-01-21 19:06:29 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/11158) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-21 19:18:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604053002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604053002/100001
4 years, 11 months ago (2016-01-21 19:22:28 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 11 months ago (2016-01-21 20:49:48 UTC) #31
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 20:50:36 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3590476fbc8b9d8680bbc0a033025ab6daa5fe26
Cr-Commit-Position: refs/heads/master@{#370780}

Powered by Google App Engine
This is Rietveld 408576698