Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / accessibility / platform / atk_util_auralinux.h
bloba5bc75d931112dae5db99a91d1d675acb99a7b5e
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
3 // found in the LICENSE file.
5 #ifndef UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_
6 #define UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_
8 #include "base/memory/singleton.h"
9 #include "ui/accessibility/ax_export.h"
11 namespace base {
12 class TaskRunner;
15 namespace ui {
17 // This singleton class initializes ATK (accessibility toolkit) and
18 // registers an implementation of the AtkUtil class, a global class that
19 // every accessible application needs to register once.
20 class AtkUtilAuraLinux {
21 public:
22 // Get the single instance of this class.
23 static AtkUtilAuraLinux* GetInstance();
25 AtkUtilAuraLinux();
26 virtual ~AtkUtilAuraLinux();
28 void Initialize(scoped_refptr<base::TaskRunner> init_task_runner);
30 private:
31 friend struct base::DefaultSingletonTraits<AtkUtilAuraLinux>;
34 } // namespace ui
36 #endif // UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_