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

Side by Side Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (Closed)
Patch Set: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // background color. 144 // background color.
145 void GetNormalButtonTintHSL(color_utils::HSL* tint) const; 145 void GetNormalButtonTintHSL(color_utils::HSL* tint) const;
146 146
147 // Returns a tint that's the color of the current normal text in an entry. 147 // Returns a tint that's the color of the current normal text in an entry.
148 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const; 148 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const;
149 149
150 // Returns a tint that's the color of the current highlighted text in an 150 // Returns a tint that's the color of the current highlighted text in an
151 // entry. 151 // entry.
152 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const; 152 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const;
153 153
154 // Gets a color for the background of the call to action button. 154 // Gets a color for the background of the prominent button.
155 SkColor CallToActionBgColor(int gtk_state) const; 155 SkColor ProminentButtonBgColor(int gtk_state) const;
sky 2016/09/27 17:38:32 optional: prefix with Get (just like GetSelectedEn
shrike 2016/09/27 17:52:51 Done.
156 156
157 // Updates |default_font_*|. 157 // Updates |default_font_*|.
158 void UpdateDefaultFont(); 158 void UpdateDefaultFont();
159 159
160 // Colors calculated by LoadGtkValues() that are given to the 160 // Colors calculated by LoadGtkValues() that are given to the
161 // caller while |use_gtk_| is true. 161 // caller while |use_gtk_| is true.
162 ColorMap colors_; 162 ColorMap colors_;
163 163
164 // Colors used to tint certain icons. 164 // Colors used to tint certain icons.
165 color_utils::HSL button_tint_; 165 color_utils::HSL button_tint_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } // namespace libgtk2ui 217 } // namespace libgtk2ui
218 218
219 // Access point to the GTK2 desktop system. This should be the only symbol that 219 // Access point to the GTK2 desktop system. This should be the only symbol that
220 // is exported in the library; everything else should be used through the 220 // is exported in the library; everything else should be used through the
221 // interface, because eventually this .so will be loaded through dlopen at 221 // interface, because eventually this .so will be loaded through dlopen at
222 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 222 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
223 // QT or whatever. 223 // QT or whatever.
224 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); 224 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI();
225 225
226 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 226 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698