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

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed)

Created:
6 years, 11 months ago by aboxhall
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, jam, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, miu+watch_chromium.org, stevenjb+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@enable
Visibility:
Public.

Description

Switch AccessibilityMode to be a bitmap. This will allow us, in a follow-up CL, to add a new Accessibility mode: AccessibilityModeExtension, which may co-exist with the previously existing modes. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250837

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Address dtseng's comments #

Total comments: 36

Patch Set 3 : dtseng review comments #

Patch Set 4 : Remove SetAccessibilityModeRenderer; addressing other minor comments #

Patch Set 5 : Fix incorrect accessibility mode constant values #

Patch Set 6 : Fix compile error in Android code #

Patch Set 7 : Fix broken logic in android code #

Patch Set 8 : rebase #

Total comments: 2

Patch Set 9 : Set accessibility mode by constant, not unsigned int #

Patch Set 10 : Minor tweak to accessibility_mode_helper.cc #

Patch Set 11 : Tweak AccessibilityModeHelperTest #

Total comments: 12

Patch Set 12 : Removed AccessibilityModeFlagRenderer, etc. #

Total comments: 11

Patch Set 13 : Address (most) review comments #

Patch Set 14 : Modify includes in accessibility_mode_helper #

Patch Set 15 : s/BASE_EXPORT/CONTENT_EXPORT/ in accessibility_mode_helper #

Patch Set 16 : Fix compile/test errors #

Patch Set 17 : Add necessary includes on Windows #

Patch Set 18 : Switch IPC value to be the enum, rather than unsigned int #

Total comments: 2

Patch Set 19 : Rebase and remove debugging cruft #

