Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 49303007: Moves responsibility of invoking OnNativeWidgetCreated to DesktopRootWindowHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 2 trunk Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698