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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_auralinux.h

Issue 1029043002: Implementing ATK functions get_index_in_parent & ref_relation_set for Chrome UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing one more nit Created 5 years, 9 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
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_auralinux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 5 #ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
6 #define UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 6 #define UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
7 7
8 #include <atk/atk.h> 8 #include <atk/atk.h>
9 9
10 #include "ui/accessibility/ax_export.h" 10 #include "ui/accessibility/ax_export.h"
11 #include "ui/accessibility/platform/ax_platform_node_base.h" 11 #include "ui/accessibility/platform/ax_platform_node_base.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 // Implements accessibility on Aura Linux using ATK. 15 // Implements accessibility on Aura Linux using ATK.
16 class AXPlatformNodeAuraLinux : public AXPlatformNodeBase { 16 class AXPlatformNodeAuraLinux : public AXPlatformNodeBase {
17 public: 17 public:
18 AXPlatformNodeAuraLinux(); 18 AXPlatformNodeAuraLinux();
19 19
20 // Set or get the root-level Application object that's the parent of all 20 // Set or get the root-level Application object that's the parent of all
21 // top-level windows. 21 // top-level windows.
22 AX_EXPORT static void SetApplication(AXPlatformNode* application); 22 AX_EXPORT static void SetApplication(AXPlatformNode* application);
23 static AXPlatformNode* application() { return application_; } 23 static AXPlatformNode* application() { return application_; }
24 24
25 AtkRole GetAtkRole(); 25 AtkRole GetAtkRole();
26 void GetAtkState(AtkStateSet* state_set); 26 void GetAtkState(AtkStateSet* state_set);
27 void GetAtkRelations(AtkRelationSet* atk_relation_set);
27 28
28 // AXPlatformNode overrides. 29 // AXPlatformNode overrides.
29 void Destroy() override; 30 void Destroy() override;
30 gfx::NativeViewAccessible GetNativeViewAccessible() override; 31 gfx::NativeViewAccessible GetNativeViewAccessible() override;
31 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; 32 void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
32 33
33 // AXPlatformNodeBase overrides. 34 // AXPlatformNodeBase overrides.
34 void Init(AXPlatformNodeDelegate* delegate) override; 35 void Init(AXPlatformNodeDelegate* delegate) override;
35 int GetIndexInParent() override; 36 int GetIndexInParent() override;
36 37
37 private: 38 private:
38 ~AXPlatformNodeAuraLinux() override; 39 ~AXPlatformNodeAuraLinux() override;
39 40
40 // We own a reference to this ref-counted object. 41 // We own a reference to this ref-counted object.
41 AtkObject* atk_object_; 42 AtkObject* atk_object_;
42 43
43 // The root-level Application object that's the parent of all 44 // The root-level Application object that's the parent of all
44 // top-level windows. 45 // top-level windows.
45 static AXPlatformNode* application_; 46 static AXPlatformNode* application_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); 48 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux);
48 }; 49 };
49 50
50 } // namespace ui 51 } // namespace ui
51 52
52 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 53 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
OLDNEW
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698