OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_UI_ACCESSIBILITY_FOCUS_RING_LAYER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_UI_ACCESSIBILITY_FOCUS_RING_LAYER_H_ | |
7 | |
8 #include "chrome/browser/chromeos/ui/accessibility_focus_ring.h" | |
9 #include "chrome/browser/chromeos/ui/focus_ring_layer.h" | |
10 | |
11 namespace ui { | |
12 class Layer; | |
xiyuan
2014/09/11 21:56:05
This can go too.
dmazzoni
2014/09/11 22:14:38
Done.
| |
13 } | |
14 | |
15 namespace chromeos { | |
16 | |
17 // A subclass of FocusRingLayer intended for use by ChromeVox; it supports | |
18 // nonrectangular focus rings in order to highlight groups of elements or | |
19 // a range of text on a page. | |
20 class AccessibilityFocusRingLayer : public FocusRingLayer { | |
21 public: | |
22 explicit AccessibilityFocusRingLayer(FocusRingLayerDelegate* delegate); | |
23 virtual ~AccessibilityFocusRingLayer(); | |
24 | |
25 // Create the layer and update its bounds and position in the hierarchy. | |
26 void Set(const AccessibilityFocusRing& ring); | |
27 | |
28 private: | |
29 // ui::LayerDelegate overrides: | |
30 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; | |
31 | |
32 // The outline of the current focus ring. | |
33 AccessibilityFocusRing ring_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(AccessibilityFocusRingLayer); | |
36 }; | |
37 | |
38 } // namespace chromeos | |
39 | |
40 #endif // CHROME_BROWSER_CHROMEOS_UI_ACCESSIBILITY_FOCUS_RING_LAYER_H_ | |
OLD | NEW |