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

Side by Side Diff: views/widget/widget.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/widget.h ('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 "views/widget/widget.h" 5 #include "views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/l10n/l10n_font_util.h" 10 #include "ui/base/l10n/l10n_font_util.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 void Widget::MoveAboveWidget(Widget* widget) { 324 void Widget::MoveAboveWidget(Widget* widget) {
325 native_widget_->MoveAbove(widget->GetNativeView()); 325 native_widget_->MoveAbove(widget->GetNativeView());
326 } 326 }
327 327
328 void Widget::MoveAbove(gfx::NativeView native_view) { 328 void Widget::MoveAbove(gfx::NativeView native_view) {
329 native_widget_->MoveAbove(native_view); 329 native_widget_->MoveAbove(native_view);
330 } 330 }
331 331
332 void Widget::MoveToTop() {
333 native_widget_->MoveToTop();
334 }
335
332 void Widget::SetShape(gfx::NativeRegion shape) { 336 void Widget::SetShape(gfx::NativeRegion shape) {
333 native_widget_->SetShape(shape); 337 native_widget_->SetShape(shape);
334 } 338 }
335 339
336 void Widget::Close() { 340 void Widget::Close() {
337 if (widget_closed_) { 341 if (widget_closed_) {
338 // It appears we can hit this code path if you close a modal dialog then 342 // It appears we can hit this code path if you close a modal dialog then
339 // close the last browser before the destructor is hit, which triggers 343 // close the last browser before the destructor is hit, which triggers
340 // invoking Close again. 344 // invoking Close again.
341 return; 345 return;
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 native_widget_->CenterWindow(non_client_view_->GetPreferredSize()); 930 native_widget_->CenterWindow(non_client_view_->GetPreferredSize());
927 } else { 931 } else {
928 // Use the supplied initial bounds. 932 // Use the supplied initial bounds.
929 SetBoundsConstrained(bounds, NULL); 933 SetBoundsConstrained(bounds, NULL);
930 } 934 }
931 } 935 }
932 } 936 }
933 937
934 938
935 } // namespace views 939 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698