| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UTIL_H_ | 5 #ifndef CHROME_BROWSER_GTK_GTK_UTIL_H_ |
| 6 #define CHROME_BROWSER_GTK_GTK_UTIL_H_ | 6 #define CHROME_BROWSER_GTK_GTK_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 // host window. On Linux, it merely returns the passed in dialog. | 308 // host window. On Linux, it merely returns the passed in dialog. |
| 309 GtkWindow* GetDialogWindow(GtkWidget* dialog); | 309 GtkWindow* GetDialogWindow(GtkWidget* dialog); |
| 310 | 310 |
| 311 // Gets dialog window bounds. | 311 // Gets dialog window bounds. |
| 312 gfx::Rect GetDialogBounds(GtkWidget* dialog); | 312 gfx::Rect GetDialogBounds(GtkWidget* dialog); |
| 313 | 313 |
| 314 // Returns the stock menu item label for the "preferences" item - returns an | 314 // Returns the stock menu item label for the "preferences" item - returns an |
| 315 // empty string if no stock item found. | 315 // empty string if no stock item found. |
| 316 string16 GetStockPreferencesMenuLabel(); | 316 string16 GetStockPreferencesMenuLabel(); |
| 317 | 317 |
| 318 // Checks whether a widget is actually visible, i.e. whether it and all its |
| 319 // ancestors up to its toplevel are visible. |
| 320 bool IsWidgetAncestryVisible(GtkWidget* widget); |
| 321 |
| 318 } // namespace gtk_util | 322 } // namespace gtk_util |
| 319 | 323 |
| 320 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ | 324 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ |
| OLD | NEW |