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/events/event.h" | 10 #include "ui/base/events/event.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 work_area.Inset(10, 10, 10, 10); | 476 work_area.Inset(10, 10, 10, 10); |
477 work_area.AdjustToFit(bounds); | 477 work_area.AdjustToFit(bounds); |
478 SetBounds(work_area); | 478 SetBounds(work_area); |
479 } | 479 } |
480 } | 480 } |
481 | 481 |
482 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { | 482 void Widget::SetVisibilityChangedAnimationsEnabled(bool value) { |
483 native_widget_->SetVisibilityChangedAnimationsEnabled(value); | 483 native_widget_->SetVisibilityChangedAnimationsEnabled(value); |
484 } | 484 } |
485 | 485 |
486 Widget::MoveLoopResult Widget::RunMoveLoop(const gfx::Point& drag_offset) { | 486 Widget::MoveLoopResult Widget::RunMoveLoop(const gfx::Vector2d& drag_offset) { |
487 return native_widget_->RunMoveLoop(drag_offset); | 487 return native_widget_->RunMoveLoop(drag_offset); |
488 } | 488 } |
489 | 489 |
490 void Widget::EndMoveLoop() { | 490 void Widget::EndMoveLoop() { |
491 native_widget_->EndMoveLoop(); | 491 native_widget_->EndMoveLoop(); |
492 } | 492 } |
493 | 493 |
494 void Widget::StackAboveWidget(Widget* widget) { | 494 void Widget::StackAboveWidget(Widget* widget) { |
495 native_widget_->StackAbove(widget->GetNativeView()); | 495 native_widget_->StackAbove(widget->GetNativeView()); |
496 } | 496 } |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 | 1354 |
1355 //////////////////////////////////////////////////////////////////////////////// | 1355 //////////////////////////////////////////////////////////////////////////////// |
1356 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1356 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1357 | 1357 |
1358 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1358 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1359 return this; | 1359 return this; |
1360 } | 1360 } |
1361 | 1361 |
1362 } // namespace internal | 1362 } // namespace internal |
1363 } // namespace views | 1363 } // namespace views |
OLD | NEW |