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

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

Issue 224803005: Refactor BrowserAccessibility to prepare for AXNode (re-land) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gtk Created 6 years, 8 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_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_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>
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 // Accessors. 765 // Accessors.
766 int32 ia_role() const { return ia_role_; } 766 int32 ia_role() const { return ia_role_; }
767 int32 ia_state() const { return ia_state_; } 767 int32 ia_state() const { return ia_state_; }
768 const base::string16& role_name() const { return role_name_; } 768 const base::string16& role_name() const { return role_name_; }
769 int32 ia2_role() const { return ia2_role_; } 769 int32 ia2_role() const { return ia2_role_; }
770 int32 ia2_state() const { return ia2_state_; } 770 int32 ia2_state() const { return ia2_state_; }
771 const std::vector<base::string16>& ia2_attributes() const { 771 const std::vector<base::string16>& ia2_attributes() const {
772 return ia2_attributes_; 772 return ia2_attributes_;
773 } 773 }
774 774
775 // BrowserAccessibility::role is shadowed by IAccessible2::role, so
776 // we provide an alias for it.
777 int32 blink_role() const { return BrowserAccessibility::role(); }
778
779 private: 775 private:
780 // Add one to the reference count and return the same object. Always 776 // Add one to the reference count and return the same object. Always
781 // use this method when returning a BrowserAccessibilityWin object as 777 // use this method when returning a BrowserAccessibilityWin object as
782 // an output parameter to a COM interface, never use it otherwise. 778 // an output parameter to a COM interface, never use it otherwise.
783 BrowserAccessibilityWin* NewReference(); 779 BrowserAccessibilityWin* NewReference();
784 780
785 // Many MSAA methods take a var_id parameter indicating that the operation 781 // Many MSAA methods take a var_id parameter indicating that the operation
786 // should be performed on a particular child ID, rather than this object. 782 // should be performed on a particular child ID, rather than this object.
787 // This method tries to figure out the target object from |var_id| and 783 // This method tries to figure out the target object from |var_id| and
788 // returns a pointer to the target object if it exists, otherwise NULL. 784 // returns a pointer to the target object if it exists, otherwise NULL.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 // Give BrowserAccessibility::Create access to our constructor. 894 // Give BrowserAccessibility::Create access to our constructor.
899 friend class BrowserAccessibility; 895 friend class BrowserAccessibility;
900 friend class BrowserAccessibilityRelation; 896 friend class BrowserAccessibilityRelation;
901 897
902 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 898 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
903 }; 899 };
904 900
905 } // namespace content 901 } // namespace content
906 902
907 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 903 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698