Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / views / accessibility / ax_view_obj_wrapper.h
blob39cbc6536cdcefbc809325359fe53e652d88d348
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
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_
8 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
10 namespace views {
11 class View;
13 // Describes a |View| for use with other AX classes.
14 class AXViewObjWrapper : public AXAuraObjWrapper {
15 public:
16 explicit AXViewObjWrapper(View* view);
17 ~AXViewObjWrapper() override;
19 View* view() { return view_; }
21 // AXAuraObjWrapper overrides.
22 AXAuraObjWrapper* GetParent() override;
23 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override;
24 void Serialize(ui::AXNodeData* out_node_data) override;
25 int32 GetID() override;
26 void DoDefault() override;
27 void Focus() override;
28 void MakeVisible() override;
29 void SetSelection(int32 start, int32 end) override;
30 void ShowContextMenu() override;
32 private:
33 View* view_;
35 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper);
38 } // namespace views
40 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_