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

Unified Diff: trunk/src/ui/views/view.h

Issue 338833004: Revert 276827 "readability review for luken" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/ui/gfx/gfx.gyp ('k') | trunk/src/ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/views/view.h
===================================================================
--- trunk/src/ui/views/view.h (revision 277531)
+++ trunk/src/ui/views/view.h (working copy)
@@ -1248,8 +1248,6 @@
friend class FocusManager;
friend class Widget;
- typedef gfx::RTree<intptr_t> BoundsTree;
-
// Painting -----------------------------------------------------------------
enum SchedulePaintType {
@@ -1342,17 +1340,17 @@
// If needed, updates the bounds rectangle in paint root coordinate space
// in the supplied RTree. Recurses to children for recomputation as well.
- void UpdateRootBounds(BoundsTree* bounds_tree, const gfx::Vector2d& offset);
+ void UpdateRootBounds(gfx::RTree* 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(BoundsTree* bounds_tree);
+ void RemoveRootBounds(gfx::RTree* 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.
- BoundsTree* GetBoundsTreeFromPaintRoot();
+ gfx::RTree* GetBoundsTreeFromPaintRoot();
// Transformations -----------------------------------------------------------
@@ -1533,7 +1531,7 @@
// 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<BoundsTree> bounds_tree_;
+ scoped_ptr<gfx::RTree> bounds_tree_;
// Transformations -----------------------------------------------------------
« no previous file with comments | « trunk/src/ui/gfx/gfx.gyp ('k') | trunk/src/ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698