OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |