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

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

Issue 1021933003: Implementing ATK state mapping for Chrome UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing 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 27
27 // AXPlatformNode overrides. 28 // AXPlatformNode overrides.
28 void Destroy() override; 29 void Destroy() override;
29 gfx::NativeViewAccessible GetNativeViewAccessible() override; 30 gfx::NativeViewAccessible GetNativeViewAccessible() override;
30 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; 31 void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
31 32
32 // AXPlatformNodeBase overrides. 33 // AXPlatformNodeBase overrides.
33 void Init(AXPlatformNodeDelegate* delegate) override; 34 void Init(AXPlatformNodeDelegate* delegate) override;
34 int GetIndexInParent() override; 35 int GetIndexInParent() override;
35 36
36 private: 37 private:
37 ~AXPlatformNodeAuraLinux() override; 38 ~AXPlatformNodeAuraLinux() override;
38 39
39 // We own a reference to this ref-counted object. 40 // We own a reference to this ref-counted object.
40 AtkObject* atk_object_; 41 AtkObject* atk_object_;
41 42
42 // The root-level Application object that's the parent of all 43 // The root-level Application object that's the parent of all
43 // top-level windows. 44 // top-level windows.
44 static AXPlatformNode* application_; 45 static AXPlatformNode* application_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); 47 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux);
47 }; 48 };
48 49
49 } // namespace ui 50 } // namespace ui
50 51
51 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 52 #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