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

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

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: cleanup Created 3 years, 6 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/shelf/wm_shelf_observer.h" 11 #include "ash/shelf/shelf_observer.h"
12 #include "ash/shell_observer.h" 12 #include "ash/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 AppListPresenterDelegate. 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 ShelfObserver {
41 public: 41 public:
42 AppListPresenterDelegate( 42 AppListPresenterDelegate(
43 app_list::AppListPresenterImpl* 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,
(...skipping 11 matching lines...) Expand all
62 void OnMouseEvent(ui::MouseEvent* event) override; 62 void OnMouseEvent(ui::MouseEvent* event) override;
63 void OnGestureEvent(ui::GestureEvent* event) override; 63 void OnGestureEvent(ui::GestureEvent* event) override;
64 64
65 // KeyboardControllerObserver overrides: 65 // KeyboardControllerObserver overrides:
66 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 66 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
67 void OnKeyboardClosed() override; 67 void OnKeyboardClosed() override;
68 68
69 // ShellObserver overrides: 69 // ShellObserver overrides:
70 void OnOverviewModeStarting() override; 70 void OnOverviewModeStarting() override;
71 71
72 // WmShelfObserver overrides: 72 // ShelfObserver overrides:
73 void OnShelfIconPositionsChanged() override; 73 void OnShelfIconPositionsChanged() override;
msw 2017/05/24 18:42:57 aside: I think we could remove this now (or in a f
74 74
75 // Whether the app list is visible (or in the process of being shown). 75 // Whether the app list is visible (or in the process of being shown).
76 bool is_visible_ = false; 76 bool is_visible_ = false;
77 77
78 // Not owned. Pointer is guaranteed to be valid while this object is alive. 78 // Not owned. Pointer is guaranteed to be valid while this object is alive.
79 app_list::AppListPresenterImpl* presenter_; 79 app_list::AppListPresenterImpl* presenter_;
80 80
81 // Not owned. Pointer is guaranteed to be valid while this object is alive. 81 // Not owned. Pointer is guaranteed to be valid while this object is alive.
82 app_list::AppListViewDelegateFactory* view_delegate_factory_; 82 app_list::AppListViewDelegateFactory* view_delegate_factory_;
83 83
84 // Owned by its widget. 84 // Owned by its widget.
85 app_list::AppListView* view_ = nullptr; 85 app_list::AppListView* view_ = nullptr;
86 86
87 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); 87 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate);
88 }; 88 };
89 89
90 } // namespace ash 90 } // namespace ash
91 91
92 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ 92 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698