OLD | NEW |
| (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 | |
5 #ifndef UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_ | |
6 #define UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/views/controls/focusable_border.h" | |
10 #include "ui/views/view.h" | |
11 | |
12 namespace views { | |
13 | |
14 // A Border that changes colors in accordance with the system color scheme when | |
15 // the View it borders is focused. | |
16 class FocusableRoundedBorder : public FocusableBorder { | |
17 public: | |
18 FocusableRoundedBorder(); | |
19 ~FocusableRoundedBorder() override; | |
20 | |
21 // Border: | |
22 void Paint(const View& view, gfx::Canvas* canvas) override; | |
23 | |
24 private: | |
25 DISALLOW_COPY_AND_ASSIGN(FocusableRoundedBorder); | |
26 }; | |
27 | |
28 } // namespace views | |
29 | |
30 #endif // UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_ | |
OLD | NEW |