| Index: chrome/browser/chromeos/ui/focus_ring_layer.h
|
| diff --git a/chrome/browser/chromeos/ui/focus_ring_layer.h b/chrome/browser/chromeos/ui/focus_ring_layer.h
|
| index 0b178136ae45d11dc8f49706e7ef430aee0ea9a5..acf2737cfd2501aa7ba3be593a5a469354327d51 100644
|
| --- a/chrome/browser/chromeos/ui/focus_ring_layer.h
|
| +++ b/chrome/browser/chromeos/ui/focus_ring_layer.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/time/time.h"
|
| +#include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/compositor/compositor_animation_observer.h"
|
| #include "ui/compositor/layer_delegate.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| @@ -52,6 +53,10 @@ class FocusRingLayer : public ui::LayerDelegate,
|
| // Set the layer's opacity.
|
| void SetOpacity(float opacity);
|
|
|
| + // Set a custom color, or reset to the default.
|
| + void SetColor(SkColor color);
|
| + void ResetColor();
|
| +
|
| ui::Layer* layer() { return layer_.get(); }
|
| aura::Window* root_window() { return root_window_; }
|
|
|
| @@ -63,6 +68,9 @@ class FocusRingLayer : public ui::LayerDelegate,
|
| const char* layer_name,
|
| const gfx::Rect& bounds);
|
|
|
| + bool has_custom_color() { return has_custom_color_; }
|
| + SkColor custom_color() { return custom_color_; }
|
| +
|
| private:
|
| // ui::LayerDelegate overrides:
|
| void OnPaintLayer(const ui::PaintContext& context) override;
|
| @@ -86,6 +94,9 @@ class FocusRingLayer : public ui::LayerDelegate,
|
| // coordinates.
|
| gfx::Rect focus_ring_;
|
|
|
| + bool has_custom_color_;
|
| + SkColor custom_color_;
|
| +
|
| // The compositor associated with this layer.
|
| ui::Compositor* compositor_;
|
|
|
|
|