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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 G_END_DECLS 129 G_END_DECLS
130 130
131 // 131 //
132 // AtkUtilAuraLinuxClass implementation. 132 // AtkUtilAuraLinuxClass implementation.
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 base::Singleton<AtkUtilAuraLinux>::get();
140 } 140 }
141 141
142 AtkUtilAuraLinux::AtkUtilAuraLinux() { 142 AtkUtilAuraLinux::AtkUtilAuraLinux() {
143 } 143 }
144 144
145 void AtkUtilAuraLinux::Initialize( 145 void AtkUtilAuraLinux::Initialize(
146 scoped_refptr<base::TaskRunner> /* init_task_runner */) { 146 scoped_refptr<base::TaskRunner> /* init_task_runner */) {
147 // TODO(k.czech): use |init_task_runner| to post a task to do the 147 // TODO(k.czech): use |init_task_runner| to post a task to do the
148 // initialization rather than doing it on this thread. 148 // initialization rather than doing it on this thread.
149 // http://crbug.com/468112 149 // http://crbug.com/468112
(...skipping 23 matching lines...) Expand all
173 if (g_module_symbol(bridge, "gnome_accessibility_module_init", 173 if (g_module_symbol(bridge, "gnome_accessibility_module_init",
174 (gpointer *)&gnome_accessibility_module_init)) { 174 (gpointer *)&gnome_accessibility_module_init)) {
175 (*gnome_accessibility_module_init)(); 175 (*gnome_accessibility_module_init)();
176 } 176 }
177 } 177 }
178 178
179 AtkUtilAuraLinux::~AtkUtilAuraLinux() { 179 AtkUtilAuraLinux::~AtkUtilAuraLinux() {
180 } 180 }
181 181
182 } // namespace ui 182 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/platform/atk_util_auralinux.h ('k') | ui/aura/test/event_generator_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698