OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chromeos/dbus/ibus/ibus_engine_factory_service.h" | 5 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "chromeos/dbus/ibus/ibus_constants.h" | 11 #include "chromeos/dbus/ibus/ibus_constants.h" |
12 #include "chromeos/ime/ibus_bridge.h" | 12 #include "chromeos/ime/ibus_bridge.h" |
13 #include "dbus/bus.h" | 13 #include "dbus/bus.h" |
| 14 #include "dbus/exported_object.h" |
14 #include "dbus/message.h" | 15 #include "dbus/message.h" |
15 #include "dbus/exported_object.h" | |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 namespace { | 19 namespace { |
20 const char* kObjectPathPrefix = "/org/freedesktop/IBus/Engine/"; | 20 const char* kObjectPathPrefix = "/org/freedesktop/IBus/Engine/"; |
21 } // namespace | 21 } // namespace |
22 | 22 |
23 class IBusEngineFactoryServiceImpl : public IBusEngineFactoryService { | 23 class IBusEngineFactoryServiceImpl : public IBusEngineFactoryService { |
24 public: | 24 public: |
25 explicit IBusEngineFactoryServiceImpl(dbus::Bus* bus) | 25 explicit IBusEngineFactoryServiceImpl(dbus::Bus* bus) |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 IBusEngineFactoryService* IBusEngineFactoryService::Create( | 164 IBusEngineFactoryService* IBusEngineFactoryService::Create( |
165 dbus::Bus* bus, | 165 dbus::Bus* bus, |
166 DBusClientImplementationType type) { | 166 DBusClientImplementationType type) { |
167 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 167 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
168 return new IBusEngineFactoryServiceImpl(bus); | 168 return new IBusEngineFactoryServiceImpl(bus); |
169 else | 169 else |
170 return new IBusEngineFactoryServiceDaemonlessImpl(); | 170 return new IBusEngineFactoryServiceDaemonlessImpl(); |
171 } | 171 } |
172 | 172 |
173 } // namespace chromeos | 173 } // namespace chromeos |
OLD | NEW |