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

Unified Diff: ui/base/gtk/gtk_screen_util.h

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/ui_controls_x11.cc ('k') | ui/base/gtk/gtk_screen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gtk/gtk_screen_util.h
diff --git a/ui/base/gtk/gtk_screen_utils.h b/ui/base/gtk/gtk_screen_util.h
similarity index 72%
rename from ui/base/gtk/gtk_screen_utils.h
rename to ui/base/gtk/gtk_screen_util.h
index 8262eb49661db3aed51d1397815546c9093eb305..8840b34d60e339dafda6db38d813ef738369fe81 100644
--- a/ui/base/gtk/gtk_screen_utils.h
+++ b/ui/base/gtk/gtk_screen_util.h
@@ -9,6 +9,7 @@
#include "ui/base/ui_export.h"
#include "ui/gfx/point.h"
+#include "ui/gfx/rect.h"
namespace ui {
@@ -21,6 +22,12 @@ UI_EXPORT gfx::Point ScreenPoint(GtkWidget* widget);
// Get the current location of the mouse cursor relative to the widget.
UI_EXPORT gfx::Point ClientPoint(GtkWidget* widget);
+// Gets the position of a gtk widget in screen coordinates.
+UI_EXPORT gfx::Point GetWidgetScreenPosition(GtkWidget* widget);
+
+// Returns the bounds of the specified widget in screen coordinates.
+UI_EXPORT gfx::Rect GetWidgetScreenBounds(GtkWidget* widget);
+
} // namespace ui
#endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_
« no previous file with comments | « ui/aura/ui_controls_x11.cc ('k') | ui/base/gtk/gtk_screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698