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

Side by Side Diff: views/widget/native_widget_win.cc

Issue 7185005: Add View::ReorderChildView and Widget::MoveToTop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 months 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 | « views/widget/native_widget_win.h ('k') | views/widget/widget.h » ('j') | 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 "views/widget/native_widget_win.h" 5 #include "views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 SetChildBounds(GetNativeView(), GetParent(), 785 SetChildBounds(GetNativeView(), GetParent(),
786 other_widget ? other_widget->GetNativeView() : NULL, 786 other_widget ? other_widget->GetNativeView() : NULL,
787 bounds, kMonitorEdgePadding, 0); 787 bounds, kMonitorEdgePadding, 0);
788 } 788 }
789 789
790 void NativeWidgetWin::MoveAbove(gfx::NativeView native_view) { 790 void NativeWidgetWin::MoveAbove(gfx::NativeView native_view) {
791 SetWindowPos(native_view, 0, 0, 0, 0, 791 SetWindowPos(native_view, 0, 0, 0, 0,
792 SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); 792 SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
793 } 793 }
794 794
795 void NativeWidgetWin::MoveToTop() {
796 NOTIMPLEMENTED();
797 }
798
795 void NativeWidgetWin::SetShape(gfx::NativeRegion region) { 799 void NativeWidgetWin::SetShape(gfx::NativeRegion region) {
796 SetWindowRgn(region, TRUE); 800 SetWindowRgn(region, TRUE);
797 } 801 }
798 802
799 void NativeWidgetWin::Close() { 803 void NativeWidgetWin::Close() {
800 if (!IsWindow()) 804 if (!IsWindow())
801 return; // No need to do anything. 805 return; // No need to do anything.
802 806
803 // Let's hide ourselves right away. 807 // Let's hide ourselves right away.
804 Hide(); 808 Hide();
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 2509
2506 // And now, notify them that they have a brand new parent. 2510 // And now, notify them that they have a brand new parent.
2507 for (NativeWidgets::iterator it = widgets.begin(); 2511 for (NativeWidgets::iterator it = widgets.begin();
2508 it != widgets.end(); ++it) { 2512 it != widgets.end(); ++it) {
2509 (*it)->GetWidget()->NotifyNativeViewHierarchyChanged(true, 2513 (*it)->GetWidget()->NotifyNativeViewHierarchyChanged(true,
2510 new_parent); 2514 new_parent);
2511 } 2515 }
2512 } 2516 }
2513 2517
2514 } // namespace views 2518 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_win.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698