| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // Show the image for the given menu item, even if the user's default is to not | 174 // Show the image for the given menu item, even if the user's default is to not |
| 175 // show images. Only to be used for favicons or other menus where the image is | 175 // show images. Only to be used for favicons or other menus where the image is |
| 176 // crucial to its functionality. | 176 // crucial to its functionality. |
| 177 void SetAlwaysShowImage(GtkWidget* image_menu_item); | 177 void SetAlwaysShowImage(GtkWidget* image_menu_item); |
| 178 | 178 |
| 179 // Returns a static instance of a GdkCursor* object, sharable across the | 179 // Returns a static instance of a GdkCursor* object, sharable across the |
| 180 // process. Returns a GdkCursor with a +1 refcount, as if it was just created | 180 // process. Returns a GdkCursor with a +1 refcount, as if it was just created |
| 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. |
| 185 void StackPopupWindow(GtkWidget* popup, GtkWidget* toplevel); |
| 186 |
| 184 } // namespace gtk_util | 187 } // namespace gtk_util |
| 185 | 188 |
| 186 #endif // CHROME_COMMON_GTK_UTIL_H_ | 189 #endif // CHROME_COMMON_GTK_UTIL_H_ |
| OLD | NEW |