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

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed)

Created:
7 years, 9 months ago by aboxhall
Modified:
7 years, 9 months ago
Reviewers:
dmazzoni, jam
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, sail+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Move some accessibility interfaces into the content/public API. To facilitate creating the necessary APIs for a chrome://accessibility page, move some accessibility-related methods into the content/public API: - Promote Get/SetAccessibilityMode() from RenderWidgetHostImpl into RenderWidgetHost, and move the AccessibilityMode enum from view_message_enums.h into its own file in content/public/common - Promote Get/SetAccessibilityMode() from BrowserAccessibilityStateImpl into BrowserAccessibilityState (this is the global accessibility state, as opposed to the per-renderer state in RenderWidgetHost) - Create a public interface for what was previous called DumpAccessibilityTreeHelper, now called AccessibilityTreeFormatter BUG=178756

Patch Set 1 #

Patch Set 2 : Move dump_accessibility_tree_helper stuff into content_browser.gypi #

Patch Set 3 : Fix virtual method with no implementation, non-explicit single argument constructor #

Total comments: 6

Patch Set 4 : Move AccessibilityMode into its own header file #

Patch Set 5 : Rename DumpAccessibilityTreeHelper -> AccessibilityTreeFormatterImpl (and add accessibility_mode.h) #

Patch Set 6 : Switch Get/SetAccessibility in RenderWidgetHost* to use AccessibilityMode rather than bool #

Patch Set 7 : Rename From() -> Create() #

Total comments: 10

Patch Set 8 : Address review comments #

Total comments: 7

Patch Set 9 : Addressing jam's comments #

Patch Set 10 : Rename accessibility_test_utils_win to accessibility_tree_formatter_utils_win and move to content/b… #

