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

Side by Side Diff: ui/views/view.h

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
« no previous file with comments | « ui/views/controls/native/native_view_host_aura_unittest.cc ('k') | ui/views/view.cc » ('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) 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 #ifndef UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 1097 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
1098 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 1098 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
1099 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; 1099 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE;
1100 1100
1101 // Finds the layer that this view paints to (it may belong to an ancestor 1101 // Finds the layer that this view paints to (it may belong to an ancestor
1102 // view), then reorders the immediate children of that layer to match the 1102 // view), then reorders the immediate children of that layer to match the
1103 // order of the view tree. 1103 // order of the view tree.
1104 virtual void ReorderLayers(); 1104 virtual void ReorderLayers();
1105 1105
1106 // This reorders the immediate children of |*parent_layer| to match the 1106 // This reorders the immediate children of |*parent_layer| to match the
1107 // order of the view tree. 1107 // order of the view tree. Child layers which are owned by a view are
1108 // reordered so that they are below any child layers not owned by a view.
1109 // Widget::ReorderNativeViews() should be called to reorder any child layers
1110 // with an associated view. Widget::ReorderNativeViews() may reorder layers
1111 // below layers owned by a view.
1108 virtual void ReorderChildLayers(ui::Layer* parent_layer); 1112 virtual void ReorderChildLayers(ui::Layer* parent_layer);
1109 1113
1110 // Input --------------------------------------------------------------------- 1114 // Input ---------------------------------------------------------------------
1111 1115
1112 // Called by HitTestRect() to see if this View has a custom hit test mask. If 1116 // Called by HitTestRect() to see if this View has a custom hit test mask. If
1113 // the return value is true, GetHitTestMask() will be called to obtain the 1117 // the return value is true, GetHitTestMask() will be called to obtain the
1114 // mask. Default value is false, in which case the View will hit-test against 1118 // mask. Default value is false, in which case the View will hit-test against
1115 // its bounds. 1119 // its bounds.
1116 virtual bool HasHitTestMask() const; 1120 virtual bool HasHitTestMask() const;
1117 1121
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 // Belongs to this view, but it's reference-counted on some platforms 1542 // Belongs to this view, but it's reference-counted on some platforms
1539 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1543 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1540 NativeViewAccessibility* native_view_accessibility_; 1544 NativeViewAccessibility* native_view_accessibility_;
1541 1545
1542 DISALLOW_COPY_AND_ASSIGN(View); 1546 DISALLOW_COPY_AND_ASSIGN(View);
1543 }; 1547 };
1544 1548
1545 } // namespace views 1549 } // namespace views
1546 1550
1547 #endif // UI_VIEWS_VIEW_H_ 1551 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/native/native_view_host_aura_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698