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 #ifndef CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ |
6 #define CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
14 #include "chromeos/dbus/dbus_client_implementation_type.h" | 14 #include "chromeos/dbus/dbus_client_implementation_type.h" |
15 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
16 | 16 |
17 namespace dbus { | 17 namespace dbus { |
18 class Bus; | 18 class Bus; |
19 } // namespace dbus | 19 } // namespace dbus |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace ibus { | |
24 class IBusComponent; | 23 class IBusComponent; |
25 } // namespace ibus | |
26 | |
27 class IBusInputContextClient; | 24 class IBusInputContextClient; |
28 | 25 |
29 // A class to make the actual DBus calls for IBusConfig service. | 26 // A class to make the actual DBus calls for IBusConfig service. |
30 class CHROMEOS_EXPORT IBusConfigClient { | 27 class CHROMEOS_EXPORT IBusConfigClient { |
31 public: | 28 public: |
32 typedef base::Callback<void()> ErrorCallback; | 29 typedef base::Callback<void()> ErrorCallback; |
33 typedef base::Callback<void()> OnIBusConfigReady; | 30 typedef base::Callback<void()> OnIBusConfigReady; |
34 virtual ~IBusConfigClient(); | 31 virtual ~IBusConfigClient(); |
35 | 32 |
36 // Initializes IBusConfig asynchronously. |on_ready| will be called if it is | 33 // Initializes IBusConfig asynchronously. |on_ready| will be called if it is |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Create() should be used instead. | 68 // Create() should be used instead. |
72 IBusConfigClient(); | 69 IBusConfigClient(); |
73 | 70 |
74 private: | 71 private: |
75 DISALLOW_COPY_AND_ASSIGN(IBusConfigClient); | 72 DISALLOW_COPY_AND_ASSIGN(IBusConfigClient); |
76 }; | 73 }; |
77 | 74 |
78 } // namespace chromeos | 75 } // namespace chromeos |
79 | 76 |
80 #endif // CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ | 77 #endif // CHROMEOS_DBUS_IBUS_IBUS_CONFIG_CLIENT_H_ |
OLD | NEW |