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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_ 5 #ifndef UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
6 #define UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_ 6 #define UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/controls/button/label_button_border.h" 9 #include "ui/views/controls/button/label_button_border.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 class CustomButton;
15
14 // Skia port of the default button style used for dialogs on Chrome Mac. 16 // Skia port of the default button style used for dialogs on Chrome Mac.
15 // Originally provided by ConstrainedWindowButton, which used Quartz-backed 17 // Originally provided by ConstrainedWindowButton, which used Quartz-backed
16 // Cocoa drawing routines. 18 // Cocoa drawing routines.
17 class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder { 19 class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
18 public: 20 public:
21 // Whether the given |button| should get a highlighted background.
22 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.
23
19 DialogButtonBorderMac(); 24 DialogButtonBorderMac();
20 ~DialogButtonBorderMac() override; 25 ~DialogButtonBorderMac() override;
21 26
22 // views::Border: 27 // views::Border:
23 void Paint(const View& view, gfx::Canvas* canvas) override; 28 void Paint(const View& view, gfx::Canvas* canvas) override;
24 gfx::Size GetMinimumSize() const override; 29 gfx::Size GetMinimumSize() const override;
25 30
26 private: 31 private:
27 DISALLOW_COPY_AND_ASSIGN(DialogButtonBorderMac); 32 DISALLOW_COPY_AND_ASSIGN(DialogButtonBorderMac);
28 }; 33 };
29 34
30 } // namespace views 35 } // namespace views
31 36
32 #endif // UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_ 37 #endif // UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698