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

Issue 1105008: Allow Extensions to have MSAA information (Closed)

Created:
10 years, 9 months ago by Mohamed Mansour
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Jonas Klink (Google)
Visibility:
Public.

Description

Allow Extensions to have MSAA information. The whole extension shelf and its items were missing MSAA information. Some of them were uninitialized due to the custom components not having any AccessibleRole. Some extensions have no name, this could happen where the user didn't put a name for their browser action in the manifest. If such case happens, we will use the extension name itself. BUG=36289 TEST=Extension shelf now has MSAA information according to Inspect32. Screenshot available on the issue tracker. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42289

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 7 chunks +37 lines, -1 line 6 comments Download
M views/controls/resize_gripper.h View 2 chunks +6 lines, -0 lines 0 comments Download
M views/controls/resize_gripper.cc View 2 chunks +20 lines, -1 line 2 comments Download

Messages

Total messages: 10 (0 generated)
Mohamed Mansour
Hi Chris, would you mind reviewing this for me? Small change that exposes MSAA information ...
10 years, 9 months ago (2010-03-20 15:46:04 UTC) #1
Finnur
LGTM On 2010/03/20 15:46:04, Mohamed Mansour wrote: > Hi Chris, would you mind reviewing this ...
10 years, 9 months ago (2010-03-20 17:05:17 UTC) #2
tfarina (gmail-do not use)
http://codereview.chromium.org/1105008/diff/1/3 File chrome/browser/views/browser_actions_container.cc (right): http://codereview.chromium.org/1105008/diff/1/3#newcode314 chrome/browser/views/browser_actions_container.cc:314: *role = AccessibilityTypes::ROLE_GROUPING; nit: could you add the following ...
10 years, 9 months ago (2010-03-20 19:47:20 UTC) #3
Finnur
No, Thiago. It may seem counter-intuitive, but these types of checks are frowned upon in ...
10 years, 9 months ago (2010-03-20 20:36:18 UTC) #4
tfarina (gmail-do not use)
On 2010/03/20 20:36:18, Finnur wrote: > No, Thiago. It may seem counter-intuitive, but these types ...
10 years, 9 months ago (2010-03-20 20:39:49 UTC) #5
tfarina (gmail-do not use)
On 2010/03/20 20:39:49, tfarina wrote: > On 2010/03/20 20:36:18, Finnur wrote: > > No, Thiago. ...
10 years, 9 months ago (2010-03-20 20:41:47 UTC) #6
Finnur
You may disagree with it, but this is a conscious decision we made early on ...
10 years, 9 months ago (2010-03-20 20:42:56 UTC) #7
Chris Guillory
LGTM
10 years, 9 months ago (2010-03-22 20:32:06 UTC) #8
M-A Ruel
http://codereview.chromium.org/1105008/diff/1/3 File chrome/browser/views/browser_actions_container.cc (right): http://codereview.chromium.org/1105008/diff/1/3#newcode313 chrome/browser/views/browser_actions_container.cc:313: DCHECK(role); drive-by: you should have removed the DCHECK and ...
10 years, 9 months ago (2010-03-23 00:35:49 UTC) #9
Finnur
10 years, 9 months ago (2010-03-23 00:44:03 UTC) #10
I agree with you on the DCHECK, but this function is an override from View, so
changing the return value is not an option unless we change it everywhere. 

See:
http://src.chromium.org/viewvc/chrome/trunk/src/views/view.h?revision=42239&v...


On 2010/03/23 00:35:49, Marc-Antoine Ruel wrote:
> http://codereview.chromium.org/1105008/diff/1/3
> File chrome/browser/views/browser_actions_container.cc (right):
> 
> http://codereview.chromium.org/1105008/diff/1/3#newcode313
> chrome/browser/views/browser_actions_container.cc:313: DCHECK(role);
> drive-by:
> you should have removed the DCHECK and set the return value to void. There's
> nothing the caller can do on the return value and the DCHECK doesn't add
> anything.
> 
> http://codereview.chromium.org/1105008/diff/1/3#newcode318
> chrome/browser/views/browser_actions_container.cc:318: bool
> BrowserActionView::GetAccessibleName(std::wstring* name) {
> Same.

Powered by Google App Engine
This is Rietveld 408576698