summaryrefslogtreecommitdiffstats
path: root/chromium/ui/base/ime/infolist_entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/base/ime/infolist_entry.cc')
-rw-r--r--chromium/ui/base/ime/infolist_entry.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/ui/base/ime/infolist_entry.cc b/chromium/ui/base/ime/infolist_entry.cc
new file mode 100644
index 00000000000..7423f73abb7
--- /dev/null
+++ b/chromium/ui/base/ime/infolist_entry.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/ime/infolist_entry.h"
+
+namespace ui {
+
+InfolistEntry::InfolistEntry(const base::string16& title,
+ const base::string16& body)
+ : title(title), body(body), highlighted(false) {}
+
+bool InfolistEntry::operator==(const InfolistEntry& other) const {
+ return title == other.title && body == other.body &&
+ highlighted == other.highlighted;
+}
+
+bool InfolistEntry::operator!=(const InfolistEntry& other) const {
+ return !(*this == other);
+}
+
+} // namespace ui