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_PANEL_SERVICE_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_PANEL_SERVICE_H_ |
6 #define CHROMEOS_DBUS_IBUS_IBUS_PANEL_SERVICE_H_ | 6 #define CHROMEOS_DBUS_IBUS_IBUS_PANEL_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // A interface to handle the property related method call. | 61 // A interface to handle the property related method call. |
62 class CHROMEOS_EXPORT IBusPanelPropertyHandlerInterface { | 62 class CHROMEOS_EXPORT IBusPanelPropertyHandlerInterface { |
63 public: | 63 public: |
64 virtual ~IBusPanelPropertyHandlerInterface() {} | 64 virtual ~IBusPanelPropertyHandlerInterface() {} |
65 | 65 |
66 // Called when a new property is registered. | 66 // Called when a new property is registered. |
67 virtual void RegisterProperties(const ibus::IBusPropertyList& properties) = 0; | 67 virtual void RegisterProperties(const ibus::IBusPropertyList& properties) = 0; |
68 | 68 |
69 // Called when current property is updated. | 69 // Called when current property is updated. |
70 virtual void UpdateProperties(const ibus::IBusPropertyList& properties) = 0; | 70 virtual void UpdateProperty(const ibus::IBusProperty& property) = 0; |
71 | 71 |
72 protected: | 72 protected: |
73 IBusPanelPropertyHandlerInterface() {} | 73 IBusPanelPropertyHandlerInterface() {} |
74 }; | 74 }; |
75 | 75 |
76 // A class to make the actual DBus method call handling for IBusPanel service. | 76 // A class to make the actual DBus method call handling for IBusPanel service. |
77 // The exported method call is used by ibus-daemon to process candidate window | 77 // The exported method call is used by ibus-daemon to process candidate window |
78 // related event, because Chrome works as candidate window. This class is | 78 // related event, because Chrome works as candidate window. This class is |
79 // managed by DBusThreadManager. | 79 // managed by DBusThreadManager. |
80 class CHROMEOS_EXPORT IBusPanelService { | 80 class CHROMEOS_EXPORT IBusPanelService { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 IBusPanelService(); | 121 IBusPanelService(); |
122 | 122 |
123 private: | 123 private: |
124 DISALLOW_COPY_AND_ASSIGN(IBusPanelService); | 124 DISALLOW_COPY_AND_ASSIGN(IBusPanelService); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace ibus | 127 } // namespace ibus |
128 } // namespace chromeos | 128 } // namespace chromeos |
129 | 129 |
130 #endif // CHROMEOS_DBUS_IBUS_IBUS_PANEL_SERVICE_H_ | 130 #endif // CHROMEOS_DBUS_IBUS_IBUS_PANEL_SERVICE_H_ |
OLD | NEW |