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

Side by Side Diff: ash/shell/app_list.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 | « no previous file | chrome/browser/ui/BUILD.gn » ('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 <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_controller.h" 10 #include "ash/common/session/session_controller.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 new WindowTypeShelfItem(id, type)); 213 new WindowTypeShelfItem(id, type));
214 model_->AddItem(std::move(shelf_item)); 214 model_->AddItem(std::move(shelf_item));
215 } 215 }
216 } 216 }
217 217
218 void DecorateSearchBox(app_list::SearchBoxModel* search_box_model) { 218 void DecorateSearchBox(app_list::SearchBoxModel* search_box_model) {
219 search_box_model->SetHintText(base::ASCIIToUTF16("Type to search...")); 219 search_box_model->SetHintText(base::ASCIIToUTF16("Type to search..."));
220 } 220 }
221 221
222 // Overridden from app_list::AppListViewDelegate: 222 // Overridden from app_list::AppListViewDelegate:
223 bool ForceNativeDesktop() const override { return false; }
224
225 void SetProfileByPath(const base::FilePath& profile_path) override {
226 // Nothing needs to be done.
227 }
228
229 const Users& GetUsers() const override { return users_; }
230
231 app_list::AppListModel* GetModel() override { return model_.get(); } 223 app_list::AppListModel* GetModel() override { return model_.get(); }
232 224
233 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; } 225 app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; }
234 226
235 void OpenSearchResult(app_list::SearchResult* result, 227 void OpenSearchResult(app_list::SearchResult* result,
236 bool auto_launch, 228 bool auto_launch,
237 int event_flags) override { 229 int event_flags) override {
238 const ExampleSearchResult* example_result = 230 const ExampleSearchResult* example_result =
239 static_cast<const ExampleSearchResult*>(result); 231 static_cast<const ExampleSearchResult*>(result);
240 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags); 232 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 275
284 void Dismiss() override { 276 void Dismiss() override {
285 DCHECK(WmShell::HasInstance()); 277 DCHECK(WmShell::HasInstance());
286 Shell::Get()->DismissAppList(); 278 Shell::Get()->DismissAppList();
287 } 279 }
288 280
289 void ViewClosing() override { 281 void ViewClosing() override {
290 // Nothing needs to be done. 282 // Nothing needs to be done.
291 } 283 }
292 284
293 void OpenHelp() override {
294 // Nothing needs to be done.
295 }
296
297 void OpenFeedback() override {
298 // Nothing needs to be done.
299 }
300
301 void StartSpeechRecognition() override { NOTIMPLEMENTED(); } 285 void StartSpeechRecognition() override { NOTIMPLEMENTED(); }
302 void StopSpeechRecognition() override { NOTIMPLEMENTED(); } 286 void StopSpeechRecognition() override { NOTIMPLEMENTED(); }
303 287
304 void ShowForProfileByPath(const base::FilePath& profile_path) override {
305 // Nothing needs to be done.
306 }
307
308 views::View* CreateStartPageWebView(const gfx::Size& size) override { 288 views::View* CreateStartPageWebView(const gfx::Size& size) override {
309 return NULL; 289 return NULL;
310 } 290 }
311 291
312 std::vector<views::View*> CreateCustomPageWebViews( 292 std::vector<views::View*> CreateCustomPageWebViews(
313 const gfx::Size& size) override { 293 const gfx::Size& size) override {
314 return std::vector<views::View*>(); 294 return std::vector<views::View*>();
315 } 295 }
316 296
317 void CustomLauncherPageAnimationChanged(double progress) override {} 297 void CustomLauncherPageAnimationChanged(double progress) override {}
318 298
319 void CustomLauncherPagePopSubpage() override {} 299 void CustomLauncherPagePopSubpage() override {}
320 300
321 bool IsSpeechRecognitionEnabled() override { return false; } 301 bool IsSpeechRecognitionEnabled() override { return false; }
322 302
323 std::unique_ptr<app_list::AppListModel> model_; 303 std::unique_ptr<app_list::AppListModel> model_;
324 app_list::SpeechUIModel speech_ui_; 304 app_list::SpeechUIModel speech_ui_;
325 Users users_;
326 305
327 DISALLOW_COPY_AND_ASSIGN(ExampleAppListViewDelegate); 306 DISALLOW_COPY_AND_ASSIGN(ExampleAppListViewDelegate);
328 }; 307 };
329 308
330 } // namespace 309 } // namespace
331 310
332 app_list::AppListViewDelegate* CreateAppListViewDelegate() { 311 app_list::AppListViewDelegate* CreateAppListViewDelegate() {
333 return new ExampleAppListViewDelegate; 312 return new ExampleAppListViewDelegate;
334 } 313 }
335 314
336 } // namespace shell 315 } // namespace shell
337 } // namespace ash 316 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698