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

Unified Diff: ui/accessibility/platform/atk_util_auralinux.h

Issue 1028553003: Linux Aura accessibility is enabled only on GNOME desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just minor cleanup 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 side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/atk_util_auralinux.h
diff --git a/ui/accessibility/platform/atk_util_auralinux.h b/ui/accessibility/platform/atk_util_auralinux.h
index 349c41a53de07af1061fbb44f598efdb221be2e4..87539762bdb13526a67ca21e155d36fe7ad6935d 100644
--- a/ui/accessibility/platform/atk_util_auralinux.h
+++ b/ui/accessibility/platform/atk_util_auralinux.h
@@ -5,9 +5,15 @@
#ifndef UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_
#define UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_
+#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "ui/accessibility/ax_export.h"
+namespace base {
+class Thread;
+}
+
namespace ui {
// This singleton class initializes ATK (accessibility toolkit) and
@@ -20,9 +26,17 @@ class AtkUtilAuraLinux {
AtkUtilAuraLinux();
virtual ~AtkUtilAuraLinux();
-
private:
friend struct DefaultSingletonTraits<AtkUtilAuraLinux>;
+
+ void CheckIfAccessibilityIsEnabled();
+ void CheckPlatformAccessibilitySupport();
+ void OnStopAccessibilityThread();
+
+#if defined(USE_GCONF) || defined(USE_DBUS)
+ bool is_enabled_;
+ scoped_ptr<base::Thread> accessibility_init_thread_;
+#endif
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698