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

Side by Side Diff: chrome/common/gtk_util.h

Issue 479006: re-apply r34183... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/gtk_util.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) 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_COMMON_GTK_UTIL_H_ 5 #ifndef CHROME_COMMON_GTK_UTIL_H_
6 #define CHROME_COMMON_GTK_UTIL_H_ 6 #define CHROME_COMMON_GTK_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const gchar* stock_id, gint response_id); 151 const gchar* stock_id, gint response_id);
152 152
153 // Sets all the foreground color states of |label| to |color|. 153 // Sets all the foreground color states of |label| to |color|.
154 void SetLabelColor(GtkWidget* label, const GdkColor* color); 154 void SetLabelColor(GtkWidget* label, const GdkColor* color);
155 155
156 // Adds the given widget to an alignment identing it by |kGroupIndent|. 156 // Adds the given widget to an alignment identing it by |kGroupIndent|.
157 GtkWidget* IndentWidget(GtkWidget* content); 157 GtkWidget* IndentWidget(GtkWidget* content);
158 158
159 // Initialize the font settings in |prefs| (used when creating new renderers) 159 // Initialize the font settings in |prefs| (used when creating new renderers)
160 // based on GtkSettings (which itself comes from XSETTINGS). 160 // based on GtkSettings (which itself comes from XSETTINGS).
161 void InitRendererPrefsFromGtkSettings(RendererPreferences* prefs); 161 void InitRendererPrefsFromGtkSettings(RendererPreferences* prefs,
162 bool use_gtk_theme);
162 163
163 // Get the current location of the mouse cursor relative to the screen. 164 // Get the current location of the mouse cursor relative to the screen.
164 gfx::Point ScreenPoint(GtkWidget* widget); 165 gfx::Point ScreenPoint(GtkWidget* widget);
165 166
166 // Get the current location of the mouse cursor relative to the widget. 167 // Get the current location of the mouse cursor relative to the widget.
167 gfx::Point ClientPoint(GtkWidget* widget); 168 gfx::Point ClientPoint(GtkWidget* widget);
168 169
169 // Reverses a point in RTL mode. Used in making vectors of GdkPoints for window 170 // Reverses a point in RTL mode. Used in making vectors of GdkPoints for window
170 // shapes. 171 // shapes.
171 GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr); 172 GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr);
(...skipping 27 matching lines...) Expand all
199 gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget); 200 gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget);
200 201
201 // A helper function for gtk_message_dialog_new() to work around a KDE 3 window 202 // A helper function for gtk_message_dialog_new() to work around a KDE 3 window
202 // manager bugs. You should always call it after creating a dialog with 203 // manager bugs. You should always call it after creating a dialog with
203 // gtk_message_dialog_new. 204 // gtk_message_dialog_new.
204 void ApplyMessageDialogQuirks(GtkWidget* dialog); 205 void ApplyMessageDialogQuirks(GtkWidget* dialog);
205 206
206 } // namespace gtk_util 207 } // namespace gtk_util
207 208
208 #endif // CHROME_COMMON_GTK_UTIL_H_ 209 #endif // CHROME_COMMON_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698