| 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/desktop_aura/desktop_native_widget_aura.h" | 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/aura/client/activation_client.h" | 8 #include "ui/aura/client/activation_client.h" |
| 9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 10 #include "ui/aura/client/stacking_client.h" | 10 #include "ui/aura/client/stacking_client.h" |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 return desktop_root_window_host_->GetWorkAreaBoundsInScreen(); | 552 return desktop_root_window_host_->GetWorkAreaBoundsInScreen(); |
| 553 } | 553 } |
| 554 | 554 |
| 555 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 555 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
| 556 if (!value) { | 556 if (!value) { |
| 557 active_window_observer_.reset(); | 557 active_window_observer_.reset(); |
| 558 } else { | 558 } else { |
| 559 active_window_observer_.reset( | 559 active_window_observer_.reset( |
| 560 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); | 560 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); |
| 561 } | 561 } |
| 562 desktop_root_window_host_->SetInactiveRenderingDisabled(value); |
| 562 } | 563 } |
| 563 | 564 |
| 564 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( | 565 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( |
| 565 const gfx::Vector2d& drag_offset, | 566 const gfx::Vector2d& drag_offset, |
| 566 Widget::MoveLoopSource source) { | 567 Widget::MoveLoopSource source) { |
| 567 return desktop_root_window_host_->RunMoveLoop(drag_offset, source); | 568 return desktop_root_window_host_->RunMoveLoop(drag_offset, source); |
| 568 } | 569 } |
| 569 | 570 |
| 570 void DesktopNativeWidgetAura::EndMoveLoop() { | 571 void DesktopNativeWidgetAura::EndMoveLoop() { |
| 571 desktop_root_window_host_->EndMoveLoop(); | 572 desktop_root_window_host_->EndMoveLoop(); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 drop_helper_->OnDragExit(); | 834 drop_helper_->OnDragExit(); |
| 834 } | 835 } |
| 835 | 836 |
| 836 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) { | 837 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) { |
| 837 DCHECK(drop_helper_.get() != NULL); | 838 DCHECK(drop_helper_.get() != NULL); |
| 838 return drop_helper_->OnDrop(event.data(), event.location(), | 839 return drop_helper_->OnDrop(event.data(), event.location(), |
| 839 last_drop_operation_); | 840 last_drop_operation_); |
| 840 } | 841 } |
| 841 | 842 |
| 842 } // namespace views | 843 } // namespace views |
| OLD | NEW |