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

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: window coords 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);
32 gfx::Rect GetWindowCoords();
dmazzoni 2015/03/27 19:09:15 This should be private. Move it down under the pri
28 33
29 // AXPlatformNode overrides. 34 // AXPlatformNode overrides.
30 void Destroy() override; 35 void Destroy() override;
31 gfx::NativeViewAccessible GetNativeViewAccessible() override; 36 gfx::NativeViewAccessible GetNativeViewAccessible() override;
32 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; 37 void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
33 38
34 // AXPlatformNodeBase overrides. 39 // AXPlatformNodeBase overrides.
35 void Init(AXPlatformNodeDelegate* delegate) override; 40 void Init(AXPlatformNodeDelegate* delegate) override;
36 int GetIndexInParent() override; 41 int GetIndexInParent() override;
37 42
38 private: 43 private:
39 ~AXPlatformNodeAuraLinux() override; 44 ~AXPlatformNodeAuraLinux() override;
40 45
41 // We own a reference to this ref-counted object. 46 // We own a reference to this ref-counted object.
42 AtkObject* atk_object_; 47 AtkObject* atk_object_;
43 48
44 // The root-level Application object that's the parent of all 49 // The root-level Application object that's the parent of all
45 // top-level windows. 50 // top-level windows.
46 static AXPlatformNode* application_; 51 static AXPlatformNode* application_;
47 52
48 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux); 53 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux);
49 }; 54 };
50 55
51 } // namespace ui 56 } // namespace ui
52 57
53 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_ 58 #endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698