| 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 #ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 6 #define ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/shelf/wm_shelf_observer.h" | 11 #include "ash/common/shelf/wm_shelf_observer.h" |
| 12 #include "ash/common/shell_observer.h" | 12 #include "ash/common/shell_observer.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "ui/app_list/presenter/app_list_presenter_delegate.h" | 14 #include "ui/app_list/presenter/app_list_presenter_delegate.h" |
| 15 #include "ui/events/event_handler.h" | 15 #include "ui/events/event_handler.h" |
| 16 #include "ui/keyboard/keyboard_controller_observer.h" | 16 #include "ui/keyboard/keyboard_controller_observer.h" |
| 17 | 17 |
| 18 namespace app_list { | 18 namespace app_list { |
| 19 class ApplicationDragAndDropHost; | |
| 20 class AppListPresenter; | 19 class AppListPresenter; |
| 21 class AppListView; | 20 class AppListView; |
| 22 class AppListViewDelegateFactory; | 21 class AppListViewDelegateFactory; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace ui { | 24 namespace ui { |
| 26 class LocatedEvent; | 25 class LocatedEvent; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace ash { | 28 namespace ash { |
| 30 | 29 |
| 31 namespace test { | |
| 32 class AppListPresenterAshTestApi; | |
| 33 } | |
| 34 | |
| 35 // Non-Mus+ash implementation of AppListPresetnerDelegate. | 30 // Non-Mus+ash implementation of AppListPresetnerDelegate. |
| 36 // Responsible for laying out the app list UI as well as updating the Shelf | 31 // Responsible for laying out the app list UI as well as updating the Shelf |
| 37 // launch icon as the state of the app list changes. Listens to shell events | 32 // launch icon as the state of the app list changes. Listens to shell events |
| 38 // and touches/mouse clicks outside the app list to auto dismiss the UI or | 33 // and touches/mouse clicks outside the app list to auto dismiss the UI or |
| 39 // update its layout as necessary. | 34 // update its layout as necessary. |
| 40 class ASH_EXPORT AppListPresenterDelegate | 35 class ASH_EXPORT AppListPresenterDelegate |
| 41 : public app_list::AppListPresenterDelegate, | 36 : public app_list::AppListPresenterDelegate, |
| 42 public ui::EventHandler, | 37 public ui::EventHandler, |
| 43 public keyboard::KeyboardControllerObserver, | 38 public keyboard::KeyboardControllerObserver, |
| 44 public ShellObserver, | 39 public ShellObserver, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 85 |
| 91 // Owned by its widget. | 86 // Owned by its widget. |
| 92 app_list::AppListView* view_ = nullptr; | 87 app_list::AppListView* view_ = nullptr; |
| 93 | 88 |
| 94 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); |
| 95 }; | 90 }; |
| 96 | 91 |
| 97 } // namespace ash | 92 } // namespace ash |
| 98 | 93 |
| 99 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ | 94 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ |
| OLD | NEW |