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

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

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the disabled tests Created 6 years, 11 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/dragged_tab_view.cc
===================================================================
--- chrome/browser/ui/views/tabs/dragged_tab_view.cc (revision 244775)
+++ chrome/browser/ui/views/tabs/dragged_tab_view.cc (working copy)
@@ -80,20 +80,10 @@
}
int y = screen_point.y() - ScaleValue(mouse_tab_offset_.y());
-#if defined(OS_WIN) && !defined(USE_AURA)
- double scale = gfx::win::GetDeviceScaleFactor();
- x = static_cast<int>(scale * screen_point.x());
- y = static_cast<int>(scale * screen_point.y());
- // TODO(beng): make this cross-platform
- int show_flags = container_->IsVisible() ? SWP_NOZORDER : SWP_SHOWWINDOW;
- SetWindowPos(container_->GetNativeView(), HWND_TOP, x, y, 0, 0,
- SWP_NOSIZE | SWP_NOACTIVATE | show_flags);
-#else
gfx::Rect bounds = container_->GetWindowBoundsInScreen();
container_->SetBounds(gfx::Rect(x, y, bounds.width(), bounds.height()));
if (!container_->IsVisible())
container_->Show();
-#endif
}
void DraggedTabView::Update() {

Powered by Google App Engine
This is Rietveld 408576698