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

Side by Side Diff: ui/views/widget/widget.cc

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/x11_desktop_window_move_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/event.h" 10 #include "ui/base/event.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // Inset the work area slightly. 450 // Inset the work area slightly.
451 work_area.Inset(10, 10, 10, 10); 451 work_area.Inset(10, 10, 10, 10);
452 SetBounds(work_area.AdjustToFit(bounds)); 452 SetBounds(work_area.AdjustToFit(bounds));
453 } 453 }
454 } 454 }
455 455
456 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { 456 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) {
457 native_widget_->SetVisibilityChangedAnimationsEnabled(value); 457 native_widget_->SetVisibilityChangedAnimationsEnabled(value);
458 } 458 }
459 459
460 Widget::MoveLoopResult Widget::RunMoveLoop() { 460 Widget::MoveLoopResult Widget::RunMoveLoop(const gfx::Point& drag_offset) {
461 return native_widget_->RunMoveLoop(); 461 return native_widget_->RunMoveLoop(drag_offset);
462 } 462 }
463 463
464 void Widget::EndMoveLoop() { 464 void Widget::EndMoveLoop() {
465 native_widget_->EndMoveLoop(); 465 native_widget_->EndMoveLoop();
466 } 466 }
467 467
468 void Widget::StackAboveWidget(Widget* widget) { 468 void Widget::StackAboveWidget(Widget* widget) {
469 native_widget_->StackAbove(widget->GetNativeView()); 469 native_widget_->StackAbove(widget->GetNativeView());
470 } 470 }
471 471
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 1328
1329 //////////////////////////////////////////////////////////////////////////////// 1329 ////////////////////////////////////////////////////////////////////////////////
1330 // internal::NativeWidgetPrivate, NativeWidget implementation: 1330 // internal::NativeWidgetPrivate, NativeWidget implementation:
1331 1331
1332 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1332 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1333 return this; 1333 return this;
1334 } 1334 }
1335 1335
1336 } // namespace internal 1336 } // namespace internal
1337 } // namespace views 1337 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/x11_desktop_window_move_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698