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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_mac.mm

Issue 2102663002: Fix Mac accessibility window attribute inside child frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToBrowserAccessibilityManagerMac Created 4 years, 5 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 | « content/browser/accessibility/browser_accessibility_manager.h ('k') | 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_manager_mac.h" 5 #include "content/browser/accessibility/browser_accessibility_manager_mac.h"
6 6
7 #import "base/mac/mac_util.h" 7 #import "base/mac/mac_util.h"
8 #import "base/mac/sdk_forward_declarations.h" 8 #import "base/mac/sdk_forward_declarations.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // static 99 // static
100 BrowserAccessibilityManager* BrowserAccessibilityManager::Create( 100 BrowserAccessibilityManager* BrowserAccessibilityManager::Create(
101 const ui::AXTreeUpdate& initial_tree, 101 const ui::AXTreeUpdate& initial_tree,
102 BrowserAccessibilityDelegate* delegate, 102 BrowserAccessibilityDelegate* delegate,
103 BrowserAccessibilityFactory* factory) { 103 BrowserAccessibilityFactory* factory) {
104 return new BrowserAccessibilityManagerMac( 104 return new BrowserAccessibilityManagerMac(
105 NULL, initial_tree, delegate, factory); 105 NULL, initial_tree, delegate, factory);
106 } 106 }
107 107
108 BrowserAccessibilityManagerMac*
109 BrowserAccessibilityManager::ToBrowserAccessibilityManagerMac() {
110 return static_cast<BrowserAccessibilityManagerMac*>(this);
111 }
112
108 BrowserAccessibilityManagerMac::BrowserAccessibilityManagerMac( 113 BrowserAccessibilityManagerMac::BrowserAccessibilityManagerMac(
109 NSView* parent_view, 114 NSView* parent_view,
110 const ui::AXTreeUpdate& initial_tree, 115 const ui::AXTreeUpdate& initial_tree,
111 BrowserAccessibilityDelegate* delegate, 116 BrowserAccessibilityDelegate* delegate,
112 BrowserAccessibilityFactory* factory) 117 BrowserAccessibilityFactory* factory)
113 : BrowserAccessibilityManager(delegate, factory), 118 : BrowserAccessibilityManager(delegate, factory),
114 parent_view_(parent_view) { 119 parent_view_(parent_view) {
115 Initialize(initial_tree); 120 Initialize(initial_tree);
116 } 121 }
117 122
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 461 }
457 462
458 return @{ 463 return @{
459 NSAccessibilityTextStateChangeTypeKey : @(AXTextStateChangeTypeEdit), 464 NSAccessibilityTextStateChangeTypeKey : @(AXTextStateChangeTypeEdit),
460 NSAccessibilityTextChangeValues : changes, 465 NSAccessibilityTextChangeValues : changes,
461 NSAccessibilityTextChangeElement : native_node 466 NSAccessibilityTextChangeElement : native_node
462 }; 467 };
463 } 468 }
464 469
465 } // namespace content 470 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698