OLD | NEW |
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 } | 241 } |
242 | 242 |
243 const Users& GetUsers() const override { return users_; } | 243 const Users& GetUsers() const override { return users_; } |
244 | 244 |
245 bool ShouldCenterWindow() const override { return false; } | 245 bool ShouldCenterWindow() const override { return false; } |
246 | 246 |
247 app_list::AppListModel* GetModel() override { return model_.get(); } | 247 app_list::AppListModel* GetModel() override { return model_.get(); } |
248 | 248 |
249 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; } | 249 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; } |
250 | 250 |
251 void GetShortcutPathForApp( | |
252 const std::string& app_id, | |
253 const base::Callback<void(const base::FilePath&)>& callback) override { | |
254 callback.Run(base::FilePath()); | |
255 } | |
256 | |
257 void OpenSearchResult(app_list::SearchResult* result, | 251 void OpenSearchResult(app_list::SearchResult* result, |
258 bool auto_launch, | 252 bool auto_launch, |
259 int event_flags) override { | 253 int event_flags) override { |
260 const ExampleSearchResult* example_result = | 254 const ExampleSearchResult* example_result = |
261 static_cast<const ExampleSearchResult*>(result); | 255 static_cast<const ExampleSearchResult*>(result); |
262 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags); | 256 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags); |
263 } | 257 } |
264 | 258 |
265 void InvokeSearchResultAction(app_list::SearchResult* result, | 259 void InvokeSearchResultAction(app_list::SearchResult* result, |
266 int action_index, | 260 int action_index, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 }; | 343 }; |
350 | 344 |
351 } // namespace | 345 } // namespace |
352 | 346 |
353 app_list::AppListViewDelegate* CreateAppListViewDelegate() { | 347 app_list::AppListViewDelegate* CreateAppListViewDelegate() { |
354 return new ExampleAppListViewDelegate; | 348 return new ExampleAppListViewDelegate; |
355 } | 349 } |
356 | 350 |
357 } // namespace shell | 351 } // namespace shell |
358 } // namespace ash | 352 } // namespace ash |
OLD | NEW |