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

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

Issue 8477019: Adds Window::MoveChildToFront, with surrounding changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 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
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_wayland.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_views.h" 5 #include "views/widget/native_widget_views.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/gfx/compositor/compositor.h" 8 #include "ui/gfx/compositor/compositor.h"
9 #include "ui/gfx/compositor/layer.h" 9 #include "ui/gfx/compositor/layer.h"
10 #include "ui/gfx/compositor/layer_animator.h" 10 #include "ui/gfx/compositor/layer_animator.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 void NativeWidgetViews::SetBounds(const gfx::Rect& bounds) { 356 void NativeWidgetViews::SetBounds(const gfx::Rect& bounds) {
357 // |bounds| are supplied in the coordinates of the parent. 357 // |bounds| are supplied in the coordinates of the parent.
358 view_->SetBoundsRect(AdjustRectOriginForParentWidget(bounds, parent_)); 358 view_->SetBoundsRect(AdjustRectOriginForParentWidget(bounds, parent_));
359 } 359 }
360 360
361 void NativeWidgetViews::SetSize(const gfx::Size& size) { 361 void NativeWidgetViews::SetSize(const gfx::Size& size) {
362 view_->SetSize(size); 362 view_->SetSize(size);
363 } 363 }
364 364
365 void NativeWidgetViews::SetBoundsConstrained(const gfx::Rect& bounds,
366 Widget* other_widget) {
367 // TODO(beng): honor other_widget.
368 SetBounds(bounds);
369 }
370
371 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) { 365 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) {
372 NOTIMPLEMENTED(); 366 NOTIMPLEMENTED();
373 } 367 }
374 368
375 void NativeWidgetViews::MoveToTop() { 369 void NativeWidgetViews::MoveToTop() {
376 view_->parent()->ReorderChildView(view_, -1); 370 view_->parent()->ReorderChildView(view_, -1);
377 } 371 }
378 372
379 void NativeWidgetViews::SetShape(gfx::NativeRegion region) { 373 void NativeWidgetViews::SetShape(gfx::NativeRegion region) {
380 NOTIMPLEMENTED(); 374 NOTIMPLEMENTED();
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 } 639 }
646 default: 640 default:
647 // Everything else falls into standard client event handling. 641 // Everything else falls into standard client event handling.
648 break; 642 break;
649 } 643 }
650 } 644 }
651 return false; 645 return false;
652 } 646 }
653 647
654 } // namespace views 648 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_wayland.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698