summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/focusable_rounded_border_mac.h
blob: 1821cd414da90e293b57b5cbe499e6c270d833e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_
#define UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_

#include "base/macros.h"
#include "ui/views/controls/focusable_border.h"
#include "ui/views/view.h"

namespace views {

// A Border that changes colors in accordance with the system color scheme when
// the View it borders is focused.
class FocusableRoundedBorder : public FocusableBorder {
 public:
  FocusableRoundedBorder();
  ~FocusableRoundedBorder() override;

  // Border:
  void Paint(const View& view, gfx::Canvas* canvas) override;

 private:
  DISALLOW_COPY_AND_ASSIGN(FocusableRoundedBorder);
};

}  // namespace views

#endif  // UI_VIEWS_CONTROLS_FOCUSABLE_ROUNDED_BORDER_H_