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

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

Issue 2447523002: [ash-md] Added different highlighting modes to the InkDropImpl. (Closed)
Patch Set: Fixed compile errors. Created 4 years, 1 month 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_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/optional.h" 10 #include "base/optional.h"
(...skipping 21 matching lines...) Expand all
32 // See |bg_color_override_|. 32 // See |bg_color_override_|.
33 void SetBgColorOverride(const base::Optional<SkColor>& color); 33 void SetBgColorOverride(const base::Optional<SkColor>& color);
34 34
35 // View: 35 // View:
36 void OnPaintBackground(gfx::Canvas* canvas) override; 36 void OnPaintBackground(gfx::Canvas* canvas) override;
37 37
38 // LabelButton: 38 // LabelButton:
39 void OnFocus() override; 39 void OnFocus() override;
40 void OnBlur() override; 40 void OnBlur() override;
41 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 41 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
42 std::unique_ptr<InkDrop> CreateInkDrop() override;
42 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; 43 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
43 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() 44 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
44 const override; 45 const override;
45 SkColor GetInkDropBaseColor() const override; 46 SkColor GetInkDropBaseColor() const override;
46 bool ShouldShowInkDropForFocus() const override; 47 bool ShouldShowInkDropForFocus() const override;
47 void SetEnabledTextColors(SkColor color) override; 48 void SetEnabledTextColors(SkColor color) override;
48 void SetText(const base::string16& text) override; 49 void SetText(const base::string16& text) override;
49 void AdjustFontSize(int size_delta) override; 50 void AdjustFontSize(int size_delta) override;
50 void UpdateStyleToIndicateDefaultStatus() override; 51 void UpdateStyleToIndicateDefaultStatus() override;
51 void StateChanged() override; 52 void StateChanged() override;
(...skipping 13 matching lines...) Expand all
65 66
66 // When set, this provides the background color. 67 // When set, this provides the background color.
67 base::Optional<SkColor> bg_color_override_; 68 base::Optional<SkColor> bg_color_override_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(MdTextButton); 70 DISALLOW_COPY_AND_ASSIGN(MdTextButton);
70 }; 71 };
71 72
72 } // namespace views 73 } // namespace views
73 74
74 #endif // UI_VIEWS_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_ 75 #endif // UI_VIEWS_CONTROLS_BUTTON_MD_TEXT_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698