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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 377 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
378 if (!value) { | 378 if (!value) { |
379 active_window_observer_.reset(); | 379 active_window_observer_.reset(); |
380 } else { | 380 } else { |
381 active_window_observer_.reset( | 381 active_window_observer_.reset( |
382 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); | 382 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); |
383 } | 383 } |
384 } | 384 } |
385 | 385 |
386 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( | 386 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( |
387 const gfx::Point& drag_offset) { | 387 const gfx::Vector2d& drag_offset) { |
388 return desktop_root_window_host_->RunMoveLoop(drag_offset); | 388 return desktop_root_window_host_->RunMoveLoop(drag_offset); |
389 } | 389 } |
390 | 390 |
391 void DesktopNativeWidgetAura::EndMoveLoop() { | 391 void DesktopNativeWidgetAura::EndMoveLoop() { |
392 desktop_root_window_host_->EndMoveLoop(); | 392 desktop_root_window_host_->EndMoveLoop(); |
393 } | 393 } |
394 | 394 |
395 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( | 395 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( |
396 bool value) { | 396 bool value) { |
397 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); | 397 desktop_root_window_host_->SetVisibilityChangedAnimationsEnabled(value); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 GetWidget()->non_client_view()->SchedulePaint(); | 550 GetWidget()->non_client_view()->SchedulePaint(); |
551 } | 551 } |
552 | 552 |
553 void DesktopNativeWidgetAura::OnLostActive() { | 553 void DesktopNativeWidgetAura::OnLostActive() { |
554 native_widget_delegate_->OnNativeWidgetActivationChanged(false); | 554 native_widget_delegate_->OnNativeWidgetActivationChanged(false); |
555 if (IsVisible() && GetWidget()->non_client_view()) | 555 if (IsVisible() && GetWidget()->non_client_view()) |
556 GetWidget()->non_client_view()->SchedulePaint(); | 556 GetWidget()->non_client_view()->SchedulePaint(); |
557 } | 557 } |
558 | 558 |
559 } // namespace views | 559 } // namespace views |
OLD | NEW |