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

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

Issue 272573003: Add hack so VoiceOver speaks updates to injected live regions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "content/browser/accessibility/browser_accessibility_manager.h" 10 #include "content/browser/accessibility/browser_accessibility_manager.h"
(...skipping 11 matching lines...) Expand all
22 22
23 static ui::AXTreeUpdate GetEmptyDocument(); 23 static ui::AXTreeUpdate GetEmptyDocument();
24 24
25 // Implementation of BrowserAccessibilityManager. 25 // Implementation of BrowserAccessibilityManager.
26 virtual void NotifyAccessibilityEvent( 26 virtual void NotifyAccessibilityEvent(
27 ui::AXEvent event_type, BrowserAccessibility* node) OVERRIDE; 27 ui::AXEvent event_type, BrowserAccessibility* node) OVERRIDE;
28 28
29 NSView* parent_view() { return parent_view_; } 29 NSView* parent_view() { return parent_view_; }
30 30
31 private: 31 private:
32 virtual void OnNodeCreationFinished(ui::AXNode* node) OVERRIDE;
33 virtual void OnUpdateFinished() OVERRIDE;
34
32 // This gives BrowserAccessibilityManager::Create access to the class 35 // This gives BrowserAccessibilityManager::Create access to the class
33 // constructor. 36 // constructor.
34 friend class BrowserAccessibilityManager; 37 friend class BrowserAccessibilityManager;
35 38
36 NSView* parent_view_; 39 NSView* parent_view_;
37 40
41 bool created_live_region_;
42
38 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); 43 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
39 }; 44 };
40 45
41 } 46 }
42 47
43 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 48 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698