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

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 8741022: Implements Aura:: NativeWidgetPrivate::ReparentNativeView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment in sad_tab_observer Created 9 years 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
« no previous file with comments | « chrome/browser/ui/sad_tab_observer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/drag_drop_client.h" 10 #include "ui/aura/client/drag_drop_client.h"
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 NativeWidgetAura* native_widget = 764 NativeWidgetAura* native_widget =
765 static_cast<NativeWidgetAura*>(GetNativeWidgetForNativeView(*i)); 765 static_cast<NativeWidgetAura*>(GetNativeWidgetForNativeView(*i));
766 if (native_widget) 766 if (native_widget)
767 children->insert(native_widget->GetWidget()); 767 children->insert(native_widget->GetWidget());
768 } 768 }
769 } 769 }
770 770
771 // static 771 // static
772 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, 772 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view,
773 gfx::NativeView new_parent) { 773 gfx::NativeView new_parent) {
774 // http://crbug.com/102576 774 DCHECK(native_view != new_parent);
775 NOTIMPLEMENTED(); 775 native_view->SetParent(new_parent);
Ben Goodger (Google) 2011/11/30 23:24:21 NativeWidgetWin does a lot more here, like sending
776 } 776 }
777 777
778 // static 778 // static
779 bool NativeWidgetPrivate::IsMouseButtonDown() { 779 bool NativeWidgetPrivate::IsMouseButtonDown() {
780 return aura::Desktop::GetInstance()->IsMouseButtonDown(); 780 return aura::Desktop::GetInstance()->IsMouseButtonDown();
781 } 781 }
782 782
783 } // namespace internal 783 } // namespace internal
784 } // namespace views 784 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/ui/sad_tab_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698