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_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ui/aura/aura_constants.h" | 8 #include "ui/aura/aura_constants.h" |
9 #include "ui/aura/desktop.h" | 9 #include "ui/aura/desktop.h" |
10 #include "ui/aura/desktop_observer.h" | 10 #include "ui/aura/desktop_observer.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 } | 328 } |
329 | 329 |
330 void NativeWidgetAura::SetBounds(const gfx::Rect& bounds) { | 330 void NativeWidgetAura::SetBounds(const gfx::Rect& bounds) { |
331 window_->SetBounds(bounds); | 331 window_->SetBounds(bounds); |
332 } | 332 } |
333 | 333 |
334 void NativeWidgetAura::SetSize(const gfx::Size& size) { | 334 void NativeWidgetAura::SetSize(const gfx::Size& size) { |
335 window_->SetBounds(gfx::Rect(window_->bounds().origin(), size)); | 335 window_->SetBounds(gfx::Rect(window_->bounds().origin(), size)); |
336 } | 336 } |
337 | 337 |
338 void NativeWidgetAura::SetBoundsConstrained(const gfx::Rect& bounds, | |
339 Widget* other_widget) { | |
340 // http://crbug.com/102580 | |
341 NOTIMPLEMENTED(); | |
342 } | |
343 | |
344 void NativeWidgetAura::MoveAbove(gfx::NativeView native_view) { | 338 void NativeWidgetAura::MoveAbove(gfx::NativeView native_view) { |
345 // http://crbug.com/102578 | 339 if (window_->parent() && window_->parent() == native_view->parent()) |
346 NOTIMPLEMENTED(); | 340 window_->parent()->MoveChildAbove(window_, native_view); |
347 } | 341 } |
348 | 342 |
349 void NativeWidgetAura::MoveToTop() { | 343 void NativeWidgetAura::MoveToTop() { |
350 // http://crbug.com/102578 | 344 window_->parent()->MoveChildToFront(window_); |
351 NOTIMPLEMENTED(); | |
352 } | 345 } |
353 | 346 |
354 void NativeWidgetAura::SetShape(gfx::NativeRegion region) { | 347 void NativeWidgetAura::SetShape(gfx::NativeRegion region) { |
355 // No need for this. | 348 // No need for this. |
356 } | 349 } |
357 | 350 |
358 void NativeWidgetAura::Close() { | 351 void NativeWidgetAura::Close() { |
359 Hide(); | 352 Hide(); |
360 | 353 |
361 if (!close_widget_factory_.HasWeakPtrs()) { | 354 if (!close_widget_factory_.HasWeakPtrs()) { |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 | 724 |
732 // static | 725 // static |
733 bool NativeWidgetPrivate::IsMouseButtonDown() { | 726 bool NativeWidgetPrivate::IsMouseButtonDown() { |
734 // http://crbug.com/102577 | 727 // http://crbug.com/102577 |
735 NOTIMPLEMENTED(); | 728 NOTIMPLEMENTED(); |
736 return false; | 729 return false; |
737 } | 730 } |
738 | 731 |
739 } // namespace internal | 732 } // namespace internal |
740 } // namespace views | 733 } // namespace views |
OLD | NEW |