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

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

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 } 877 }
878 878
879 ui::Compositor* Widget::GetCompositor() { 879 ui::Compositor* Widget::GetCompositor() {
880 return native_widget_->GetCompositor(); 880 return native_widget_->GetCompositor();
881 } 881 }
882 882
883 ui::Layer* Widget::GetLayer() { 883 ui::Layer* Widget::GetLayer() {
884 return native_widget_->GetLayer(); 884 return native_widget_->GetLayer();
885 } 885 }
886 886
887 void Widget::ReorderNativeViews() {
888 native_widget_->ReorderNativeViews();
889 }
890
887 void Widget::UpdateRootLayers() { 891 void Widget::UpdateRootLayers() {
888 // Calculate the layers requires traversing the tree, and since nearly any 892 // Calculate the layers requires traversing the tree, and since nearly any
889 // mutation of the tree can trigger this call we delay until absolutely 893 // mutation of the tree can trigger this call we delay until absolutely
890 // necessary. 894 // necessary.
891 root_layers_dirty_ = true; 895 root_layers_dirty_ = true;
892 } 896 }
893 897
894 const NativeWidget* Widget::native_widget() const { 898 const NativeWidget* Widget::native_widget() const {
895 return native_widget_; 899 return native_widget_;
896 } 900 }
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 1406
1403 //////////////////////////////////////////////////////////////////////////////// 1407 ////////////////////////////////////////////////////////////////////////////////
1404 // internal::NativeWidgetPrivate, NativeWidget implementation: 1408 // internal::NativeWidgetPrivate, NativeWidget implementation:
1405 1409
1406 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1410 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1407 return this; 1411 return this;
1408 } 1412 }
1409 1413
1410 } // namespace internal 1414 } // namespace internal
1411 } // namespace views 1415 } // namespace views
OLDNEW
« ui/views/widget/native_widget_window_reorderer_aura.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698