| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/native_widget_views.h" | 5 #include "views/widget/native_widget_views.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/gfx/compositor/compositor.h" | 8 #include "ui/gfx/compositor/compositor.h" |
| 9 #include "ui/gfx/compositor/layer.h" | 9 #include "ui/gfx/compositor/layer.h" |
| 10 #include "ui/gfx/compositor/layer_animator.h" | 10 #include "ui/gfx/compositor/layer_animator.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 void NativeWidgetViews::SetBounds(const gfx::Rect& bounds) { | 356 void NativeWidgetViews::SetBounds(const gfx::Rect& bounds) { |
| 357 // |bounds| are supplied in the coordinates of the parent. | 357 // |bounds| are supplied in the coordinates of the parent. |
| 358 view_->SetBoundsRect(AdjustRectOriginForParentWidget(bounds, parent_)); | 358 view_->SetBoundsRect(AdjustRectOriginForParentWidget(bounds, parent_)); |
| 359 } | 359 } |
| 360 | 360 |
| 361 void NativeWidgetViews::SetSize(const gfx::Size& size) { | 361 void NativeWidgetViews::SetSize(const gfx::Size& size) { |
| 362 view_->SetSize(size); | 362 view_->SetSize(size); |
| 363 } | 363 } |
| 364 | 364 |
| 365 void NativeWidgetViews::SetBoundsConstrained(const gfx::Rect& bounds, | |
| 366 Widget* other_widget) { | |
| 367 // TODO(beng): honor other_widget. | |
| 368 SetBounds(bounds); | |
| 369 } | |
| 370 | |
| 371 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) { | 365 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) { |
| 372 NOTIMPLEMENTED(); | 366 NOTIMPLEMENTED(); |
| 373 } | 367 } |
| 374 | 368 |
| 375 void NativeWidgetViews::MoveToTop() { | 369 void NativeWidgetViews::MoveToTop() { |
| 376 view_->parent()->ReorderChildView(view_, -1); | 370 view_->parent()->ReorderChildView(view_, -1); |
| 377 } | 371 } |
| 378 | 372 |
| 379 void NativeWidgetViews::SetShape(gfx::NativeRegion region) { | 373 void NativeWidgetViews::SetShape(gfx::NativeRegion region) { |
| 380 NOTIMPLEMENTED(); | 374 NOTIMPLEMENTED(); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 } | 639 } |
| 646 default: | 640 default: |
| 647 // Everything else falls into standard client event handling. | 641 // Everything else falls into standard client event handling. |
| 648 break; | 642 break; |
| 649 } | 643 } |
| 650 } | 644 } |
| 651 return false; | 645 return false; |
| 652 } | 646 } |
| 653 | 647 |
| 654 } // namespace views | 648 } // namespace views |
| OLD | NEW |