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

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

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 const Users& GetUsers() const override { return users_; } 244 const Users& GetUsers() const override { return users_; }
245 245
246 bool ShouldCenterWindow() const override { return false; } 246 bool ShouldCenterWindow() const override { return false; }
247 247
248 app_list::AppListModel* GetModel() override { return model_.get(); } 248 app_list::AppListModel* GetModel() override { return model_.get(); }
249 249
250 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; } 250 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; }
251 251
252 void GetShortcutPathForApp(
253 const std::string& app_id,
254 const base::Callback<void(const base::FilePath&)>& callback) override {
255 callback.Run(base::FilePath());
256 }
257
258 void OpenSearchResult(app_list::SearchResult* result, 252 void OpenSearchResult(app_list::SearchResult* result,
259 bool auto_launch, 253 bool auto_launch,
260 int event_flags) override { 254 int event_flags) override {
261 const ExampleSearchResult* example_result = 255 const ExampleSearchResult* example_result =
262 static_cast<const ExampleSearchResult*>(result); 256 static_cast<const ExampleSearchResult*>(result);
263 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags); 257 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags);
264 } 258 }
265 259
266 void InvokeSearchResultAction(app_list::SearchResult* result, 260 void InvokeSearchResultAction(app_list::SearchResult* result,
267 int action_index, 261 int action_index,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 }; 344 };
351 345
352 } // namespace 346 } // namespace
353 347
354 app_list::AppListViewDelegate* CreateAppListViewDelegate() { 348 app_list::AppListViewDelegate* CreateAppListViewDelegate() {
355 return new ExampleAppListViewDelegate; 349 return new ExampleAppListViewDelegate;
356 } 350 }
357 351
358 } // namespace shell 352 } // namespace shell
359 } // namespace ash 353 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_service.cc » ('j') | chrome/browser/ui/app_list/app_list_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698