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

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

Issue 2647833003: Adds AppListDelegate to AppList that is notified on visibility changes (Closed)
Patch Set: move 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
« no previous file with comments | « ash/app_list/app_list_delegate_impl.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('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 #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 AppListPresenterImpl; 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 AppListPresenterDelegate.
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 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/app_list/app_list_delegate_impl.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698