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

Unified Diff: ui/gfx/geometry/r_tree_base.h

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/display_change_notifier_unittest.cc ('k') | ui/gfx/image/canvas_image_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/r_tree_base.h
diff --git a/ui/gfx/geometry/r_tree_base.h b/ui/gfx/geometry/r_tree_base.h
index b83aeefc0e525b978c7889f9f2e49b4b37a6947b..dbb3b6d5630974b21204d8d00c0d95e00c6a37fe 100644
--- a/ui/gfx/geometry/r_tree_base.h
+++ b/ui/gfx/geometry/r_tree_base.h
@@ -93,13 +93,13 @@ class GFX_EXPORT RTreeBase {
class GFX_EXPORT RecordBase : public NodeBase {
public:
explicit RecordBase(const Rect& rect);
- virtual ~RecordBase();
+ ~RecordBase() override;
- virtual void AppendIntersectingRecords(const Rect& query_rect,
- Records* records_out) const override;
- virtual void AppendAllRecords(Records* records_out) const override;
- virtual scoped_ptr<NodeBase> RemoveAndReturnLastChild() override;
- virtual int Level() const override;
+ void AppendIntersectingRecords(const Rect& query_rect,
+ Records* records_out) const override;
+ void AppendAllRecords(Records* records_out) const override;
+ scoped_ptr<NodeBase> RemoveAndReturnLastChild() override;
+ int Level() const override;
private:
friend class RTreeTest;
@@ -112,13 +112,13 @@ class GFX_EXPORT RTreeBase {
public:
// Constructs an empty Node with |level_| of 0.
Node();
- virtual ~Node();
+ ~Node() override;
- virtual void AppendIntersectingRecords(const Rect& query_rect,
- Records* records_out) const override;
- virtual scoped_ptr<NodeBase> RemoveAndReturnLastChild() override;
- virtual int Level() const override;
- virtual void AppendAllRecords(Records* matches_out) const override;
+ void AppendIntersectingRecords(const Rect& query_rect,
+ Records* records_out) const override;
+ scoped_ptr<NodeBase> RemoveAndReturnLastChild() override;
+ int Level() const override;
+ void AppendAllRecords(Records* matches_out) const override;
// Constructs a new Node that is the parent of this Node and already has
// this Node as its sole child. Valid to call only on root Nodes, meaning
@@ -219,7 +219,7 @@ class GFX_EXPORT RTreeBase {
Rects* vertical_bounds,
Rects* horizontal_bounds);
- virtual void RecomputeLocalBounds() override;
+ void RecomputeLocalBounds() override;
// Returns the increase in overlap value, as defined in Beckmann et al. as
// the sum of the areas of the intersection of all child rectangles
« no previous file with comments | « ui/gfx/display_change_notifier_unittest.cc ('k') | ui/gfx/image/canvas_image_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698