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

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

Issue 2872983002: Reuse AXPlatformNodeBase::Init to set owner. (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_com_win.cc » ('j') | 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) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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_COM_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <oleacc.h> 10 #include <oleacc.h>
11 #include <stddef.h> 11 #include <stddef.h>
12 #include <stdint.h> 12 #include <stdint.h>
13 #include <vector> 13 #include <vector>
14 14
15 #include <UIAutomationCore.h> 15 #include <UIAutomationCore.h>
16 16
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "content/browser/accessibility/browser_accessibility.h" 20 #include "content/browser/accessibility/browser_accessibility.h"
21 #include "content/browser/accessibility/browser_accessibility_win.h" 21 #include "content/browser/accessibility/browser_accessibility_win.h"
22 #include "content/common/content_export.h" 22 #include "content/common/content_export.h"
23 #include "third_party/iaccessible2/ia2_api_all.h" 23 #include "third_party/iaccessible2/ia2_api_all.h"
24 #include "third_party/isimpledom/ISimpleDOMDocument.h" 24 #include "third_party/isimpledom/ISimpleDOMDocument.h"
25 #include "third_party/isimpledom/ISimpleDOMNode.h" 25 #include "third_party/isimpledom/ISimpleDOMNode.h"
26 #include "third_party/isimpledom/ISimpleDOMText.h" 26 #include "third_party/isimpledom/ISimpleDOMText.h"
27 #include "ui/accessibility/platform/ax_platform_node_delegate.h"
27 #include "ui/accessibility/platform/ax_platform_node_win.h" 28 #include "ui/accessibility/platform/ax_platform_node_win.h"
28 29
29 namespace ui { 30 namespace ui {
30 enum TextBoundaryDirection; 31 enum TextBoundaryDirection;
31 enum TextBoundaryType; 32 enum TextBoundaryType;
32 } 33 }
33 34
34 namespace content { 35 namespace content {
35 class BrowserAccessibilityWin; 36 class BrowserAccessibilityWin;
36 class BrowserAccessibilityRelation; 37 class BrowserAccessibilityRelation;
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 // Setter and getter for the browser accessibility owner 745 // Setter and getter for the browser accessibility owner
745 BrowserAccessibilityWin* GetOwner() const { return owner_; } 746 BrowserAccessibilityWin* GetOwner() const { return owner_; }
746 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } 747 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; }
747 748
748 BrowserAccessibilityManager* Manager() const; 749 BrowserAccessibilityManager* Manager() const;
749 750
750 // 751 //
751 // AXPlatformNode overrides 752 // AXPlatformNode overrides
752 // 753 //
753 void Destroy() override; 754 void Destroy() override;
755 void Init(ui::AXPlatformNodeDelegate* delegate) override;
754 756
755 // Returns the IA2 text attributes for this object. 757 // Returns the IA2 text attributes for this object.
756 std::vector<base::string16> ComputeTextAttributes() const; 758 std::vector<base::string16> ComputeTextAttributes() const;
757 759
758 // Add one to the reference count and return the same object. Always 760 // Add one to the reference count and return the same object. Always
759 // use this method when returning a BrowserAccessibilityComWin object as 761 // use this method when returning a BrowserAccessibilityComWin object as
760 // an output parameter to a COM interface, never use it otherwise. 762 // an output parameter to a COM interface, never use it otherwise.
761 BrowserAccessibilityComWin* NewReference(); 763 BrowserAccessibilityComWin* NewReference();
762 764
763 // Returns a list of IA2 attributes indicating the offsets in the text of a 765 // Returns a list of IA2 attributes indicating the offsets in the text of a
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 980
979 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); 981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin);
980 }; 982 };
981 983
982 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( 984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin(
983 BrowserAccessibility* obj); 985 BrowserAccessibility* obj);
984 986
985 } // namespace content 987 } // namespace content
986 988
987 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_com_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698