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

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)

Created:
3 years, 10 months ago by dougt
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, nasko+codewatch_chromium.org, jam, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scope and clean up uses of AccessibilityMode. This CL removes the typedef |AccessibilityMode| and instead uses a class which allows us to stop using the all UPPER CASE prefix ACCESSIBILITY_MODE_FLAG_. R=dmazzoni BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2694413006 Cr-Commit-Position: refs/heads/master@{#456614} Committed: https://chromium.googlesource.com/chromium/src/+/cd3dad73b453f8a89731bc2a2cd72f3bd5def991

Patch Set 1 #

Patch Set 2 : build bustage #

Total comments: 9

Patch Set 3 : nits and remove :int specifier #

Patch Set 4 : enum -> class #

Total comments: 26

Patch Set 5 : address comments #

Total comments: 11

Patch Set 6 : #6 #

Total comments: 1

Patch Set 7 : remove kOff #

Total comments: 2

Patch Set 8 : use param traits #

Total comments: 8

Patch Set 9 : use IPC:: in param-traits #

Patch Set 10 : define konstants #

Total comments: 6

Patch Set 11 : merge #

Patch Set 12 : nits #

Patch Set 13 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -423 lines) Patch
M content/browser/accessibility/accessibility_action_browsertest.cc View 1 2 3 4 5 12 chunks +13 lines, -14 lines 0 comments Download
M content/browser/accessibility/accessibility_ipc_error_browsertest.cc View 1 2 3 4 5 5 chunks +17 lines, -21 lines 0 comments Download
M content/browser/accessibility/accessibility_mode_browsertest.cc View 1 2 3 4 5 6 8 chunks +23 lines, -24 lines 0 comments Download
M content/browser/accessibility/accessibility_ui.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +40 lines, -26 lines 0 comments Download
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 5 19 chunks +32 lines, -38 lines 0 comments Download
M content/browser/accessibility/android_granularity_movement_browsertest.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +28 lines, -28 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 6 7 8 9 10 95 chunks +115 lines, -115 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 2 3 4 5 6 1 chunk +3 lines, -7 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/accessibility/hit_testing_browsertest.cc View 1 2 3 4 5 5 chunks +9 lines, -9 lines 0 comments Download
M content/browser/accessibility/touch_accessibility_aura_browsertest.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -5 lines 0 comments Download
A content/common/accessibility_mode.h View 1 2 3 4 5 6 7 8 9 1 chunk +93 lines, -0 lines 0 comments Download
M content/common/accessibility_mode_enums.h View 1 2 3 1 chunk +0 lines, -68 lines 0 comments Download
M content/common/content_param_traits.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/content_param_traits.cc View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -0 lines 0 comments Download
M content/common/frame_message_enums.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -4 lines 0 comments Download
M content/test/accessibility_browser_test_utils.h View 1 2 3 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 109 (63 generated)
dougt
dmazzoni, ptal.
3 years, 10 months ago (2017-02-16 23:58:40 UTC) #8
dmazzoni
lgtm I like it! Much cleaner, the operator overloading is a nice trick. I'll add ...
3 years, 10 months ago (2017-02-17 00:21:51 UTC) #12
dmazzoni
Dana, could you look at just this one file and let us know if you ...
3 years, 10 months ago (2017-02-17 00:23:54 UTC) #13
danakj
https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h File content/common/accessibility_mode_enums.h (right): https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h#newcode8 content/common/accessibility_mode_enums.h:8: enum AccessibilityMode : int { If this were an ...
3 years, 10 months ago (2017-02-17 00:30:39 UTC) #14
danakj
(I'm going to be OOO tomorrow so do what you think best with my advice ...
3 years, 10 months ago (2017-02-17 00:31:27 UTC) #15
aboxhall
On 2017/02/17 00:30:39, danakj wrote: > https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h > File content/common/accessibility_mode_enums.h (right): > > https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h#newcode8 > ...
3 years, 10 months ago (2017-02-17 00:53:34 UTC) #16
dougt
https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h File content/common/accessibility_mode_enums.h (right): https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h#newcode8 content/common/accessibility_mode_enums.h:8: enum AccessibilityMode : int { I do see your ...
3 years, 10 months ago (2017-02-17 17:46:48 UTC) #17
danakj
https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h File content/common/accessibility_mode_enums.h (right): https://codereview.chromium.org/2694413006/diff/20001/content/common/accessibility_mode_enums.h#newcode8 content/common/accessibility_mode_enums.h:8: enum AccessibilityMode : int { On 2017/02/17 17:46:48, dougt ...
3 years, 10 months ago (2017-02-17 17:50:58 UTC) #18
dougt
brettw@ Can you take a look at the changes switch over to the enum AccessibilityMode. ...
3 years, 10 months ago (2017-02-17 22:30:12 UTC) #19
dougt
After discussing with Dana and thinking about it a bit, I do not think enum ...
3 years, 10 months ago (2017-02-22 15:59:49 UTC) #20
danakj
SGTM On Wed, Feb 22, 2017 at 10:59 AM, <dougt@chromium.org> wrote: > After discussing with ...
3 years, 10 months ago (2017-02-22 16:02:46 UTC) #21
dougt
danakj, can you look at this approach?
3 years, 10 months ago (2017-02-22 21:14:19 UTC) #24
danakj
https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h#newcode1 content/common/accessibility_mode.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-22 21:27:56 UTC) #25
aboxhall
https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h#newcode64 content/common/accessibility_mode.h:64: void set(int flag) { flags_ |= flag; } On ...
3 years, 10 months ago (2017-02-22 22:05:50 UTC) #26
danakj
https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h#newcode64 content/common/accessibility_mode.h:64: void set(int flag) { flags_ |= flag; } On ...
3 years, 10 months ago (2017-02-22 22:08:19 UTC) #27
dougt
https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h#newcode1 content/common/accessibility_mode.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-22 22:19:59 UTC) #28
dougt
https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/60001/content/common/accessibility_mode.h#newcode89 content/common/accessibility_mode.h:89: void operator=(int flags) { flags_ = flags; } On ...
3 years, 10 months ago (2017-02-22 22:21:27 UTC) #29
dougt
3 years, 10 months ago (2017-02-22 22:21:28 UTC) #30
danakj
Looks like it didn't upload.
3 years, 10 months ago (2017-02-22 23:42:06 UTC) #31
dougt
dmazzoni, danakj, aboxhall, please take another look.
3 years, 10 months ago (2017-02-23 05:51:29 UTC) #36
dmazzoni
A few minor nits but the main thing I see left is to make more ...
3 years, 9 months ago (2017-02-23 17:08:21 UTC) #39
danakj
I think what you're doing looks good, and aboxhall/dmazonni's feedback is good. Thanks for the ...
3 years, 9 months ago (2017-02-23 21:15:02 UTC) #40
dougt
dmazzoni, danakj, aboxhall, PTAL. Aaron, you make also want to take a look too. https://codereview.chromium.org/2694413006/diff/80001/content/browser/accessibility/accessibility_ui.cc ...
3 years, 9 months ago (2017-02-27 03:12:57 UTC) #45
aleventhal
On 2017/02/27 03:12:57, dougt wrote: > dmazzoni, danakj, aboxhall, PTAL. > > Aaron, you make ...
3 years, 9 months ago (2017-02-27 16:36:12 UTC) #46
dmazzoni
lgtm except for kOff As a compromise maybe something more explicit like kAllModeFlagsOff would be ...
3 years, 9 months ago (2017-02-27 23:54:20 UTC) #47
dougt
dmazzoni, wdyt?
3 years, 9 months ago (2017-02-28 19:06:36 UTC) #53
dmazzoni
lgtm
3 years, 9 months ago (2017-02-28 19:07:50 UTC) #54
dougt
brettw, ptal.
3 years, 9 months ago (2017-02-28 19:30:25 UTC) #56
brettw
lgtm
3 years, 9 months ago (2017-03-03 17:49:12 UTC) #57
dougt
dcheng, PTAL at content/common/frame_manager.h AccessiblityMode use to be a typedef to int. Now it's a ...
3 years, 9 months ago (2017-03-03 18:36:01 UTC) #59
dougt
dcheng, PTAL at content/common/frame_manager.h AccessiblityMode use to be a typedef to int. Now it's a ...
3 years, 9 months ago (2017-03-03 18:36:03 UTC) #60
dcheng
https://codereview.chromium.org/2694413006/diff/120001/content/common/accessibility_mode.h File content/common/accessibility_mode.h (right): https://codereview.chromium.org/2694413006/diff/120001/content/common/accessibility_mode.h#newcode59 content/common/accessibility_mode.h:59: int get_mode() const { return flags_; } FWIW, lower-camel ...
3 years, 9 months ago (2017-03-03 18:43:20 UTC) #61
dougt
On 2017/03/03 18:43:20, dcheng wrote: > https://codereview.chromium.org/2694413006/diff/120001/content/common/accessibility_mode.h > File content/common/accessibility_mode.h (right): > > https://codereview.chromium.org/2694413006/diff/120001/content/common/accessibility_mode.h#newcode59 > ...
3 years, 9 months ago (2017-03-03 18:54:38 UTC) #62
dcheng
On 2017/03/03 18:54:38, dougt wrote: > On 2017/03/03 18:43:20, dcheng wrote: > > > https://codereview.chromium.org/2694413006/diff/120001/content/common/accessibility_mode.h ...
3 years, 9 months ago (2017-03-03 23:57:55 UTC) #63
dougt
dcheng, what do you think about doing something like the following.
3 years, 9 months ago (2017-03-04 04:46:00 UTC) #66
dcheng
https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc#newcode175 content/browser/web_contents/web_contents_impl.cc:175: const AccessibilityMode kAccessibilityModeWebContent( constexpr (I'm a little surprised that ...
3 years, 9 months ago (2017-03-07 08:41:48 UTC) #69
dcheng
Also, for me, it helps if rebases and replies to review comments aren't uploaded in ...
3 years, 9 months ago (2017-03-07 08:42:33 UTC) #70
dougt
On 2017/03/07 08:42:33, dcheng wrote: > Also, for me, it helps if rebases and replies ...
3 years, 9 months ago (2017-03-07 16:50:17 UTC) #72
dougt
dcheng, ptal. https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc#newcode175 content/browser/web_contents/web_contents_impl.cc:175: const AccessibilityMode kAccessibilityModeWebContent( On 2017/03/07 08:41:48, dcheng ...
3 years, 9 months ago (2017-03-07 16:50:46 UTC) #73
dcheng
https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2694413006/diff/140001/content/browser/web_contents/web_contents_impl.cc#newcode175 content/browser/web_contents/web_contents_impl.cc:175: const AccessibilityMode kAccessibilityModeWebContent( On 2017/03/07 16:50:46, dougt wrote: > ...
3 years, 9 months ago (2017-03-07 18:05:13 UTC) #75
dougt
dmazzoni, please take another look. dcheng, ptal.
3 years, 9 months ago (2017-03-09 23:22:24 UTC) #90
dcheng
LGTM
3 years, 9 months ago (2017-03-10 04:16:00 UTC) #93
dmazzoni
still lgtm with nits No need for additional review, it's a pain to keep maintaining ...
3 years, 9 months ago (2017-03-13 22:18:15 UTC) #94
dougt
https://codereview.chromium.org/2694413006/diff/220001/content/common/content_param_traits.cc File content/common/content_param_traits.cc (right): https://codereview.chromium.org/2694413006/diff/220001/content/common/content_param_traits.cc#newcode114 content/common/content_param_traits.cc:114: std::string* l) {} On 2017/03/13 22:18:15, dmazzoni wrote: > ...
3 years, 9 months ago (2017-03-14 03:18:24 UTC) #103
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694413006/280001
3 years, 9 months ago (2017-03-14 03:19:47 UTC) #106
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 03:27:34 UTC) #109
Message was sent while issue was closed.
Committed patchset #13 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/cd3dad73b453f8a89731bc2a2cd7...

Powered by Google App Engine
This is Rietveld 408576698