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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index bafa1bfd59b7042431bc88b5de5da4d2b121c98e..0215b20f7371b23104f60ed786a33686206f9de5 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1871,7 +1871,7 @@ Browser* TabDragController::CreateBrowserForDrag(
Browser* browser = Browser::Create(drag_data_[0].contents->profile());
gfx::Point center(0, source->height() / 2);
views::View::ConvertPointToWidget(source, &center);
- gfx::Rect new_bounds(source->GetWidget()->GetWindowScreenBounds());
+ gfx::Rect new_bounds(source->GetWidget()->GetWindowBoundsInScreen());
new_bounds.set_y(screen_point.y() - center.y());
switch (GetDetachPosition(screen_point)) {
case DETACH_BEFORE:
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_view.cc ('k') | chrome/browser/ui/views/web_dialog_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698