OLD | NEW |
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 Loading... |
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 |
OLD | NEW |