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

Side by Side Diff: ash/app_list/app_list_presenter_delegate.h

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)
Patch Set: Sync and rebase Created 3 years, 11 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 (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 AppListPresenter; 19 class AppListPresenterImpl;
20 class AppListView; 20 class AppListView;
21 class AppListViewDelegateFactory; 21 class AppListViewDelegateFactory;
22 } 22 }
23 23
24 namespace ui { 24 namespace ui {
25 class LocatedEvent; 25 class LocatedEvent;
26 } 26 }
27 27
28 namespace ash { 28 namespace ash {
29 29
30 // Non-Mus+ash implementation of AppListPresetnerDelegate. 30 // Non-Mus+ash implementation of AppListPresetnerDelegate.
31 // 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
32 // 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
33 // 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
34 // update its layout as necessary. 34 // update its layout as necessary.
35 class ASH_EXPORT AppListPresenterDelegate 35 class ASH_EXPORT AppListPresenterDelegate
36 : public app_list::AppListPresenterDelegate, 36 : public app_list::AppListPresenterDelegate,
37 public ui::EventHandler, 37 public ui::EventHandler,
38 public keyboard::KeyboardControllerObserver, 38 public keyboard::KeyboardControllerObserver,
39 public ShellObserver, 39 public ShellObserver,
40 public WmShelfObserver { 40 public WmShelfObserver {
41 public: 41 public:
42 AppListPresenterDelegate( 42 AppListPresenterDelegate(
43 app_list::AppListPresenter* presenter, 43 app_list::AppListPresenterImpl* presenter,
44 app_list::AppListViewDelegateFactory* view_delegate_factory); 44 app_list::AppListViewDelegateFactory* view_delegate_factory);
45 ~AppListPresenterDelegate() override; 45 ~AppListPresenterDelegate() override;
46 46
47 // app_list::AppListPresenterDelegate: 47 // app_list::AppListPresenterDelegate:
48 app_list::AppListViewDelegate* GetViewDelegate() override; 48 app_list::AppListViewDelegate* GetViewDelegate() override;
49 void Init(app_list::AppListView* view, 49 void Init(app_list::AppListView* view,
50 int64_t display_id, 50 int64_t display_id,
51 int current_apps_page) override; 51 int current_apps_page) override;
52 void OnShown(int64_t display_id) override; 52 void OnShown(int64_t display_id) override;
53 void OnDismissed() override; 53 void OnDismissed() override;
(...skipping 17 matching lines...) Expand all
71 void OnMaximizeModeStarted() override; 71 void OnMaximizeModeStarted() override;
72 void OnMaximizeModeEnded() override; 72 void OnMaximizeModeEnded() override;
73 73
74 // WmShelfObserver overrides: 74 // WmShelfObserver overrides:
75 void OnShelfIconPositionsChanged() override; 75 void OnShelfIconPositionsChanged() override;
76 76
77 // Whether the app list is visible (or in the process of being shown). 77 // Whether the app list is visible (or in the process of being shown).
78 bool is_visible_ = false; 78 bool is_visible_ = false;
79 79
80 // Not owned. Pointer is guaranteed to be valid while this object is alive. 80 // Not owned. Pointer is guaranteed to be valid while this object is alive.
81 app_list::AppListPresenter* presenter_; 81 app_list::AppListPresenterImpl* presenter_;
82 82
83 // Not owned. Pointer is guaranteed to be valid while this object is alive. 83 // Not owned. Pointer is guaranteed to be valid while this object is alive.
84 app_list::AppListViewDelegateFactory* view_delegate_factory_; 84 app_list::AppListViewDelegateFactory* view_delegate_factory_;
85 85
86 // Owned by its widget. 86 // Owned by its widget.
87 app_list::AppListView* view_ = nullptr; 87 app_list::AppListView* view_ = nullptr;
88 88
89 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); 89 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate);
90 }; 90 };
91 91
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ 94 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_interactive_uitest_chromeos.cc ('k') | ash/app_list/app_list_presenter_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698