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

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

Issue 3235010: reland r57885 with a fix for linux/views. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: . Created 10 years, 3 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
« no previous file with comments | « chrome/browser/gtk/focus_store_gtk.cc ('k') | chrome/browser/gtk/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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/focus_store_gtk.cc ('k') | chrome/browser/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698