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

Issue 1422513006: Simplify TouchAction enum to be a simple bit flag (Closed)

Created:
5 years, 2 months ago by Rick Byers
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, jdduke+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify TouchAction enum to be a simple bit flag Originally I used the value 0 for the default touch-action value (TouchActionAuto). But as touch-action has expanded, it would be a lot more convenient if we used a pure bit field (where "auto" was all flags set, and "none" was 0). This was hard to change before the blink merge, but is now pretty easy. BUG=None Committed: https://crrev.com/a8b478daf9eef9e4f8e1ba21327c081b0301945e Cr-Commit-Position: refs/heads/master@{#357111}

Patch Set 1 #

Patch Set 2 : Fix windows build warning #

Total comments: 8

Patch Set 3 : Fix computed style / layout tests and CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -102 lines) Patch
M content/browser/renderer_host/input/touch_action_filter.cc View 1 6 chunks +8 lines, -21 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter_unittest.cc View 5 chunks +14 lines, -22 lines 0 comments Download
M content/common/input/touch_action.h View 1 2 1 chunk +30 lines, -11 lines 0 comments Download
M content/renderer/render_widget.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/input/TouchActionUtil.cpp View 2 chunks +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebTouchAction.h View 1 2 1 chunk +12 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
Rick Byers
Dave, PTAL (no rush)
5 years, 1 month ago (2015-10-26 18:33:13 UTC) #2
dtapuska
On 2015/10/26 18:33:13, Rick Byers wrote: > Dave, PTAL (no rush) lgtm; this makes much ...
5 years, 1 month ago (2015-10-29 14:05:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422513006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422513006/20001
5 years, 1 month ago (2015-10-29 14:08:26 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113875)
5 years, 1 month ago (2015-10-29 14:15:56 UTC) #7
Rick Byers
Hah, oh right - the repos are merged now so there may be OWNERS I ...
5 years, 1 month ago (2015-10-29 15:17:42 UTC) #11
Rick Byers
dtapuska: looks like I missed a couple changes on the blink sides (sorry, thought I ...
5 years, 1 month ago (2015-10-29 15:29:44 UTC) #12
tdresser
content/browser/renderer_host/input/ LGTM. https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode37 content/common/input/touch_action.h:37: // All actions are pemitted (the default). ...
5 years, 1 month ago (2015-10-29 15:30:34 UTC) #15
tdresser
content/browser/renderer_host/input/ LGTM. https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode37 content/common/input/touch_action.h:37: // All actions are pemitted (the default). ...
5 years, 1 month ago (2015-10-29 15:30:35 UTC) #16
dtapuska
https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode45 content/common/input/touch_action.h:45: return TouchAction(int(a) | int(b)); On 2015/10/29 15:30:35, tdresser (OOO ...
5 years, 1 month ago (2015-10-29 15:38:45 UTC) #17
jdduke (slow)
https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode13 content/common/input/touch_action.h:13: enum TouchAction { Now that we expose proper operators, ...
5 years, 1 month ago (2015-10-29 15:40:26 UTC) #19
jdduke (slow)
https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode13 content/common/input/touch_action.h:13: enum TouchAction { On 2015/10/29 15:40:26, jdduke (slow) wrote: ...
5 years, 1 month ago (2015-10-29 15:41:44 UTC) #20
tdresser
https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h File content/common/input/touch_action.h (right): https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode13 content/common/input/touch_action.h:13: enum TouchAction { On 2015/10/29 15:40:26, jdduke (slow) wrote: ...
5 years, 1 month ago (2015-10-29 15:43:00 UTC) #21
Rick Byers
On 2015/10/29 15:43:00, tdresser wrote: > https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h > File content/common/input/touch_action.h (right): > > https://codereview.chromium.org/1422513006/diff/20001/content/common/input/touch_action.h#newcode13 > ...
5 years, 1 month ago (2015-10-29 16:50:36 UTC) #22
tdresser
On 2015/10/29 16:50:36, Rick Byers wrote: > On 2015/10/29 15:43:00, tdresser wrote: > > > ...
5 years, 1 month ago (2015-10-29 16:53:08 UTC) #23
Rick Byers
Ok Dave, I've fixed the layout tests - PTAL at the diff between PS1 and ...
5 years, 1 month ago (2015-10-29 16:56:04 UTC) #24
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-10-30 11:57:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422513006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422513006/40001
5 years, 1 month ago (2015-10-30 14:15:57 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-30 15:49:17 UTC) #29
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 15:50:15 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a8b478daf9eef9e4f8e1ba21327c081b0301945e
Cr-Commit-Position: refs/heads/master@{#357111}

Powered by Google App Engine
This is Rietveld 408576698