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

Unified Diff: views/desktop/desktop_window.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/desktop/desktop_window.cc
diff --git a/views/desktop/desktop_window.cc b/views/desktop/desktop_window.cc
index c0999fb7cc41afd719804de051c9f27a18cea430..7260826dbd6a8cc6b6bafa18570f25a304d11bc7 100644
--- a/views/desktop/desktop_window.cc
+++ b/views/desktop/desktop_window.cc
@@ -99,7 +99,7 @@ void DesktopWindow::CreateDesktopWindow() {
desktop->CreateTestWindow(L"Sample Window 1", SK_ColorWHITE,
gfx::Rect(500, 200, 400, 400), true);
desktop->CreateTestWindow(L"Sample Window 2", SK_ColorRED,
- gfx::Rect(600, 650, 450, 300), false);
+ gfx::Rect(600, 450, 450, 300), false);
}
void DesktopWindow::ActivateWidget(Widget* widget) {
@@ -109,6 +109,7 @@ void DesktopWindow::ActivateWidget(Widget* widget) {
if (active_widget_)
active_widget_->OnActivate(false);
if (widget) {
+ widget->MoveToTop();
active_widget_ = static_cast<NativeWidgetViews*>(widget->native_widget());
active_widget_->OnActivate(true);
}
« no previous file with comments | « no previous file | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698