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

Unified Diff: ui/accessibility/ax_serializable_tree.cc

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/accessibility/ax_serializable_tree.h ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_serializable_tree.cc
diff --git a/ui/accessibility/ax_serializable_tree.cc b/ui/accessibility/ax_serializable_tree.cc
index 3198b6134ff32d4bd017682788ca1b5dd2e6e4da..750b3b0c2d509f1c27b9561578cbb6ad185798c5 100644
--- a/ui/accessibility/ax_serializable_tree.cc
+++ b/ui/accessibility/ax_serializable_tree.cc
@@ -17,47 +17,34 @@ namespace ui {
class AX_EXPORT AXTreeSourceAdapter : public AXTreeSource<const AXNode*> {
public:
AXTreeSourceAdapter(AXTree* tree) : tree_(tree) {}
- virtual ~AXTreeSourceAdapter() {}
+ ~AXTreeSourceAdapter() override {}
// AXTreeSource implementation.
- virtual AXNode* GetRoot() const override {
- return tree_->GetRoot();
- }
+ AXNode* GetRoot() const override { return tree_->GetRoot(); }
- virtual AXNode* GetFromId(int32 id) const override {
- return tree_->GetFromId(id);
- }
+ AXNode* GetFromId(int32 id) const override { return tree_->GetFromId(id); }
- virtual int32 GetId(const AXNode* node) const override {
- return node->id();
- }
+ int32 GetId(const AXNode* node) const override { return node->id(); }
- virtual void GetChildren(
- const AXNode* node,
- std::vector<const AXNode*>* out_children) const override {
+ void GetChildren(const AXNode* node,
+ std::vector<const AXNode*>* out_children) const override {
for (int i = 0; i < node->child_count(); ++i)
out_children->push_back(node->ChildAtIndex(i));
}
- virtual AXNode* GetParent(const AXNode* node) const override {
+ AXNode* GetParent(const AXNode* node) const override {
return node->parent();
}
- virtual bool IsValid(const AXNode* node) const override {
- return node != NULL;
- }
+ bool IsValid(const AXNode* node) const override { return node != NULL; }
- virtual bool IsEqual(const AXNode* node1,
- const AXNode* node2) const override {
+ bool IsEqual(const AXNode* node1, const AXNode* node2) const override {
return node1 == node2;
}
- virtual const AXNode* GetNull() const override {
- return NULL;
- }
+ const AXNode* GetNull() const override { return NULL; }
- virtual void SerializeNode(
- const AXNode* node, AXNodeData* out_data) const override {
+ void SerializeNode(const AXNode* node, AXNodeData* out_data) const override {
*out_data = node->data();
}
« no previous file with comments | « ui/accessibility/ax_serializable_tree.h ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698