Patch Set 11 : Remove #include which crept back in" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -918 lines) Patch
M chrome/browser/chrome_browser_application_mac.mm View 1 2 3 4 5 6 7 8 10 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/accessibility/accessibility_tree_formatter_impl.h View 1 2 3 4 5 6 7 5 chunks +21 lines, -19 lines 0 comments Download
A content/browser/accessibility/accessibility_tree_formatter_impl.cc View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download
A + content/browser/accessibility/accessibility_tree_formatter_impl_mac.mm View 1 2 3 4 3 chunks +13 lines, -10 lines 0 comments Download
A + content/browser/accessibility/accessibility_tree_formatter_impl_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -9 lines 0 comments Download
A + content/browser/accessibility/accessibility_tree_formatter_utils_win.h View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/browser/accessibility/accessibility_tree_formatter_utils_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 7 8 8 chunks +21 lines, -19 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper.h View 1 2 3 4 1 chunk +0 lines, -98 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper.cc View 1 2 3 4 1 chunk +0 lines, -89 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_mac.mm View 1 2 3 4 1 chunk +0 lines, -139 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_win.cc View 1 2 3 4 1 chunk +0 lines, -185 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M content/common/view_message_enums.h View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -10 lines 0 comments Download
A content/public/browser/accessibility_tree_formatter.h View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
M content/public/browser/browser_accessibility_state.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
A content/public/common/accessibility_mode.h View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
D content/public/test/accessibility_test_utils_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -26 lines 0 comments Download
D content/public/test/accessibility_test_utils_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -268 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl_params.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dmazzoni
Hmmm, I'm starting to think it'd be cleaner to define AccessibilityMode in a new file ...
7 years, 9 months ago (2013-02-26 22:37:36 UTC) #1
dmazzoni
Also, please create a bug to capture the chrome://accessibility/ work and add more detail to ...
7 years, 9 months ago (2013-02-26 22:38:27 UTC) #2
aboxhall
On 2013/02/26 22:38:27, Dominic Mazzoni wrote: > Also, please create a bug to capture the ...
7 years, 9 months ago (2013-02-27 01:44:04 UTC) #3
aboxhall
https://codereview.chromium.org/12335101/diff/4001/content/browser/accessibility/dump_accessibility_tree_helper.h File content/browser/accessibility/dump_accessibility_tree_helper.h (right): https://codereview.chromium.org/12335101/diff/4001/content/browser/accessibility/dump_accessibility_tree_helper.h#newcode21 content/browser/accessibility/dump_accessibility_tree_helper.h:21: class DumpAccessibilityTreeHelper : public AccessibilityTreeFormatter { On 2013/02/26 22:37:36, ...
7 years, 9 months ago (2013-02-27 01:44:15 UTC) #4
dmazzoni
Add a bug number and another sentence about what this is for to the description, ...
7 years, 9 months ago (2013-02-27 16:41:01 UTC) #5
aboxhall
https://codereview.chromium.org/12335101/diff/15/content/browser/accessibility/accessibility_tree_formatter_impl.h File content/browser/accessibility/accessibility_tree_formatter_impl.h (right): https://codereview.chromium.org/12335101/diff/15/content/browser/accessibility/accessibility_tree_formatter_impl.h#newcode18 content/browser/accessibility/accessibility_tree_formatter_impl.h:18: // A utility class for retrieving platform specific accessibility ...
7 years, 9 months ago (2013-02-27 18:58:50 UTC) #6
dmazzoni
+jam lgtm
7 years, 9 months ago (2013-02-27 19:26:43 UTC) #7
jam
https://codereview.chromium.org/12335101/diff/14016/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/12335101/diff/14016/chrome/browser/chrome_browser_application_mac.mm#newcode23 chrome/browser/chrome_browser_application_mac.mm:23: #include "content/public/common/accessibility_mode.h" nit: this seems redundant since by definition ...
7 years, 9 months ago (2013-02-27 19:35:50 UTC) #8
aboxhall
https://codereview.chromium.org/12335101/diff/14016/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/12335101/diff/14016/chrome/browser/chrome_browser_application_mac.mm#newcode23 chrome/browser/chrome_browser_application_mac.mm:23: #include "content/public/common/accessibility_mode.h" On 2013/02/27 19:35:50, jam wrote: > nit: ...
7 years, 9 months ago (2013-02-27 21:19:58 UTC) #9
aboxhall
Pulled accessibility_test_utils_win over into content/browser/accessibility to make it compile on Windows (and renamed it to ...
7 years, 9 months ago (2013-02-27 22:29:07 UTC) #10
dmazzoni
On 2013/02/27 22:29:07, aboxhall wrote: > Pulled accessibility_test_utils_win over into content/browser/accessibility to > make it ...
7 years, 9 months ago (2013-02-27 22:39:49 UTC) #11
jam
On 2013/02/27 22:39:49, Dominic Mazzoni wrote: > On 2013/02/27 22:29:07, aboxhall wrote: > > Pulled ...
7 years, 9 months ago (2013-02-27 22:50:23 UTC) #12
jam
https://codereview.chromium.org/12335101/diff/14016/content/public/browser/accessibility_tree_formatter.h File content/public/browser/accessibility_tree_formatter.h (right): https://codereview.chromium.org/12335101/diff/14016/content/public/browser/accessibility_tree_formatter.h#newcode1 content/public/browser/accessibility_tree_formatter.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-02-27 22:51:32 UTC) #13
dmazzoni
On 2013/02/27 22:51:32, jam wrote: > you can now implement webui pages inside content (the ...
7 years, 9 months ago (2013-02-27 23:00:13 UTC) #14
jam
On 2013/02/27 23:00:13, Dominic Mazzoni wrote: > On 2013/02/27 22:51:32, jam wrote: > > you ...
7 years, 9 months ago (2013-02-27 23:10:23 UTC) #15
dmazzoni
On 2013/02/27 23:10:23, jam wrote: > > New webui pages are supposed to strongly prefer ...
7 years, 9 months ago (2013-02-27 23:28:03 UTC) #16
jam
7 years, 9 months ago (2013-02-27 23:32:37 UTC) #17
On 2013/02/27 23:28:03, Dominic Mazzoni wrote:
> On 2013/02/27 23:10:23, jam wrote:
> > > New webui pages are supposed to strongly prefer extension APIs
> > > (including private extension APIs as needed) instead of
> > > chrome.send.
> > 
> > oh, this is news to me.
> 
> Apparently multiple security exploits have used chrome.send. :)

I'm still trying to understand this. will all existing webuis be rewritten? If
not, then I'm not sure why this one new webui should have a higher bar
(especially since doing so would mean that it would act unnecessary APIs to the
content api).

> 
> > it seems fine to use this in webui pages that are for chrome.
> > 
> > however webui pages for features that are in content should reside in
content.
> 
> ...then we need a mechanism other than chrome.send to expose features from
> content.
> 
> The number of APIs we need for this feature is small, and they'll be
high-level.
> OK to implement it in Chrome now, exposing some minimal APIs from content, and
> file a bug to port to Content once a secure solution opens up?

A huge amount of effort has gone to keep content api as minimal as possible.
With increasing use of content by other projects, I think it's even more
critical to keep the API small. So I don't want to add stuff to it if it can be
avoided, which in this case it still seems that it can be.

Powered by Google App Engine
This is Rietveld 408576698