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

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

Issue 537893003: Move view logic from FocusRingLayer to FocusRingController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus_ring_0_force_on
Patch Set: Address nits 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/focus_ring_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/focus_ring_controller.h
diff --git a/chrome/browser/chromeos/ui/focus_ring_controller.h b/chrome/browser/chromeos/ui/focus_ring_controller.h
index 70a1700bb3b7acc471ec55aa9f86d481118c9430..50644cbcf498d12700852d9eb0cc546461492cd0 100644
--- a/chrome/browser/chromeos/ui/focus_ring_controller.h
+++ b/chrome/browser/chromeos/ui/focus_ring_controller.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/chromeos/ui/focus_ring_layer.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/focus/widget_focus_manager.h"
#include "ui/views/widget/widget_observer.h"
@@ -18,12 +19,11 @@ class Widget;
namespace chromeos {
-class FocusRingLayer;
-
// FocusRingController manages the focus ring around the focused view. It
// follows widget focus change and update the focus ring layer when the focused
// view of the widget changes.
-class FocusRingController : public views::WidgetObserver,
+class FocusRingController : public FocusRingLayerDelegate,
+ public views::WidgetObserver,
public views::WidgetFocusChangeListener,
public views::FocusChangeListener {
public:
@@ -34,6 +34,9 @@ class FocusRingController : public views::WidgetObserver,
void SetVisible(bool visible);
private:
+ // FocusRingLayerDelegate.
+ virtual void OnDeviceScaleFactorChanged() OVERRIDE;
+
// Sets the focused |widget|.
void SetWidget(views::Widget* widget);
« no previous file with comments | « no previous file | chrome/browser/chromeos/ui/focus_ring_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698