| 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_native_widget_aura.h" | 5 #include "ui/views/widget/desktop_native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/aura/client/stacking_client.h" | 8 #include "ui/aura/client/stacking_client.h" |
| 9 #include "ui/aura/focus_manager.h" | 9 #include "ui/aura/focus_manager.h" |
| 10 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 379 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
| 380 if (!value) { | 380 if (!value) { |
| 381 active_window_observer_.reset(); | 381 active_window_observer_.reset(); |
| 382 } else { | 382 } else { |
| 383 active_window_observer_.reset( | 383 active_window_observer_.reset( |
| 384 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); | 384 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); |
| 385 } | 385 } |
| 386 } | 386 } |
| 387 | 387 |
| 388 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( | 388 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( |
| 389 const gfx::Point& drag_offset) { | 389 const gfx::Vector2d& drag_offset) { |
| 390 return desktop_root_window_host_->RunMoveLoop(drag_offset); | 390 return desktop_root_window_host_->RunMoveLoop(drag_offset); |
| 391 } | 391 } |
| 392 | 392 |
| 393 void DesktopNativeWidgetAura::EndMoveLoop() { | 393 void DesktopNativeWidgetAura::EndMoveLoop() { |
| 394 desktop_root_window_host_->EndMoveLoop(); | 394 desktop_root_window_host_->EndMoveLoop(); |
| 395 } | 395 } |
| 396 | 396 |
| 397 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( | 397 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( |
| 398 bool value) { | 398 bool value) { |
| 399 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); | 399 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 GetWidget()->non_client_view()->SchedulePaint(); | 552 GetWidget()->non_client_view()->SchedulePaint(); |
| 553 } | 553 } |
| 554 | 554 |
| 555 void DesktopNativeWidgetAura::OnLostActive() { | 555 void DesktopNativeWidgetAura::OnLostActive() { |
| 556 native_widget_delegate_->OnNativeWidgetActivationChanged(false); | 556 native_widget_delegate_->OnNativeWidgetActivationChanged(false); |
| 557 if (IsVisible() && GetWidget()->non_client_view()) | 557 if (IsVisible() && GetWidget()->non_client_view()) |
| 558 GetWidget()->non_client_view()->SchedulePaint(); | 558 GetWidget()->non_client_view()->SchedulePaint(); |
| 559 } | 559 } |
| 560 | 560 |
| 561 } // namespace views | 561 } // namespace views |
| OLD | NEW |