| OLD | NEW |
| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // with gdk_cursor_new(); owner must gdk_cursor_unref() it when done with it. | 181 // with gdk_cursor_new(); owner must gdk_cursor_unref() it when done with it. |
| 182 GdkCursor* GetCursor(GdkCursorType type); | 182 GdkCursor* GetCursor(GdkCursorType type); |
| 183 | 183 |
| 184 // Stacks a |popup| window directly on top of a |toplevel| window. | 184 // Stacks a |popup| window directly on top of a |toplevel| window. |
| 185 void StackPopupWindow(GtkWidget* popup, GtkWidget* toplevel); | 185 void StackPopupWindow(GtkWidget* popup, GtkWidget* toplevel); |
| 186 | 186 |
| 187 // Get a rectangle corresponding to a widget's allocation relative to its | 187 // Get a rectangle corresponding to a widget's allocation relative to its |
| 188 // toplevel window's origin. | 188 // toplevel window's origin. |
| 189 gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget); | 189 gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget); |
| 190 | 190 |
| 191 // A helper function for gtk_message_dialog_new() to work around a KDE 3 window |
| 192 // manager bugs. You should always call it after creating a dialog with |
| 193 // gtk_message_dialog_new. |
| 194 void ApplyMessageDialogQuirks(GtkWidget* dialog); |
| 195 |
| 191 } // namespace gtk_util | 196 } // namespace gtk_util |
| 192 | 197 |
| 193 #endif // CHROME_COMMON_GTK_UTIL_H_ | 198 #endif // CHROME_COMMON_GTK_UTIL_H_ |
| OLD | NEW |