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

Unified Diff: ui/views/view.h

Issue 269513002: readability review for luken (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang repairs Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 8ddf734a412d9e1ad82b8523b3afe25b27155d66..93cbd481ddb8cb8f79d6841cba8e77551620f9bd 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1248,6 +1248,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
friend class FocusManager;
friend class Widget;
+ typedef gfx::RTree<intptr_t> BoundsTree;
+
// Painting -----------------------------------------------------------------
enum SchedulePaintType {
@@ -1340,17 +1342,17 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// If needed, updates the bounds rectangle in paint root coordinate space
// in the supplied RTree. Recurses to children for recomputation as well.
- void UpdateRootBounds(gfx::RTree* bounds_tree, const gfx::Vector2d& offset);
+ void UpdateRootBounds(BoundsTree* bounds_tree, const gfx::Vector2d& offset);
// Remove self and all children from the supplied bounds tree. This is used,
// for example, when a view gets a layer and therefore becomes paint root. It
// needs to remove all references to itself and its children from any previous
// paint root that may have been tracking it.
- void RemoveRootBounds(gfx::RTree* bounds_tree);
+ void RemoveRootBounds(BoundsTree* bounds_tree);
// Traverse up the View hierarchy to the first ancestor that is a paint root
// and return a pointer to its |bounds_tree_| or NULL if no tree is found.
- gfx::RTree* GetBoundsTreeFromPaintRoot();
+ BoundsTree* GetBoundsTreeFromPaintRoot();
// Transformations -----------------------------------------------------------
@@ -1531,7 +1533,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// If this View IsPaintRoot() then this will be a pointer to a spatial data
// structure where we will keep the bounding boxes of all our children, for
// efficient paint damage rectangle intersection.
- scoped_ptr<gfx::RTree> bounds_tree_;
+ scoped_ptr<BoundsTree> bounds_tree_;
// Transformations -----------------------------------------------------------
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698