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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure we have a valid system location Created 8 years, 4 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: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index fd95a3c47cb4e2e93b003bb9b774c6c88d731a0a..571f489440c7937c2b747812206ab92d33ffc9c8 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -233,11 +233,8 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
aura::client::SetActivationDelegate(window_, this);
- if (desktop_helper_.get()) {
+ if (desktop_helper_.get())
desktop_helper_->PostInitialize();
- // TODO(erg): Move this somewhere else?
- desktop_helper_->ShowRootWindow();
- }
}
NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() {
@@ -664,11 +661,13 @@ void NativeWidgetAura::SetInactiveRenderingDisabled(bool value) {
active_window_observer_.reset(new ActiveWindowObserver(this));
}
-Widget::MoveLoopResult NativeWidgetAura::RunMoveLoop() {
+Widget::MoveLoopResult NativeWidgetAura::RunMoveLoop(
+ const gfx::Point& drag_offset) {
if (window_->parent() &&
aura::client::GetWindowMoveClient(window_->parent())) {
SetCapture();
- aura::client::GetWindowMoveClient(window_->parent())->RunMoveLoop(window_);
+ aura::client::GetWindowMoveClient(window_->parent())->RunMoveLoop(
+ window_, drag_offset);
return Widget::MOVE_LOOP_SUCCESSFUL;
}
return Widget::MOVE_LOOP_CANCELED;

Powered by Google App Engine
This is Rietveld 408576698