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

Side by Side Diff: ui/views/accessibility/ax_widget_obj_wrapper.h

Issue 679233002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_ 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_ 6 #define UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_
7 7
8 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" 8 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
9 #include "ui/views/widget/widget_observer.h" 9 #include "ui/views/widget/widget_observer.h"
10 #include "ui/views/widget/widget_removals_observer.h" 10 #include "ui/views/widget/widget_removals_observer.h"
11 11
12 namespace views { 12 namespace views {
13 class Widget; 13 class Widget;
14 14
15 // Describes a |Widget| for use with other AX classes. 15 // Describes a |Widget| for use with other AX classes.
16 class AXWidgetObjWrapper : public AXAuraObjWrapper, 16 class AXWidgetObjWrapper : public AXAuraObjWrapper,
17 public WidgetObserver, 17 public WidgetObserver,
18 public WidgetRemovalsObserver { 18 public WidgetRemovalsObserver {
19 public: 19 public:
20 explicit AXWidgetObjWrapper(Widget* widget); 20 explicit AXWidgetObjWrapper(Widget* widget);
21 virtual ~AXWidgetObjWrapper(); 21 ~AXWidgetObjWrapper() override;
22 22
23 // AXAuraObjWrapper overrides. 23 // AXAuraObjWrapper overrides.
24 virtual AXAuraObjWrapper* GetParent() override; 24 AXAuraObjWrapper* GetParent() override;
25 virtual void GetChildren( 25 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override;
26 std::vector<AXAuraObjWrapper*>* out_children) override; 26 void Serialize(ui::AXNodeData* out_node_data) override;
27 virtual void Serialize(ui::AXNodeData* out_node_data) override; 27 int32 GetID() override;
28 virtual int32 GetID() override;
29 28
30 // WidgetObserver overrides. 29 // WidgetObserver overrides.
31 virtual void OnWidgetDestroying(Widget* widget) override; 30 void OnWidgetDestroying(Widget* widget) override;
32 31
33 // WidgetRemovalsObserver overrides. 32 // WidgetRemovalsObserver overrides.
34 virtual void OnWillRemoveView(Widget* widget, View* view) override; 33 void OnWillRemoveView(Widget* widget, View* view) override;
35 34
36 private: 35 private:
37 Widget* widget_; 36 Widget* widget_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(AXWidgetObjWrapper); 38 DISALLOW_COPY_AND_ASSIGN(AXWidgetObjWrapper);
40 }; 39 };
41 40
42 } // namespace views 41 } // namespace views
43 42
44 #endif // UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_ 43 #endif // UI_VIEWS_ACCESSIBILITY_AX_WIDGET_OBJ_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/views/accessibility/ax_view_obj_wrapper.h ('k') | ui/views/accessibility/ax_window_obj_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698