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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 2731973002: Assert when loading websites in windows build (debug mode) (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/accessibility/browser_accessibility_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 5432 matching lines...) Expand 10 before | Expand all | Expand 10 after
5443 if (aria_role == L"group" || html_tag == L"fieldset") { 5443 if (aria_role == L"group" || html_tag == L"fieldset") {
5444 ia_role = ROLE_SYSTEM_GROUPING; 5444 ia_role = ROLE_SYSTEM_GROUPING;
5445 } else if (html_tag == L"li") { 5445 } else if (html_tag == L"li") {
5446 ia_role = ROLE_SYSTEM_LISTITEM; 5446 ia_role = ROLE_SYSTEM_LISTITEM;
5447 ia_state |= STATE_SYSTEM_READONLY; 5447 ia_state |= STATE_SYSTEM_READONLY;
5448 } else { 5448 } else {
5449 if (html_tag.empty()) 5449 if (html_tag.empty())
5450 role_name = L"div"; 5450 role_name = L"div";
5451 else 5451 else
5452 role_name = html_tag; 5452 role_name = html_tag;
5453 ia_role = ROLE_SYSTEM_GROUPING;
dmazzoni 2017/03/10 21:35:23 This one shouldn't be needed because the role_name
josyula 2017/03/11 05:38:17 Ok.
5453 ia2_role = IA2_ROLE_SECTION; 5454 ia2_role = IA2_ROLE_SECTION;
5454 } 5455 }
5455 break; 5456 break;
5456 } 5457 }
5457 case ui::AX_ROLE_HEADING: 5458 case ui::AX_ROLE_HEADING:
5458 role_name = html_tag; 5459 role_name = html_tag;
5460 ia_role = ROLE_SYSTEM_GROUPING;
dmazzoni 2017/03/10 21:35:23 How about we do this only if html_tag is empty. N
josyula 2017/03/11 05:38:17 Ok sure. I will incorporate it.
5459 ia2_role = IA2_ROLE_HEADING; 5461 ia2_role = IA2_ROLE_HEADING;
5460 break; 5462 break;
5461 case ui::AX_ROLE_IFRAME: 5463 case ui::AX_ROLE_IFRAME:
5462 ia_role = ROLE_SYSTEM_DOCUMENT; 5464 ia_role = ROLE_SYSTEM_DOCUMENT;
5463 ia2_role = IA2_ROLE_INTERNAL_FRAME; 5465 ia2_role = IA2_ROLE_INTERNAL_FRAME;
5464 ia_state = STATE_SYSTEM_READONLY; 5466 ia_state = STATE_SYSTEM_READONLY;
5465 break; 5467 break;
5466 case ui::AX_ROLE_IFRAME_PRESENTATIONAL: 5468 case ui::AX_ROLE_IFRAME_PRESENTATIONAL:
5467 ia_role = ROLE_SYSTEM_GROUPING; 5469 ia_role = ROLE_SYSTEM_GROUPING;
5468 break; 5470 break;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
5786 return static_cast<BrowserAccessibilityWin*>(obj); 5788 return static_cast<BrowserAccessibilityWin*>(obj);
5787 } 5789 }
5788 5790
5789 const BrowserAccessibilityWin* 5791 const BrowserAccessibilityWin*
5790 ToBrowserAccessibilityWin(const BrowserAccessibility* obj) { 5792 ToBrowserAccessibilityWin(const BrowserAccessibility* obj) {
5791 DCHECK(!obj || obj->IsNative()); 5793 DCHECK(!obj || obj->IsNative());
5792 return static_cast<const BrowserAccessibilityWin*>(obj); 5794 return static_cast<const BrowserAccessibilityWin*>(obj);
5793 } 5795 }
5794 5796
5795 } // namespace content 5797 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698