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

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

Issue 113919: Adds gtk_util::ParentWindow to find the parent window of a GtkWidget.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 9
10 #include "base/gfx/point.h" 10 #include "base/gfx/point.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Gets the position of a gtk widget in screen coordinates. 38 // Gets the position of a gtk widget in screen coordinates.
39 gfx::Point GetWidgetScreenPosition(GtkWidget* widget); 39 gfx::Point GetWidgetScreenPosition(GtkWidget* widget);
40 40
41 // Returns the bounds of the specified widget in screen coordinates. 41 // Returns the bounds of the specified widget in screen coordinates.
42 gfx::Rect GetWidgetScreenBounds(GtkWidget* widget); 42 gfx::Rect GetWidgetScreenBounds(GtkWidget* widget);
43 43
44 // Initialize some GTK settings so that our dialogs are consistent. 44 // Initialize some GTK settings so that our dialogs are consistent.
45 void InitRCStyles(); 45 void InitRCStyles();
46 46
47 // Returns the first ancestor of |widget|, starting a |widget| that is a window.
agl 2009/05/27 20:30:07 This comment doesn't parse for me, maybe a word is
48 // If |widget| does not a window ancestor, NULL is returned.
49 GtkWindow* ParentWindow(GtkWidget* widget);
50
47 } // namespace gtk_util 51 } // namespace gtk_util
48 52
49 #endif // CHROME_COMMON_GTK_UTIL_H_ 53 #endif // CHROME_COMMON_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698