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

Unified Diff: chromeos/dbus/ibus/ibus_text.h

Issue 10332228: Extends IBusText I/O function. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/dbus/ibus/ibus_text.cc » ('j') | chromeos/dbus/ibus/ibus_text.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/ibus/ibus_text.h
diff --git a/chromeos/dbus/ibus/ibus_text.h b/chromeos/dbus/ibus/ibus_text.h
index 6010b129890e61dd68e406828bf4df5c14ff3380..d4d3fdb57825b2665839104f1a3d845aad1af91b 100644
--- a/chromeos/dbus/ibus/ibus_text.h
+++ b/chromeos/dbus/ibus/ibus_text.h
@@ -82,10 +82,20 @@ class IBusText;
// Returns false if an error occures.
bool CHROMEOS_EXPORT PopIBusText(dbus::MessageReader* reader,
IBusText* ibus_text);
+// Pops a IBusText from |reader| and stores it's text field into text. Use
+// PopIBusText instead in the case of using any attribute entries in IBusText.
+// Return false if an error occures.
satorux1 2012/05/18 01:11:06 // Returns true on success.
Seigo Nonaka 2012/05/18 01:18:43 Done.
+bool CHROMEOS_EXPORT PopStringFromIBusText(dbus::MessageReader* reader,
+ std::string* text);
// Appends a IBusText to |writer|.
void CHROMEOS_EXPORT AppendIBusText(const IBusText& ibus_text,
dbus::MessageWriter* writer);
+// Appends a string to |writer| as IBusText without any attributes. Use
+// AppendIBusText instead in the case of using any attribute entries.
+void CHROMEOS_EXPORT AppendStringAsIBusText(const std::string& text,
+ dbus::MessageWriter* writer);
+
// Handles IBusText object which is used in dbus communication with ibus-daemon.
// The IBusAttribute has four uint32 variables and the IBusAttributes represents
// three type of decoration based on it's values.
« no previous file with comments | « no previous file | chromeos/dbus/ibus/ibus_text.cc » ('j') | chromeos/dbus/ibus/ibus_text.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698