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

Unified Diff: chrome/browser/chromeos/ui/accessibility_focus_ring.h

Issue 602813003: Animate the accessibility focus ring and fix some minor visual issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus_ring_in_chromevox
Patch Set: Fix unit tests Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/ui/accessibility_focus_ring.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/accessibility_focus_ring.h
diff --git a/chrome/browser/chromeos/ui/accessibility_focus_ring.h b/chrome/browser/chromeos/ui/accessibility_focus_ring.h
index 3185d31e3ff1fb9b9d6a21b901fe3aa57efea7c1..04a3be0d8f277ec45da47fe0756f8c2ae6b73870 100644
--- a/chrome/browser/chromeos/ui/accessibility_focus_ring.h
+++ b/chrome/browser/chromeos/ui/accessibility_focus_ring.h
@@ -72,6 +72,13 @@ struct AccessibilityFocusRing {
static AccessibilityFocusRing CreateWithRect(
const gfx::Rect& bounds, int margin);
+ // Returns a ring where 0.0 returns r1, 1.0 returns r2, and any number
+ // in-between interpolates linearly between them.
+ static AccessibilityFocusRing Interpolate(
+ const AccessibilityFocusRing& r1,
+ const AccessibilityFocusRing& r2,
+ double fraction);
+
// Construct an AccessibilityFocusRing that outlines a paragraph-shaped
// object.
static AccessibilityFocusRing CreateWithParagraphShape(
@@ -80,8 +87,9 @@ struct AccessibilityFocusRing {
const gfx::Rect& bottom_line,
int margin);
- gfx::Point points[36];
gfx::Rect GetBounds() const;
+
+ gfx::Point points[36];
};
} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/chromeos/ui/accessibility_focus_ring.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698