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

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, desktop linux 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
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..8e639d5c0a65b7c36bf85c5093077d2358076231 100644
--- a/ui/views/style/mac/dialog_button_border_mac.h
+++ b/ui/views/style/mac/dialog_button_border_mac.h
@@ -11,11 +11,16 @@
namespace views {
+class CustomButton;
+
// Skia port of the default button style used for dialogs on Chrome Mac.
// Originally provided by ConstrainedWindowButton, which used Quartz-backed
// Cocoa drawing routines.
class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
public:
+ // Whether the given |button| should get a highlighted background.
+ static bool ShowsDefault(const CustomButton& button);
sky 2016/04/07 17:16:31 static function are after constructor/destructor.
tapted 2016/04/08 08:35:33 Done x2.
+
DialogButtonBorderMac();
~DialogButtonBorderMac() override;

Powered by Google App Engine
This is Rietveld 408576698