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

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

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/shell/example_app_list_presenter.h" 5 #include "ash/shell/example_app_list_presenter.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/app_list/app_list_presenter_delegate_factory.h" 9 #include "ash/app_list/app_list_presenter_delegate_factory.h"
10 #include "ash/shell/example_factory.h" 10 #include "ash/shell/example_factory.h"
(...skipping 24 matching lines...) Expand all
35 35
36 namespace ash { 36 namespace ash {
37 namespace shell { 37 namespace shell {
38 38
39 ExampleAppListPresenter::ExampleAppListPresenter() 39 ExampleAppListPresenter::ExampleAppListPresenter()
40 : binding_(this), 40 : binding_(this),
41 app_list_presenter_impl_( 41 app_list_presenter_impl_(
42 base::MakeUnique<AppListPresenterDelegateFactory>( 42 base::MakeUnique<AppListPresenterDelegateFactory>(
43 base::MakeUnique<ExampleAppListViewDelegateFactory>())) { 43 base::MakeUnique<ExampleAppListViewDelegateFactory>())) {
44 // Note: This example |app_list_presenter_impl_| does not report visibility 44 // Note: This example |app_list_presenter_impl_| does not report visibility
45 // changes to the app_list::mojom::AppList implementation owned by WmShell. 45 // changes to the app_list::mojom::AppList implementation owned by ShellPort.
46 } 46 }
47 47
48 ExampleAppListPresenter::~ExampleAppListPresenter() {} 48 ExampleAppListPresenter::~ExampleAppListPresenter() {}
49 49
50 app_list::mojom::AppListPresenterPtr 50 app_list::mojom::AppListPresenterPtr
51 ExampleAppListPresenter::CreateInterfacePtrAndBind() { 51 ExampleAppListPresenter::CreateInterfacePtrAndBind() {
52 return binding_.CreateInterfacePtrAndBind(); 52 return binding_.CreateInterfacePtrAndBind();
53 } 53 }
54 54
55 void ExampleAppListPresenter::Show(int64_t display_id) { 55 void ExampleAppListPresenter::Show(int64_t display_id) {
56 app_list_presenter_impl_.Show(display_id); 56 app_list_presenter_impl_.Show(display_id);
57 } 57 }
58 58
59 void ExampleAppListPresenter::Dismiss() { 59 void ExampleAppListPresenter::Dismiss() {
60 app_list_presenter_impl_.Dismiss(); 60 app_list_presenter_impl_.Dismiss();
61 } 61 }
62 62
63 void ExampleAppListPresenter::ToggleAppList(int64_t display_id) { 63 void ExampleAppListPresenter::ToggleAppList(int64_t display_id) {
64 app_list_presenter_impl_.ToggleAppList(display_id); 64 app_list_presenter_impl_.ToggleAppList(display_id);
65 } 65 }
66 66
67 void ExampleAppListPresenter::StartVoiceInteractionSession() {} 67 void ExampleAppListPresenter::StartVoiceInteractionSession() {}
68 68
69 } // namespace shell 69 } // namespace shell
70 } // namespace ash 70 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698