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

Unified Diff: ui/views/view.h

Issue 2561253002: [ash-md] Adds support for Z-order iteration in views::View (Closed)
Patch Set: [ash-md] Adds support for Z-order iteration in views::View (using GetChildrenOrderedByVisualOrder) Created 4 years 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index a6811afca8a5c084b0d81d5ab375e483cc46c006..0b51589cb3efa763b2550a217a19ac345cb226bb 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -307,6 +307,12 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Returns whether the view is enabled.
bool enabled() const { return enabled_; }
+ // Get a container of |children_| arranged according to the stacking order.
sky 2016/12/13 23:40:56 How about: Returns the child views ordered in reve
varkha 2016/12/14 17:51:38 I will look into the rest of the comments but maki
varkha 2016/12/19 20:35:44 Done (edited the comment).
+ // This defaults to returning |children_| but can be overridden to implement
+ // a different stacking order. This order is taken into account by painting
+ // and targeting implementations.
+ virtual View::Views GetChildrenOrderedByVisualOrder();
+
// Transformations -----------------------------------------------------------
// Methods for setting transformations for a view (e.g. rotation, scaling).
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.cc ('k') | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698