| Index: chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc
|
| diff --git a/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc b/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc
|
| index f71c9c808eab08535be7b6137e8c55822f3531fa..6d042839f6e1c3aa1710ba22ff546856c5f06a61 100644
|
| --- a/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc
|
| +++ b/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc
|
| @@ -88,6 +88,11 @@ void AccessibilityFocusRingController::SetFocusRing(
|
| UpdateFocusRingsFromFocusRects();
|
| }
|
|
|
| +void AccessibilityFocusRingController::HideFocusRing() {
|
| + focus_rects_.clear();
|
| + UpdateFocusRingsFromFocusRects();
|
| +}
|
| +
|
| void AccessibilityFocusRingController::UpdateFocusRingsFromFocusRects() {
|
| previous_focus_rings_.swap(focus_rings_);
|
| focus_rings_.clear();
|
| @@ -133,6 +138,10 @@ void AccessibilityFocusRingController::SetCursorRing(
|
| OnLayerChange(&cursor_animation_info_);
|
| }
|
|
|
| +void AccessibilityFocusRingController::HideCursorRing() {
|
| + cursor_layer_.reset();
|
| +}
|
| +
|
| void AccessibilityFocusRingController::SetCaretRing(
|
| const gfx::Point& location) {
|
| caret_location_ = location;
|
| @@ -146,6 +155,10 @@ void AccessibilityFocusRingController::SetCaretRing(
|
| OnLayerChange(&caret_animation_info_);
|
| }
|
|
|
| +void AccessibilityFocusRingController::HideCaretRing() {
|
| + caret_layer_.reset();
|
| +}
|
| +
|
| void AccessibilityFocusRingController::SetNoFadeForTesting() {
|
| focus_animation_info_.fade_in_time = base::TimeDelta();
|
| focus_animation_info_.fade_out_time = base::TimeDelta::FromHours(1);
|
|
|