| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ui/app_list/app_list_item.h" | 5 #include "ui/app_list/app_list_item.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/app_list/app_list_item_observer.h" | 8 #include "ui/app_list/app_list_item_observer.h" |
| 9 | 9 |
| 10 namespace app_list { | 10 namespace app_list { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 AppListItem* AppListItem::FindChildItem(const std::string& id) { | 69 AppListItem* AppListItem::FindChildItem(const std::string& id) { |
| 70 return NULL; | 70 return NULL; |
| 71 } | 71 } |
| 72 | 72 |
| 73 size_t AppListItem::ChildItemCount() const { | 73 size_t AppListItem::ChildItemCount() const { |
| 74 return 0; | 74 return 0; |
| 75 } | 75 } |
| 76 | 76 |
| 77 void AppListItem::OnExtensionPreferenceChanged() {} | |
| 78 | |
| 79 bool AppListItem::CompareForTest(const AppListItem* other) const { | 77 bool AppListItem::CompareForTest(const AppListItem* other) const { |
| 80 return id_ == other->id_ && | 78 return id_ == other->id_ && |
| 81 folder_id_ == other->folder_id_ && | 79 folder_id_ == other->folder_id_ && |
| 82 name_ == other->name_ && | 80 name_ == other->name_ && |
| 83 short_name_ == other->short_name_ && | 81 short_name_ == other->short_name_ && |
| 84 GetItemType() == other->GetItemType() && | 82 GetItemType() == other->GetItemType() && |
| 85 position_.Equals(other->position_); | 83 position_.Equals(other->position_); |
| 86 } | 84 } |
| 87 | 85 |
| 88 std::string AppListItem::ToDebugString() const { | 86 std::string AppListItem::ToDebugString() const { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 105 const std::string& short_name) { | 103 const std::string& short_name) { |
| 106 if (name_ == name && short_name_ == short_name) | 104 if (name_ == name && short_name_ == short_name) |
| 107 return; | 105 return; |
| 108 name_ = name; | 106 name_ = name; |
| 109 short_name_ = short_name; | 107 short_name_ = short_name; |
| 110 for (auto& observer : observers_) | 108 for (auto& observer : observers_) |
| 111 observer.ItemNameChanged(); | 109 observer.ItemNameChanged(); |
| 112 } | 110 } |
| 113 | 111 |
| 114 } // namespace app_list | 112 } // namespace app_list |
| OLD | NEW |