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

Side by Side Diff: chrome/browser/gtk/gtk_theme_provider.h

Issue 159143: GTK Themes: Get text color from a label object; this should fix some theme text problems. (Closed)
Patch Set: Created 11 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_GTK_THEME_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
6 #define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ 6 #define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/browser_theme_provider.h" 10 #include "chrome/browser/browser_theme_provider.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const skia::HSL& default_tint); 83 const skia::HSL& default_tint);
84 84
85 // A notification from the GtkChromeButton GObject destructor that we should 85 // A notification from the GtkChromeButton GObject destructor that we should
86 // remove it from our internal list. 86 // remove it from our internal list.
87 static void OnDestroyChromeButton(GtkWidget* button, 87 static void OnDestroyChromeButton(GtkWidget* button,
88 GtkThemeProvider* provider); 88 GtkThemeProvider* provider);
89 89
90 // Whether we should be using gtk rendering. 90 // Whether we should be using gtk rendering.
91 bool use_gtk_; 91 bool use_gtk_;
92 92
93 // A GtkWidget that exists only so we can look at its properties (and take 93 // A GtkWidget that exists only so we can look at its properties (and take
tony 2009/07/21 18:35:10 Nit: Update the comment since it now applies to tw
94 // its colors). 94 // its colors).
95 GtkWidget* fake_window_; 95 GtkWidget* fake_window_;
96 GtkWidget* fake_label_;
96 97
97 // A list of all GtkChromeButton instances. We hold on to these to notify 98 // A list of all GtkChromeButton instances. We hold on to these to notify
98 // them of theme changes. 99 // them of theme changes.
99 std::vector<GtkWidget*> chrome_buttons_; 100 std::vector<GtkWidget*> chrome_buttons_;
100 }; 101 };
101 102
102 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ 103 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | chrome/browser/gtk/gtk_theme_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698