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

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

Issue 2789963002: Accessible bounds should include device scale factor on Windows (again) (Closed)
Patch Set: Fix const Created 3 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
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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 return win_attributes_->offset_to_text_attributes; 743 return win_attributes_->offset_to_text_attributes;
744 } 744 }
745 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { 745 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const {
746 return win_attributes_->hyperlink_offset_to_index; 746 return win_attributes_->hyperlink_offset_to_index;
747 } 747 }
748 std::vector<int32_t>& hyperlinks() const { 748 std::vector<int32_t>& hyperlinks() const {
749 return win_attributes_->hyperlinks; 749 return win_attributes_->hyperlinks;
750 } 750 }
751 751
752 private: 752 private:
753 // Override the bounds calculation to take the device scale factor
754 // into account, which doesn't need to be done on all platforms.
755 CONTENT_EXPORT gfx::Rect RelativeToAbsoluteBounds(
756 gfx::RectF bounds,
757 bool frame_only) const override;
758
759 // Returns the IA2 text attributes for this object. 753 // Returns the IA2 text attributes for this object.
760 std::vector<base::string16> ComputeTextAttributes() const; 754 std::vector<base::string16> ComputeTextAttributes() const;
761 755
762 // Add one to the reference count and return the same object. Always 756 // Add one to the reference count and return the same object. Always
763 // use this method when returning a BrowserAccessibilityWin object as 757 // use this method when returning a BrowserAccessibilityWin object as
764 // an output parameter to a COM interface, never use it otherwise. 758 // an output parameter to a COM interface, never use it otherwise.
765 BrowserAccessibilityWin* NewReference(); 759 BrowserAccessibilityWin* NewReference();
766 760
767 // Returns a list of IA2 attributes indicating the offsets in the text of a 761 // Returns a list of IA2 attributes indicating the offsets in the text of a
768 // leaf object, such as a text field or static text, where spelling errors are 762 // leaf object, such as a text field or static text, where spelling errors are
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 977
984 CONTENT_EXPORT BrowserAccessibilityWin* 978 CONTENT_EXPORT BrowserAccessibilityWin*
985 ToBrowserAccessibilityWin(BrowserAccessibility* obj); 979 ToBrowserAccessibilityWin(BrowserAccessibility* obj);
986 980
987 CONTENT_EXPORT const BrowserAccessibilityWin* 981 CONTENT_EXPORT const BrowserAccessibilityWin*
988 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); 982 ToBrowserAccessibilityWin(const BrowserAccessibility* obj);
989 983
990 } // namespace content 984 } // namespace content
991 985
992 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 986 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698