• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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.
4 
5 #include "ui/base/ime/infolist_entry.h"
6 
7 namespace ui {
8 
InfolistEntry(const base::string16 & title,const base::string16 & body)9 InfolistEntry::InfolistEntry(const base::string16& title,
10                              const base::string16& body)
11     : title(title), body(body), highlighted(false) {}
12 
operator ==(const InfolistEntry & other) const13 bool InfolistEntry::operator==(const InfolistEntry& other) const {
14   return title == other.title && body == other.body &&
15       highlighted == other.highlighted;
16 }
17 
operator !=(const InfolistEntry & other) const18 bool InfolistEntry::operator!=(const InfolistEntry& other) const {
19   return !(*this == other);
20 }
21 
22 }  // namespace ui
23