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/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 work_area.Inset(10, 10, 10, 10); | 512 work_area.Inset(10, 10, 10, 10); |
513 work_area.AdjustToFit(bounds); | 513 work_area.AdjustToFit(bounds); |
514 SetBounds(work_area); | 514 SetBounds(work_area); |
515 } | 515 } |
516 } | 516 } |
517 | 517 |
518 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { | 518 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { |
519 native_widget_->SetVisibilityChangedAnimationsEnabled(value); | 519 native_widget_->SetVisibilityChangedAnimationsEnabled(value); |
520 } | 520 } |
521 | 521 |
| 522 void Widget::SetVisibilityAnimationDuration(const base::TimeDelta& duration) { |
| 523 native_widget_->SetVisibilityAnimationDuration(duration); |
| 524 } |
| 525 |
| 526 void Widget::SetVisibilityAnimationTransition(VisibilityTransition transition) { |
| 527 native_widget_->SetVisibilityAnimationTransition(transition); |
| 528 } |
| 529 |
522 Widget::MoveLoopResult Widget::RunMoveLoop( | 530 Widget::MoveLoopResult Widget::RunMoveLoop( |
523 const gfx::Vector2d& drag_offset, | 531 const gfx::Vector2d& drag_offset, |
524 MoveLoopSource source, | 532 MoveLoopSource source, |
525 MoveLoopEscapeBehavior escape_behavior) { | 533 MoveLoopEscapeBehavior escape_behavior) { |
526 return native_widget_->RunMoveLoop(drag_offset, source, escape_behavior); | 534 return native_widget_->RunMoveLoop(drag_offset, source, escape_behavior); |
527 } | 535 } |
528 | 536 |
529 void Widget::EndMoveLoop() { | 537 void Widget::EndMoveLoop() { |
530 native_widget_->EndMoveLoop(); | 538 native_widget_->EndMoveLoop(); |
531 } | 539 } |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 | 1508 |
1501 //////////////////////////////////////////////////////////////////////////////// | 1509 //////////////////////////////////////////////////////////////////////////////// |
1502 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1510 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1503 | 1511 |
1504 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1512 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1505 return this; | 1513 return this; |
1506 } | 1514 } |
1507 | 1515 |
1508 } // namespace internal | 1516 } // namespace internal |
1509 } // namespace views | 1517 } // namespace views |
OLD | NEW |