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

Unified Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 2759903002: Accessible bounds should include device scale factor on Windows. (Closed)
Patch Set: Rename to use_custom_device_scale_factor_for_testing Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_win.h
diff --git a/content/browser/accessibility/browser_accessibility_win.h b/content/browser/accessibility/browser_accessibility_win.h
index 7b454d6c75e33a2ba9071146eeb0d81f7e300248..18a73ac6d835730539e2c56eafd6e65ca58fb9fa 100644
--- a/content/browser/accessibility/browser_accessibility_win.h
+++ b/content/browser/accessibility/browser_accessibility_win.h
@@ -750,6 +750,12 @@ BrowserAccessibilityWin
}
private:
+ // Override the bounds calculation to take the device scale factor
+ // into account, which doesn't need to be done on all platforms.
+ CONTENT_EXPORT gfx::Rect RelativeToAbsoluteBounds(
+ gfx::RectF bounds,
+ bool frame_only) const override;
+
// Returns the IA2 text attributes for this object.
std::vector<base::string16> ComputeTextAttributes() const;

Powered by Google App Engine
This is Rietveld 408576698