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

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

Issue 2340503002: Fix appearance of disabled VectorIconButtons. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | ui/views/controls/button/vector_icon_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/controls/button/image_button.h" 9 #include "ui/views/controls/button/image_button.h"
10 10
(...skipping 10 matching lines...) Expand all
21 class VIEWS_EXPORT VectorIconButton : public views::ImageButton { 21 class VIEWS_EXPORT VectorIconButton : public views::ImageButton {
22 public: 22 public:
23 explicit VectorIconButton(VectorIconButtonDelegate* delegate); 23 explicit VectorIconButton(VectorIconButtonDelegate* delegate);
24 ~VectorIconButton() override; 24 ~VectorIconButton() override;
25 25
26 // Sets the icon to display and provides a callback which should return the 26 // Sets the icon to display and provides a callback which should return the
27 // text color from which to derive this icon's color. 27 // text color from which to derive this icon's color.
28 void SetIcon(gfx::VectorIconId id); 28 void SetIcon(gfx::VectorIconId id);
29 29
30 // views::ImageButton: 30 // views::ImageButton:
31 void OnEnabledChanged() override;
32 void OnThemeChanged() override; 31 void OnThemeChanged() override;
33 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 32 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
34 33
35 private: 34 private:
36 VectorIconButtonDelegate* delegate_; 35 VectorIconButtonDelegate* delegate_;
37 gfx::VectorIconId id_; 36 gfx::VectorIconId id_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(VectorIconButton); 38 DISALLOW_COPY_AND_ASSIGN(VectorIconButton);
40 }; 39 };
41 40
42 } // namespace views 41 } // namespace views
43 42
44 #endif // UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_ 43 #endif // UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/button/vector_icon_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698