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

Unified Diff: chrome/browser/automation/testing_automation_provider_gtk.cc

Issue 8773025: GTK: More removal of raw GtkWidget->allocation access. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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 | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider_gtk.cc
diff --git a/chrome/browser/automation/testing_automation_provider_gtk.cc b/chrome/browser/automation/testing_automation_provider_gtk.cc
index f00025f958d00c35f2535c5997eb02a0e2313556..6263a968222b053f220218367105ff65200d6fe4 100644
--- a/chrome/browser/automation/testing_automation_provider_gtk.cc
+++ b/chrome/browser/automation/testing_automation_provider_gtk.cc
@@ -43,7 +43,10 @@ void TestingAutomationProvider::WindowGetViewBounds(int handle,
if (!widget)
return;
*success = true;
- *bounds = gfx::Rect(widget->allocation.width, widget->allocation.height);
+
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(widget, &allocation);
+ *bounds = gfx::Rect(allocation.width, allocation.height);
gint x, y;
if (screen_coordinates) {
gfx::Point point = gtk_util::GetWidgetScreenPosition(widget);
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698