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

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

Issue 326017: GTK: Compute infobubble rects correctly. (Closed)
Patch Set: Created 11 years, 2 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/toolbar_star_toggle_gtk.cc ('k') | 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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 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
188 // toplevel window's origin.
189 gfx::Rect GetWidgetRectRelativeToToplevel(GtkWidget* widget);
190
187 } // namespace gtk_util 191 } // namespace gtk_util
188 192
189 #endif // CHROME_COMMON_GTK_UTIL_H_ 193 #endif // CHROME_COMMON_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/toolbar_star_toggle_gtk.cc ('k') | chrome/common/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698