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

Side by Side Diff: ui/accessibility/platform/atk_util_auralinux.cc

Issue 1089003003: Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about FILE thread Created 5 years, 7 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 #include <atk/atk.h> 5 #include <atk/atk.h>
6 #if defined(USE_GCONF) 6 #if defined(USE_GCONF)
7 #include <gconf/gconf-client.h> 7 #include <gconf/gconf-client.h>
8 #endif 8 #endif
9 #include <glib-2.0/gmodule.h> 9 #include <glib-2.0/gmodule.h>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // 133 //
134 134
135 namespace ui { 135 namespace ui {
136 136
137 // static 137 // static
138 AtkUtilAuraLinux* AtkUtilAuraLinux::GetInstance() { 138 AtkUtilAuraLinux* AtkUtilAuraLinux::GetInstance() {
139 return Singleton<AtkUtilAuraLinux>::get(); 139 return Singleton<AtkUtilAuraLinux>::get();
140 } 140 }
141 141
142 AtkUtilAuraLinux::AtkUtilAuraLinux() { 142 AtkUtilAuraLinux::AtkUtilAuraLinux() {
143 }
144
145 void AtkUtilAuraLinux::Initialize(
146 scoped_refptr<base::TaskRunner> init_task_runner) {
147 // TODO(k.czech): use |init_task_runner| to post a task to do the
148 // initialization rather than doing it on this thread.
149 // http://crbug.com/468112
150
143 // Register our util class. 151 // Register our util class.
144 g_type_class_unref(g_type_class_ref(ATK_UTIL_AURALINUX_TYPE)); 152 g_type_class_unref(g_type_class_ref(ATK_UTIL_AURALINUX_TYPE));
145 153
146 if (!ShouldEnableAccessibility()) { 154 if (!ShouldEnableAccessibility()) {
147 VLOG(1) << "Will not enable ATK accessibility support."; 155 VLOG(1) << "Will not enable ATK accessibility support.";
148 return; 156 return;
149 } 157 }
150 158
151 VLOG(1) << "Enabling ATK accessibility support."; 159 VLOG(1) << "Enabling ATK accessibility support.";
152 160
(...skipping 12 matching lines...) Expand all
165 if (g_module_symbol(bridge, "gnome_accessibility_module_init", 173 if (g_module_symbol(bridge, "gnome_accessibility_module_init",
166 (gpointer *)&gnome_accessibility_module_init)) { 174 (gpointer *)&gnome_accessibility_module_init)) {
167 (*gnome_accessibility_module_init)(); 175 (*gnome_accessibility_module_init)();
168 } 176 }
169 } 177 }
170 178
171 AtkUtilAuraLinux::~AtkUtilAuraLinux() { 179 AtkUtilAuraLinux::~AtkUtilAuraLinux() {
172 } 180 }
173 181
174 } // namespace ui 182 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/platform/atk_util_auralinux.h ('k') | ui/accessibility/platform/ax_platform_node_auralinux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698