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

Unified Diff: ui/views/style/mac/dialog_button_border_mac.h

Issue 1569113002: MacViews: Style BUTTON_STYLE buttons using the "modern" UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/style/mac/combobox_background_mac.cc ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/mac/dialog_button_border_mac.h
diff --git a/ui/views/style/mac/dialog_button_border_mac.h b/ui/views/style/mac/dialog_button_border_mac.h
index a45bc48e574c3faa9778e04a4144c395c577dd23..b10b09a9b7ee76a5a8db1186e46c4aa4ad0638ff 100644
--- a/ui/views/style/mac/dialog_button_border_mac.h
+++ b/ui/views/style/mac/dialog_button_border_mac.h
@@ -11,6 +11,8 @@
namespace views {
+class LabelButton;
+
// Skia port of the default button style used for dialogs on Chrome Mac.
// Originally provided by ConstrainedWindowButton, which used Quartz-backed
// Cocoa drawing routines.
@@ -19,6 +21,9 @@ class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
DialogButtonBorderMac();
~DialogButtonBorderMac() override;
+ // Whether the given |button| should get a highlighted background.
+ static bool ShouldRenderDefault(const LabelButton& button);
+
// views::Border:
void Paint(const View& view, gfx::Canvas* canvas) override;
gfx::Size GetMinimumSize() const override;
« no previous file with comments | « ui/views/style/mac/combobox_background_mac.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