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

Side by Side Diff: ui/views/controls/focus_ring.h

Issue 2383243002: Refactor MdFocusRing to make it easier to reuse on other controls. (Closed)
Patch Set: explicit onfocus 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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
sky 2016/10/03 23:53:15 Don't forget header guards.
Evan Stade 2016/10/04 01:04:55 Done.
5 #include "ui/views/view.h"
6
7 namespace views {
8
9 // FocusRing is a View that is designed to act as an indicator of focus for its
10 // parent. It is a stand-alone view that paints to a layer which extends beyond
11 // the bounds of its parent view.
12 class FocusRing : public View {
13 public:
14 FocusRing();
15 ~FocusRing() override;
16
17 // View:
18 bool CanProcessEventsWithinSubtree() const override;
19 void Layout() override;
20 void OnPaint(gfx::Canvas* canvas) override;
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(FocusRing);
24 };
25
26 } // views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698