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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkPath.h" | 7 #include "third_party/skia/include/core/SkPath.h" |
8 #include "third_party/skia/include/core/SkRegion.h" | 8 #include "third_party/skia/include/core/SkRegion.h" |
9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
10 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 void DesktopRootWindowHostWin::HandleBeginWMSizeMove() { | 637 void DesktopRootWindowHostWin::HandleBeginWMSizeMove() { |
638 native_widget_delegate_->OnNativeWidgetBeginUserBoundsChange(); | 638 native_widget_delegate_->OnNativeWidgetBeginUserBoundsChange(); |
639 } | 639 } |
640 | 640 |
641 void DesktopRootWindowHostWin::HandleEndWMSizeMove() { | 641 void DesktopRootWindowHostWin::HandleEndWMSizeMove() { |
642 native_widget_delegate_->OnNativeWidgetEndUserBoundsChange(); | 642 native_widget_delegate_->OnNativeWidgetEndUserBoundsChange(); |
643 } | 643 } |
644 | 644 |
645 void DesktopRootWindowHostWin::HandleMove() { | 645 void DesktopRootWindowHostWin::HandleMove() { |
646 native_widget_delegate_->OnNativeWidgetMove(); | 646 native_widget_delegate_->OnNativeWidgetMove(); |
| 647 if (root_window_host_delegate_) |
| 648 root_window_host_delegate_->OnHostMoved(GetBounds().origin()); |
647 } | 649 } |
648 | 650 |
649 void DesktopRootWindowHostWin::HandleWorkAreaChanged() { | 651 void DesktopRootWindowHostWin::HandleWorkAreaChanged() { |
650 GetWidget()->widget_delegate()->OnWorkAreaChanged(); | 652 GetWidget()->widget_delegate()->OnWorkAreaChanged(); |
651 } | 653 } |
652 | 654 |
653 void DesktopRootWindowHostWin::HandleVisibilityChanged(bool visible) { | 655 void DesktopRootWindowHostWin::HandleVisibilityChanged(bool visible) { |
654 native_widget_delegate_->OnNativeWidgetVisibilityChanged(visible); | 656 native_widget_delegate_->OnNativeWidgetVisibilityChanged(visible); |
655 } | 657 } |
656 | 658 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 786 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
785 internal::NativeWidgetDelegate* native_widget_delegate, | 787 internal::NativeWidgetDelegate* native_widget_delegate, |
786 DesktopNativeWidgetAura* desktop_native_widget_aura, | 788 DesktopNativeWidgetAura* desktop_native_widget_aura, |
787 const gfx::Rect& initial_bounds) { | 789 const gfx::Rect& initial_bounds) { |
788 return new DesktopRootWindowHostWin(native_widget_delegate, | 790 return new DesktopRootWindowHostWin(native_widget_delegate, |
789 desktop_native_widget_aura, | 791 desktop_native_widget_aura, |
790 initial_bounds); | 792 initial_bounds); |
791 } | 793 } |
792 | 794 |
793 } // namespace views | 795 } // namespace views |
OLD | NEW |