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

Side by Side Diff: ash/shell/app_list.cc

Issue 898273002: app_list::SearchResult: Duplicate() is const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 5 years, 10 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 | « no previous file | chrome/browser/ui/app_list/search/app_result.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "ash/session/session_state_delegate.h" 8 #include "ash/session/session_state_delegate.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell/example_factory.h" 10 #include "ash/shell/example_factory.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_)); 185 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_));
186 set_details(details); 186 set_details(details);
187 Tags details_tags; 187 Tags details_tags;
188 details_tags.push_back(Tag(Tag::DIM, 0, details.length())); 188 details_tags.push_back(Tag(Tag::DIM, 0, details.length()));
189 set_details_tags(details_tags); 189 set_details_tags(details_tags);
190 } 190 }
191 191
192 WindowTypeShelfItem::Type type() const { return type_; } 192 WindowTypeShelfItem::Type type() const { return type_; }
193 193
194 // app_list::SearchResult: 194 // app_list::SearchResult:
195 scoped_ptr<SearchResult> Duplicate() override { 195 scoped_ptr<SearchResult> Duplicate() const override {
196 return scoped_ptr<SearchResult>(); 196 return scoped_ptr<SearchResult>();
197 } 197 }
198 198
199 private: 199 private:
200 WindowTypeShelfItem::Type type_; 200 WindowTypeShelfItem::Type type_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult); 202 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult);
203 }; 203 };
204 204
205 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { 205 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 }; 363 };
364 364
365 } // namespace 365 } // namespace
366 366
367 app_list::AppListViewDelegate* CreateAppListViewDelegate() { 367 app_list::AppListViewDelegate* CreateAppListViewDelegate() {
368 return new ExampleAppListViewDelegate; 368 return new ExampleAppListViewDelegate;
369 } 369 }
370 370
371 } // namespace shell 371 } // namespace shell
372 } // namespace ash 372 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/app_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698