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

Side by Side Diff: chrome/browser/ui/libgtkui/gtk_ui.h

Issue 2579683002: LibGtkUi: Partition NativeThemeGtk into NativeThemeGtk2 and NativeThemeGtk3 (Closed)
Patch Set: Fix lsan error Created 4 years 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 | « chrome/browser/ui/libgtkui/BUILD.gn ('k') | chrome/browser/ui/libgtkui/gtk_ui.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 (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_LIBGTKUI_GTK_UI_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK_UI_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK_UI_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Returns a tint that's the color of the current highlighted text in an 139 // Returns a tint that's the color of the current highlighted text in an
140 // entry. 140 // entry.
141 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const; 141 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const;
142 142
143 // Gets a color for the background of the prominent button. 143 // Gets a color for the background of the prominent button.
144 SkColor GetProminentButtonBgColor(int gtk_state) const; 144 SkColor GetProminentButtonBgColor(int gtk_state) const;
145 145
146 // Updates |default_font_*|. 146 // Updates |default_font_*|.
147 void UpdateDefaultFont(); 147 void UpdateDefaultFont();
148 148
149 // Gets a ChromeGtkFrame theme color; returns true on success. No-op on gtk3.
150 bool GetChromeStyleColor(const char* sytle_property,
151 SkColor* ret_color) const;
152
153 ui::NativeTheme* native_theme_;
154
155 // A GtkWindow object with the class "ChromeGtkFrame".
156 GtkWidget* fake_window_;
157
149 // Colors calculated by LoadGtkValues() that are given to the 158 // Colors calculated by LoadGtkValues() that are given to the
150 // caller while |use_gtk_| is true. 159 // caller while |use_gtk_| is true.
151 ColorMap colors_; 160 ColorMap colors_;
152 161
153 // Colors used to tint certain icons. 162 // Colors used to tint certain icons.
154 color_utils::HSL button_tint_; 163 color_utils::HSL button_tint_;
155 color_utils::HSL entry_tint_; 164 color_utils::HSL entry_tint_;
156 color_utils::HSL selected_entry_tint_; 165 color_utils::HSL selected_entry_tint_;
157 166
158 // Colors that we pass to WebKit. These are generated each time the theme 167 // Colors that we pass to WebKit. These are generated each time the theme
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } // namespace libgtkui 216 } // namespace libgtkui
208 217
209 // Access point to the GTK2 desktop system. This should be the only symbol that 218 // Access point to the GTK2 desktop system. This should be the only symbol that
210 // is exported in the library; everything else should be used through the 219 // is exported in the library; everything else should be used through the
211 // interface, because eventually this .so will be loaded through dlopen at 220 // interface, because eventually this .so will be loaded through dlopen at
212 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 221 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
213 // QT or whatever. 222 // QT or whatever.
214 LIBGTKUI_EXPORT views::LinuxUI* BuildGtk2UI(); 223 LIBGTKUI_EXPORT views::LinuxUI* BuildGtk2UI();
215 224
216 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_UI_H_ 225 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/BUILD.gn ('k') | chrome/browser/ui/libgtkui/gtk_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698