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

Unified Diff: ui/views/controls/button/custom_button.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/controls/button/custom_button.h
diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h
index d91d3e68771cd9ec6ec873891541b048ec1437a2..c478b9f1dd730d873e4106e0578f22095aa5fff6 100644
--- a/ui/views/controls/button/custom_button.h
+++ b/ui/views/controls/button/custom_button.h
@@ -16,6 +16,7 @@
namespace views {
class InkDropDelegate;
+class LabelButton;
// A button with custom rendering. The base of ImageButton and LabelButton.
// Note that this type of button is not focusable by default and will not be
@@ -34,6 +35,8 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate {
static const CustomButton* AsCustomButton(const views::View* view);
static CustomButton* AsCustomButton(views::View* view);
+ static const LabelButton* AsLabelButton(const views::View* view);
sky 2016/04/07 17:16:31 I am not a fan of using the view class name for RT
tapted 2016/04/08 08:35:33 There's not really any logic that depends on the R
+ static LabelButton* AsLabelButton(views::View* view);
~CustomButton() override;

Powered by Google App Engine
This is Rietveld 408576698