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

Side by Side Diff: ui/views/style/mac/dialog_button_border_mac.h

Issue 2358913006: views: remove PlatformStyle::CreateLabelButtonBorder (Closed)
Patch Set: remove DialogButtonBorderMac too 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 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.
4
5 #ifndef UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
6 #define UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
7
8 #include "base/macros.h"
9 #include "ui/views/controls/button/label_button_border.h"
10 #include "ui/views/views_export.h"
11
12 namespace views {
13
14 class LabelButton;
15
16 // Skia port of the default button style used for dialogs on Chrome Mac.
17 // Originally provided by ConstrainedWindowButton, which used Quartz-backed
18 // Cocoa drawing routines.
19 class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
20 public:
21 DialogButtonBorderMac();
22 ~DialogButtonBorderMac() override;
23
24 // Whether the given |button| should get a highlighted background.
25 static bool ShouldRenderDefault(const LabelButton& button);
26
27 // views::Border:
28 void Paint(const View& view, gfx::Canvas* canvas) override;
29 gfx::Size GetMinimumSize() const override;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(DialogButtonBorderMac);
33 };
34
35 } // namespace views
36
37 #endif // UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698