Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / style / mac / dialog_button_border_mac.h
bloba45bc48e574c3faa9778e04a4144c395c577dd23
1 // Copyright 2015 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.
5 #ifndef UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
6 #define UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
8 #include "base/macros.h"
9 #include "ui/views/controls/button/label_button_border.h"
10 #include "ui/views/views_export.h"
12 namespace views {
14 // Skia port of the default button style used for dialogs on Chrome Mac.
15 // Originally provided by ConstrainedWindowButton, which used Quartz-backed
16 // Cocoa drawing routines.
17 class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
18 public:
19 DialogButtonBorderMac();
20 ~DialogButtonBorderMac() override;
22 // views::Border:
23 void Paint(const View& view, gfx::Canvas* canvas) override;
24 gfx::Size GetMinimumSize() const override;
26 private:
27 DISALLOW_COPY_AND_ASSIGN(DialogButtonBorderMac);
30 } // namespace views
32 #endif // UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_