Patch Set 20 : Switch back to AccessibilityMode enums in accessibility_ui.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -70 lines) Patch
A content/browser/accessibility/accessibility_mode_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +28 lines, -0 lines 0 comments Download
A content/browser/accessibility/accessibility_mode_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/accessibility/accessibility_mode_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +35 lines, -0 lines 0 comments Download
M content/browser/accessibility/accessibility_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +17 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +76 lines, -27 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -3 lines 0 comments Download
content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +15 lines, -2 lines 0 comments Download
content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +17 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M content/common/view_message_enums.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -10 lines 0 comments Download
content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/browser_accessibility_state.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -3 lines 0 comments Download
content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/render_view_impl_params.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl_params.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/accessibility_browser_test_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
aboxhall
6 years, 11 months ago (2014-01-23 00:10:39 UTC) #1
aboxhall
6 years, 11 months ago (2014-01-23 00:10:50 UTC) #2
David Tseng
Some initial comments. https://codereview.chromium.org/145283003/diff/60001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/145283003/diff/60001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode96 content/browser/accessibility/browser_accessibility_state_impl.cc:96: SetAccessibilityMode(0); Add a name for 0 ...
6 years, 11 months ago (2014-01-23 18:44:18 UTC) #3
aboxhall
https://codereview.chromium.org/145283003/diff/60001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/145283003/diff/60001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode96 content/browser/accessibility/browser_accessibility_state_impl.cc:96: SetAccessibilityMode(0); On 2014/01/23 18:44:19, David Tseng wrote: > Add ...
6 years, 11 months ago (2014-01-27 18:03:14 UTC) #4
David Tseng
https://codereview.chromium.org/145283003/diff/180001/content/browser/accessibility/accessibility_ui.cc File content/browser/accessibility/accessibility_ui.cc (right): https://codereview.chromium.org/145283003/diff/180001/content/browser/accessibility/accessibility_ui.cc#newcode198 content/browser/accessibility/accessibility_ui.cc:198: unsigned int new_mode = (mode & AccessibilityModeFlagRenderer This whole ...
6 years, 11 months ago (2014-01-27 22:16:05 UTC) #5
aboxhall
Got through some comments, need to go get a bus now. https://codereview.chromium.org/145283003/diff/180001/content/browser/accessibility/accessibility_ui.cc File content/browser/accessibility/accessibility_ui.cc (right): ...
6 years, 11 months ago (2014-01-28 00:18:41 UTC) #6
David Tseng
https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h File content/common/view_message_enums.h (left): https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h#oldcode62 content/common/view_message_enums.h:62: // editable text nodes is sent to the browser ...
6 years, 11 months ago (2014-01-28 00:48:45 UTC) #7
aboxhall
https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h File content/common/view_message_enums.h (left): https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h#oldcode62 content/common/view_message_enums.h:62: // editable text nodes is sent to the browser ...
6 years, 10 months ago (2014-01-28 17:48:26 UTC) #8
aboxhall
+jyasskin@ for C++ style/sanity.
6 years, 10 months ago (2014-01-28 21:39:02 UTC) #9
aboxhall
dtseng, jyasskin: ping?
6 years, 10 months ago (2014-01-29 17:17:11 UTC) #10
David Tseng
https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h File content/common/view_message_enums.h (right): https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h#newcode81 content/common/view_message_enums.h:81: AccessibilityModeEditableTextOnly On 2014/01/28 17:48:26, aboxhall wrote: > On 2014/01/28 ...
6 years, 10 months ago (2014-01-29 17:59:53 UTC) #11
aboxhall
On 2014/01/29 17:59:53, David Tseng wrote: > https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h > File content/common/view_message_enums.h (right): > > https://codereview.chromium.org/145283003/diff/180001/content/common/view_message_enums.h#newcode81 ...
6 years, 10 months ago (2014-01-30 00:43:34 UTC) #12
aboxhall
On 2014/01/30 00:43:34, aboxhall wrote: > On 2014/01/29 17:59:53, David Tseng wrote: > > > ...
6 years, 10 months ago (2014-01-30 00:46:10 UTC) #13
aboxhall
On 2014/01/30 00:46:10, aboxhall wrote: > On 2014/01/30 00:43:34, aboxhall wrote: > > On 2014/01/29 ...
6 years, 10 months ago (2014-01-30 01:09:40 UTC) #14
David Tseng
On 2014/01/30 01:09:40, aboxhall wrote: > On 2014/01/30 00:46:10, aboxhall wrote: > > On 2014/01/30 ...
6 years, 10 months ago (2014-01-30 03:51:39 UTC) #15
aboxhall1
So I think that's the "setting a single flag at a time" option? On Wed, ...
6 years, 10 months ago (2014-01-30 03:56:17 UTC) #16
David Tseng
I would vote for setting a constant at a time (constants being different than flags). ...
6 years, 10 months ago (2014-01-31 18:38:22 UTC) #17
aboxhall
On 2014/01/31 18:38:22, David Tseng wrote: > I would vote for setting a constant at ...
6 years, 10 months ago (2014-02-01 02:18:34 UTC) #18
David Tseng
On Fri, Jan 31, 2014 at 6:18 PM, <aboxhall@chromium.org> wrote: > On 2014/01/31 18:38:22, David ...
6 years, 10 months ago (2014-02-01 02:53:31 UTC) #19
aboxhall
dtseng: I implemented Add/RemoveAccessibilityMode on BrowserAccessibilityStateImpl and RenderWidgetHostImpl; PTAL. https://codereview.chromium.org/145283003/diff/610001/content/common/view_message_enums.h File content/common/view_message_enums.h (right): https://codereview.chromium.org/145283003/diff/610001/content/common/view_message_enums.h#newcode83 content/common/view_message_enums.h:83: ...
6 years, 10 months ago (2014-02-03 23:58:37 UTC) #20
aboxhall
dtseng: I implemented Add/RemoveAccessibilityMode on BrowserAccessibilityStateImpl and RenderWidgetHostImpl; PTAL. https://codereview.chromium.org/145283003/diff/610001/content/common/view_message_enums.h File content/common/view_message_enums.h (right): https://codereview.chromium.org/145283003/diff/610001/content/common/view_message_enums.h#newcode83 content/common/view_message_enums.h:83: ...
6 years, 10 months ago (2014-02-03 23:58:37 UTC) #21
David Tseng
https://codereview.chromium.org/145283003/diff/1100001/content/browser/accessibility/accessibility_mode_helper.cc File content/browser/accessibility/accessibility_mode_helper.cc (right): https://codereview.chromium.org/145283003/diff/1100001/content/browser/accessibility/accessibility_mode_helper.cc#newcode11 content/browser/accessibility/accessibility_mode_helper.cc:11: return to | mode_to_add; Do we want to enforce ...
6 years, 10 months ago (2014-02-04 20:25:51 UTC) #22
aboxhall
The EditableTextOnly issue is really confusing. What I tried to do when I initially created ...
6 years, 10 months ago (2014-02-05 16:02:46 UTC) #23
aboxhall
Ping?
6 years, 10 months ago (2014-02-05 23:17:21 UTC) #24
David Tseng
On Wed, Feb 5, 2014 at 8:02 AM, <aboxhall@chromium.org> wrote: The EditableTextOnly issue is really ...
6 years, 10 months ago (2014-02-06 00:11:47 UTC) #25
aboxhall
Ok, I removed the renderer flag and switch the EditableTextOnly flag to invert its meaning ...
6 years, 10 months ago (2014-02-06 18:27:49 UTC) #26
aboxhall
https://codereview.chromium.org/145283003/diff/1470001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/145283003/diff/1470001/content/renderer/render_view_impl.cc#newcode5181 content/renderer/render_view_impl.cc:5181: if (accessibility_mode_ & AccessibilityModeFlagPlatformFullTree) Open question: what do we ...
6 years, 10 months ago (2014-02-06 18:41:42 UTC) #27
David Tseng
Some more comments. https://codereview.chromium.org/145283003/diff/1470001/content/browser/accessibility/accessibility_mode_helper.cc File content/browser/accessibility/accessibility_mode_helper.cc (right): https://codereview.chromium.org/145283003/diff/1470001/content/browser/accessibility/accessibility_mode_helper.cc#newcode6 content/browser/accessibility/accessibility_mode_helper.cc:6: #include "content/browser/accessibility/accessibility_mode_helper.h" I think this goes ...
6 years, 10 months ago (2014-02-06 19:13:44 UTC) #28
aboxhall
https://codereview.chromium.org/145283003/diff/1470001/content/browser/accessibility/accessibility_mode_helper.cc File content/browser/accessibility/accessibility_mode_helper.cc (right): https://codereview.chromium.org/145283003/diff/1470001/content/browser/accessibility/accessibility_mode_helper.cc#newcode6 content/browser/accessibility/accessibility_mode_helper.cc:6: #include "content/browser/accessibility/accessibility_mode_helper.h" On 2014/02/06 19:13:44, David Tseng wrote: > ...
6 years, 10 months ago (2014-02-06 21:04:11 UTC) #29
David Tseng
lgtm
6 years, 10 months ago (2014-02-06 23:47:06 UTC) #30
jochen (gone - plz use gerrit)
I wonder whether you should introduce a new class instead of using a raw integer? ...
6 years, 10 months ago (2014-02-10 12:40:51 UTC) #31
aboxhall
On 2014/02/10 12:40:51, jochen wrote: > I wonder whether you should introduce a new class ...
6 years, 10 months ago (2014-02-11 21:25:16 UTC) #32
jochen (gone - plz use gerrit)
lgtm please have someone from the security team look at the ipc bits https://codereview.chromium.org/145283003/diff/1870001/content/public/browser/browser_thread.h File ...
6 years, 10 months ago (2014-02-12 09:56:06 UTC) #33
aboxhall
https://codereview.chromium.org/145283003/diff/1870001/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): https://codereview.chromium.org/145283003/diff/1870001/content/public/browser/browser_thread.h#newcode62 content/public/browser/browser_thread.h:62: UI, // 0 On 2014/02/12 09:56:07, jochen wrote: > ...
6 years, 10 months ago (2014-02-12 18:16:56 UTC) #34
meacer
On 2014/02/12 18:16:56, aboxhall wrote: > https://codereview.chromium.org/145283003/diff/1870001/content/public/browser/browser_thread.h > File content/public/browser/browser_thread.h (right): > > https://codereview.chromium.org/145283003/diff/1870001/content/public/browser/browser_thread.h#newcode62 > ...
6 years, 10 months ago (2014-02-12 18:38:01 UTC) #35
aboxhall
The CQ bit was checked by aboxhall@chromium.org
6 years, 10 months ago (2014-02-12 18:57:21 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/145283003/1980001
6 years, 10 months ago (2014-02-12 19:00:10 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 20:34:30 UTC) #38
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262718
6 years, 10 months ago (2014-02-12 20:34:31 UTC) #39
aboxhall
The CQ bit was checked by aboxhall@chromium.org
6 years, 10 months ago (2014-02-12 21:45:55 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/145283003/1980001
6 years, 10 months ago (2014-02-12 21:48:23 UTC) #41
commit-bot: I haz the power
6 years, 10 months ago (2014-02-12 23:29:01 UTC) #42
Message was sent while issue was closed.
Change committed as 250837

Powered by Google App Engine
This is Rietveld 408576698