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

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

Issue 1010083006: Implement AtkComponent interface for chrome UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 void GetAtkRelations(AtkRelationSet* atk_relation_set);
28 void GetExtents(gint* x, gint* y, gint* width, gint* height,
29 AtkCoordType coord_type);
30 void GetPosition(gint* x, gint* y, AtkCoordType coord_type);
31 void GetSize(gint* width, gint* height);
28 32
29 // AXPlatformNode overrides. 33 // AXPlatformNode overrides.
30 void Destroy() override; 34 void Destroy() override;
31 gfx::NativeViewAccessible GetNativeViewAccessible() override; 35 gfx::NativeViewAccessible GetNativeViewAccessible() override;
32 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; 36 void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
33 37
34 // AXPlatformNodeBase overrides. 38 // AXPlatformNodeBase overrides.
35 void Init(AXPlatformNodeDelegate* delegate) override; 39 void Init(AXPlatformNodeDelegate* delegate) override;
36 int GetIndexInParent() override; 40 int GetIndexInParent() override;
37 41
38 private: 42 private:
39 ~AXPlatformNodeAuraLinux() override; 43 ~AXPlatformNodeAuraLinux() override;
40 44
41 // We own a reference to this ref-counted object. 45 // We own a reference to this ref-counted object.
42 AtkObject* atk_object_; 46 AtkObject* atk_object_;
43 47
44 // The root-level Application object that's the parent of all 48 // The root-level Application object that's the parent of all
45 // top-level windows. 49 // top-level windows.
46 static AXPlatformNode* application_; 50 static AXPlatformNode* application_;
47 51
48 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); 52 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux);
49 }; 53 };
50 54
51 } // namespace ui 55 } // namespace ui
52 56
53 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 57 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698