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 "base/win/metro.h" | 7 #include "base/win/metro.h" |
8 #include "third_party/skia/include/core/SkPath.h" | 8 #include "third_party/skia/include/core/SkPath.h" |
9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 | 680 |
681 void DesktopRootWindowHostWin::HandleAccelerator( | 681 void DesktopRootWindowHostWin::HandleAccelerator( |
682 const ui::Accelerator& accelerator) { | 682 const ui::Accelerator& accelerator) { |
683 GetWidget()->GetFocusManager()->ProcessAccelerator(accelerator); | 683 GetWidget()->GetFocusManager()->ProcessAccelerator(accelerator); |
684 } | 684 } |
685 | 685 |
686 void DesktopRootWindowHostWin::HandleCreate() { | 686 void DesktopRootWindowHostWin::HandleCreate() { |
687 // TODO(beng): moar | 687 // TODO(beng): moar |
688 NOTIMPLEMENTED(); | 688 NOTIMPLEMENTED(); |
689 | 689 |
| 690 native_widget_delegate_->OnNativeWidgetCreated(true); |
| 691 |
690 // 1. Window property association | 692 // 1. Window property association |
691 // 2. MouseWheel. | 693 // 2. MouseWheel. |
692 } | 694 } |
693 | 695 |
694 void DesktopRootWindowHostWin::HandleDestroying() { | 696 void DesktopRootWindowHostWin::HandleDestroying() { |
695 drag_drop_client_->OnNativeWidgetDestroying(GetHWND()); | 697 drag_drop_client_->OnNativeWidgetDestroying(GetHWND()); |
696 native_widget_delegate_->OnNativeWidgetDestroying(); | 698 native_widget_delegate_->OnNativeWidgetDestroying(); |
697 } | 699 } |
698 | 700 |
699 void DesktopRootWindowHostWin::HandleDestroyed() { | 701 void DesktopRootWindowHostWin::HandleDestroyed() { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 | 906 |
905 // static | 907 // static |
906 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 908 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
907 internal::NativeWidgetDelegate* native_widget_delegate, | 909 internal::NativeWidgetDelegate* native_widget_delegate, |
908 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 910 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
909 return new DesktopRootWindowHostWin(native_widget_delegate, | 911 return new DesktopRootWindowHostWin(native_widget_delegate, |
910 desktop_native_widget_aura); | 912 desktop_native_widget_aura); |
911 } | 913 } |
912 | 914 |
913 } // namespace views | 915 } // namespace views |
OLD | NEW |