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

Side by Side Diff: ui/views/controls/link.h

Issue 2389453002: Remove IsModeMaterial checks in ui/views/ (Closed)
Patch Set: oops Created 4 years, 2 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_LINK_H_ 5 #ifndef UI_VIEWS_CONTROLS_LINK_H_
6 #define UI_VIEWS_CONTROLS_LINK_H_ 6 #define UI_VIEWS_CONTROLS_LINK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; 45 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override;
46 void GetAccessibleState(ui::AXViewState* state) override; 46 void GetAccessibleState(ui::AXViewState* state) override;
47 void OnEnabledChanged() override; 47 void OnEnabledChanged() override;
48 void OnFocus() override; 48 void OnFocus() override;
49 void OnBlur() override; 49 void OnBlur() override;
50 void SetFontList(const gfx::FontList& font_list) override; 50 void SetFontList(const gfx::FontList& font_list) override;
51 void SetText(const base::string16& text) override; 51 void SetText(const base::string16& text) override;
52 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 52 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
53 void SetEnabledColor(SkColor color) override; 53 void SetEnabledColor(SkColor color) override;
54 54
55 void SetPressedColor(SkColor color); 55 // TODO(estade): almost all the places that call this pass false. With
56 // TODO(estade): almost all the places that call this pass false. With MD, 56 // Harmony, false is already the default so those callsites can be removed.
57 // false is already the default so those callsites can be removed.
58 void SetUnderline(bool underline); 57 void SetUnderline(bool underline);
59 58
60 static const char kViewClassName[]; 59 static const char kViewClassName[];
61 60
62 private: 61 private:
63 void Init(); 62 void Init();
64 63
65 void SetPressed(bool pressed); 64 void SetPressed(bool pressed);
66 65
67 void RecalculateFont(); 66 void RecalculateFont();
(...skipping 18 matching lines...) Expand all
86 // The color when the link is pressed. 85 // The color when the link is pressed.
87 SkColor requested_pressed_color_; 86 SkColor requested_pressed_color_;
88 bool requested_pressed_color_set_; 87 bool requested_pressed_color_set_;
89 88
90 DISALLOW_COPY_AND_ASSIGN(Link); 89 DISALLOW_COPY_AND_ASSIGN(Link);
91 }; 90 };
92 91
93 } // namespace views 92 } // namespace views
94 93
95 #endif // UI_VIEWS_CONTROLS_LINK_H_ 94 #endif // UI_VIEWS_CONTROLS_LINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698