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

Side by Side Diff: ui/views/controls/button/label_button.h

Issue 1958453002: Update some secondary UI buttons to MD style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONTROLS_BUTTON_LABEL_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; 105 void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
106 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; 106 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
107 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override; 107 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override;
108 std::unique_ptr<InkDropHover> CreateInkDropHover() const override; 108 std::unique_ptr<InkDropHover> CreateInkDropHover() const override;
109 gfx::Point GetInkDropCenter() const override; 109 gfx::Point GetInkDropCenter() const override;
110 110
111 protected: 111 protected:
112 ImageView* image() const { return image_; } 112 ImageView* image() const { return image_; }
113 Label* label() const { return label_; } 113 Label* label() const { return label_; }
114 114
115 bool explicitly_set_normal_color() {
sadrul 2016/05/11 04:56:59 const
Evan Stade 2016/05/11 22:06:18 Done.
116 return explicitly_set_colors_[STATE_NORMAL];
117 }
118
115 // Returns the available area for the label and image. Subclasses can change 119 // Returns the available area for the label and image. Subclasses can change
116 // these bounds if they need room to do manual painting. 120 // these bounds if they need room to do manual painting.
117 virtual gfx::Rect GetChildAreaBounds(); 121 virtual gfx::Rect GetChildAreaBounds();
118 122
119 // View: 123 // View:
120 void OnPaint(gfx::Canvas* canvas) override; 124 void OnPaint(gfx::Canvas* canvas) override;
121 void OnFocus() override; 125 void OnFocus() override;
122 void OnBlur() override; 126 void OnBlur() override;
123 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 127 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
124 128
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 gfx::HorizontalAlignment horizontal_alignment_; 230 gfx::HorizontalAlignment horizontal_alignment_;
227 231
228 std::unique_ptr<Painter> focus_painter_; 232 std::unique_ptr<Painter> focus_painter_;
229 233
230 DISALLOW_COPY_AND_ASSIGN(LabelButton); 234 DISALLOW_COPY_AND_ASSIGN(LabelButton);
231 }; 235 };
232 236
233 } // namespace views 237 } // namespace views
234 238
235 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 239 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/website_settings_popup_view.cc ('k') | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698