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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_
6 #define CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_
12 const char kServiceName[] = "org.freedesktop.IBus";
14 // Constants used to receive NameOwner signals from ibus-daemon. Note that
15 // "org.freedesktop.DBus" is used instead of "org.freedesktop.IBus" for these
17 const char kDBusServiceName[] = "org.freedesktop.DBus";
18 const char kDBusObjectPath[] = "/org/freedesktop/DBus";
19 const char kDBusInterface[] = "org.freedesktop.DBus";
20 const char kGetNameOwnerMethod[] = "GetNameOwner";
21 const char kNameOwnerChangedSignal[] = "NameOwnerChanged";
24 const char kServicePath[] = "/org/freedesktop/IBus";
25 const char kServiceInterface[] = "org.freedesktop.IBus";
26 const char kCreateInputContextMethod[] = "CreateInputContext";
27 const char kRegisterComponentMethod[] = "RegisterComponent";
28 const char kSetGlobalEngineMethod[] = "SetGlobalEngine";
29 const char kExitMethod[] = "Exit";
32 namespace input_context {
33 const char kServiceInterface[] = "org.freedesktop.IBus.InputContext";
34 const char kForwardKeyEventSignal[] = "ForwardKeyEvent";
35 const char kHidePreeditTextSignal[] = "HidePreeditText";
36 const char kShowPreeditTextSignal[] = "ShowPreeditText";
37 const char kUpdatePreeditTextSignal[] = "UpdatePreeditText";
38 const char kDeleteSurroundingTextSignal[] = "DeleteSurroundingText";
39 const char kFocusInMethod[] = "FocusIn";
40 const char kFocusOutMethod[] = "FocusOut";
41 const char kResetMethod[] = "Reset";
42 const char kSetCapabilitiesMethod[] = "SetCapabilities";
43 const char kSetCursorLocationMethod[] = "SetCursorLocation";
44 const char kProcessKeyEventMethod[] = "ProcessKeyEvent";
45 const char kSetSurroundingTextMethod[] = "SetSurroundingText";
46 const char kPropertyActivateMethod[] = "PropertyActivate";
47 } // namespace input_context
49 namespace engine_factory {
50 const char kServicePath[] = "/org/freedesktop/IBus/Factory";
51 const char kServiceInterface[] = "org.freedesktop.IBus.Factory";
52 const char kCreateEngineMethod[] = "CreateEngine";
53 } // namespace engine_factory
56 const char kServiceName[] = "org.freedesktop.IBus.Config";
57 const char kServicePath[] = "/org/freedesktop/IBus/Config";
58 const char kServiceInterface[] = "org.freedesktop.IBus.Config";
59 const char kSetValueMethod[] = "SetValue";
63 } // namespace chromeos
65 #endif // CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_