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

Unified Diff: chrome/browser/ui/gtk/download/download_shelf_gtk.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/download/download_shelf_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
index 054a9dccf5046e4f04968868ba3386e300e574c1..662a79f7c00389d437b52a00448b5f210fbf1438 100644
--- a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
@@ -383,11 +383,7 @@ bool DownloadShelfGtk::IsCursorInShelfZone(
if (!realized)
return false;
- GtkAllocation allocation;
- gtk_widget_get_allocation(shelf_.get(), &allocation);
-
- gfx::Rect bounds(ui::GetWidgetScreenPosition(shelf_.get()),
- gfx::Size(allocation.width, allocation.height));
+ gfx::Rect bounds = ui::GetWidgetScreenBounds(shelf_.get());
// Negative insets expand the rectangle. We only expand the top.
bounds.Inset(gfx::Insets(-kShelfAuraSize, 0, 0, 0));

Powered by Google App Engine
This is Rietveld 408576698