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

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

Issue 246433012: Extend AXTreeSourceViews to handle aura::Window and views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With tests. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_
7
8 #include "ui/aura/window_observer.h"
9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
10
11 namespace aura {
12 class Window;
13 } // namespace aura
14
15 namespace views {
16
17 class AXWindowObjWrapper : public AXAuraObjWrapper,
18 public aura::WindowObserver {
19 public:
20 explicit AXWindowObjWrapper(aura::Window* window);
21 virtual ~AXWindowObjWrapper();
22
23 // AXAuraObjWrapper overrides.
24 virtual AXAuraObjWrapper* GetParent() OVERRIDE;
25 virtual void GetChildren(
26 std::vector<AXAuraObjWrapper*>* out_children) OVERRIDE;
27 virtual void Serialize(ui::AXNodeData* out_node_data) OVERRIDE;
28 virtual int32 GetID() OVERRIDE;
29
30 // WindowObserver overrides.
31 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
32
33 private:
34 aura::Window* window_;
35
36 DISALLOW_COPY_AND_ASSIGN(AXWindowObjWrapper);
37 };
38
39 } // namespace views
40
41 #endif // UI_VIEWS_ACCESSIBILITY_AX_WINDOW_OBJ_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698