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

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

Issue 2401363005: Remove sundry IsModeMaterial checks. (Closed)
Patch Set: remove unused fn 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 gfx::Font::Weight* weight_out, 61 gfx::Font::Weight* weight_out,
62 gfx::FontRenderParams* params_out) const override; 62 gfx::FontRenderParams* params_out) const override;
63 63
64 // ui::ShellDialogLinux: 64 // ui::ShellDialogLinux:
65 ui::SelectFileDialog* CreateSelectFileDialog( 65 ui::SelectFileDialog* CreateSelectFileDialog(
66 ui::SelectFileDialog::Listener* listener, 66 ui::SelectFileDialog::Listener* listener,
67 ui::SelectFilePolicy* policy) const override; 67 ui::SelectFilePolicy* policy) const override;
68 68
69 // ui::LinuxUI: 69 // ui::LinuxUI:
70 void Initialize() override; 70 void Initialize() override;
71 // TODO(varkha): This should not be necessary once Material Design is on
72 // unconditionally.
73 void MaterialDesignControllerReady() override;
74 bool GetTint(int id, color_utils::HSL* tint) const override; 71 bool GetTint(int id, color_utils::HSL* tint) const override;
75 bool GetColor(int id, SkColor* color) const override; 72 bool GetColor(int id, SkColor* color) const override;
76 SkColor GetFocusRingColor() const override; 73 SkColor GetFocusRingColor() const override;
77 SkColor GetThumbActiveColor() const override; 74 SkColor GetThumbActiveColor() const override;
78 SkColor GetThumbInactiveColor() const override; 75 SkColor GetThumbInactiveColor() const override;
79 SkColor GetTrackColor() const override; 76 SkColor GetTrackColor() const override;
80 SkColor GetActiveSelectionBgColor() const override; 77 SkColor GetActiveSelectionBgColor() const override;
81 SkColor GetActiveSelectionFgColor() const override; 78 SkColor GetActiveSelectionFgColor() const override;
82 SkColor GetInactiveSelectionBgColor() const override; 79 SkColor GetInactiveSelectionBgColor() const override;
83 SkColor GetInactiveSelectionFgColor() const override; 80 SkColor GetInactiveSelectionFgColor() const override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // thumb part and of the track colors. 118 // thumb part and of the track colors.
122 void SetScrollbarColors(); 119 void SetScrollbarColors();
123 120
124 // Extracts colors and tints from the GTK theme, both for the 121 // Extracts colors and tints from the GTK theme, both for the
125 // ThemeService interface and the colors we send to webkit. 122 // ThemeService interface and the colors we send to webkit.
126 void LoadGtkValues(); 123 void LoadGtkValues();
127 124
128 // Initialize the Xcursor theme and size with the GTK theme and size. 125 // Initialize the Xcursor theme and size with the GTK theme and size.
129 void LoadCursorTheme(); 126 void LoadCursorTheme();
130 127
131 // Updates colors if necessary after possible modification of command line.
132 // TODO(varkha): This should not be necessary once Material Design is on
133 // unconditionally.
134 void UpdateMaterialDesignColors();
135
136 // Reads in explicit theme frame colors from the ChromeGtkFrame style class 128 // Reads in explicit theme frame colors from the ChromeGtkFrame style class
137 // or generates them per our fallback algorithm. 129 // or generates them per our fallback algorithm.
138 void BuildFrameColors(); 130 void BuildFrameColors();
139 131
140 // Gets a tint which depends on the default for |id| as well as |color|. 132 // Gets a tint which depends on the default for |id| as well as |color|.
141 color_utils::HSL ColorToTint(int id, SkColor color); 133 color_utils::HSL ColorToTint(int id, SkColor color);
142 134
143 // Returns the tint for buttons that contrasts with the normal window 135 // Returns the tint for buttons that contrasts with the normal window
144 // background color. 136 // background color.
145 void GetNormalButtonTintHSL(color_utils::HSL* tint) const; 137 void GetNormalButtonTintHSL(color_utils::HSL* tint) const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } // namespace libgtk2ui 209 } // namespace libgtk2ui
218 210
219 // Access point to the GTK2 desktop system. This should be the only symbol that 211 // 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 212 // is exported in the library; everything else should be used through the
221 // interface, because eventually this .so will be loaded through dlopen at 213 // 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 214 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
223 // QT or whatever. 215 // QT or whatever.
224 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); 216 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI();
225 217
226 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 218 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698