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

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

Issue 11783085: Extends IBusLookupTable to handle IsEqual/CopyFrom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chromeos/dbus/ibus/ibus_lookup_table.h
diff --git a/chromeos/dbus/ibus/ibus_lookup_table.h b/chromeos/dbus/ibus/ibus_lookup_table.h
index 6fcc64a6db521360959e372e64b5c2b51522404a..d59de6303b5cb7ab8ced07befad3061c830d1d78 100644
--- a/chromeos/dbus/ibus/ibus_lookup_table.h
+++ b/chromeos/dbus/ibus/ibus_lookup_table.h
@@ -82,8 +82,8 @@ void CHROMEOS_EXPORT AppendIBusLookupTable(const IBusLookupTable& table,
class CHROMEOS_EXPORT IBusLookupTable {
public:
enum Orientation {
- IBUS_LOOKUP_TABLE_ORIENTATION_HORIZONTAL = 0,
- IBUS_LOOKUP_TABLE_ORIENTATION_VERTICAL = 1,
+ HORIZONTAL = 0,
+ VERTICAL = 1,
};
// Represents a candidate entry. In dbus communication, each
@@ -102,6 +102,12 @@ class CHROMEOS_EXPORT IBusLookupTable {
IBusLookupTable();
virtual ~IBusLookupTable();
+ // Returns true if the given |table| is equal to myself.
+ bool IsEqual(const IBusLookupTable& table) const;
+
+ // Copy |table| to myself.
satorux1 2013/01/15 23:58:47 Copies
Seigo Nonaka 2013/01/16 01:25:24 Done.
+ void CopyFrom(const IBusLookupTable& table);
+
// Returns the number of candidates in one page.
uint32 page_size() const { return page_size_; }
void set_page_size(uint32 page_size) { page_size_ = page_size; }
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_engine_ibus.cc ('k') | chromeos/dbus/ibus/ibus_lookup_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698