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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 393 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
394 if (!value) { | 394 if (!value) { |
395 active_window_observer_.reset(); | 395 active_window_observer_.reset(); |
396 } else { | 396 } else { |
397 active_window_observer_.reset( | 397 active_window_observer_.reset( |
398 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); | 398 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); |
399 } | 399 } |
400 } | 400 } |
401 | 401 |
402 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( | 402 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( |
403 const gfx::Point& drag_offset) { | 403 const gfx::Vector2d& drag_offset) { |
404 return desktop_root_window_host_->RunMoveLoop(drag_offset); | 404 return desktop_root_window_host_->RunMoveLoop(drag_offset); |
405 } | 405 } |
406 | 406 |
407 void DesktopNativeWidgetAura::EndMoveLoop() { | 407 void DesktopNativeWidgetAura::EndMoveLoop() { |
408 desktop_root_window_host_->EndMoveLoop(); | 408 desktop_root_window_host_->EndMoveLoop(); |
409 } | 409 } |
410 | 410 |
411 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( | 411 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( |
412 bool value) { | 412 bool value) { |
413 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); | 413 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 GetWidget()->non_client_view()->SchedulePaint(); | 566 GetWidget()->non_client_view()->SchedulePaint(); |
567 } | 567 } |
568 | 568 |
569 void DesktopNativeWidgetAura::OnLostActive() { | 569 void DesktopNativeWidgetAura::OnLostActive() { |
570 native_widget_delegate_->OnNativeWidgetActivationChanged(false); | 570 native_widget_delegate_->OnNativeWidgetActivationChanged(false); |
571 if (IsVisible() && GetWidget()->non_client_view()) | 571 if (IsVisible() && GetWidget()->non_client_view()) |
572 GetWidget()->non_client_view()->SchedulePaint(); | 572 GetWidget()->non_client_view()->SchedulePaint(); |
573 } | 573 } |
574 | 574 |
575 } // namespace views | 575 } // namespace views |
OLD | NEW |