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

Unified Diff: ui/views/controls/focus_ring.cc

Issue 2411693002: views: add focus ring to TreeView (Closed)
Patch Set: rebase Created 4 years, 2 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 | « ui/views/controls/focus_ring.h ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/focus_ring.cc
diff --git a/ui/views/controls/focus_ring.cc b/ui/views/controls/focus_ring.cc
index af52a5090debfa36e7a587eff803153c3d3b8197..29adfa0e2207a619b1310df98c028961dec85b54 100644
--- a/ui/views/controls/focus_ring.cc
+++ b/ui/views/controls/focus_ring.cc
@@ -34,8 +34,8 @@ FocusRing* GetFocusRing(views::View* parent) {
const char FocusRing::kViewClassName[] = "FocusRing";
// static
-void FocusRing::Install(views::View* parent,
- ui::NativeTheme::ColorId override_color_id) {
+views::View* FocusRing::Install(views::View* parent,
+ ui::NativeTheme::ColorId override_color_id) {
DCHECK(parent->HasFocus());
FocusRing* ring = GetFocusRing(parent);
if (!ring) {
@@ -45,6 +45,7 @@ void FocusRing::Install(views::View* parent,
ring->override_color_id_ = override_color_id;
ring->Layout();
ring->SchedulePaint();
+ return ring;
}
// static
« no previous file with comments | « ui/views/controls/focus_ring.h ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698