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

Side by Side Diff: ui/app_list/app_list_item.cc

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ui/app_list/app_list_item.h ('k') | ui/app_list/app_list_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/app_list/app_list_item.h ('k') | ui/app_list/app_list_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698