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

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

Issue 2247503002: mash: Create and show a shelf in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WindowManager WmShell::Shutdown; delay PointerWatcherEventRouter teardown; cleanup shutdown wor… Created 4 years, 4 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/shelf_icon_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; 19 class ApplicationDragAndDropHost;
20 class AppListPresenter; 20 class AppListPresenter;
21 class AppListView; 21 class AppListView;
(...skipping 13 matching lines...) Expand all
35 // Non-Mus+ash implementation of AppListPresetnerDelegate. 35 // Non-Mus+ash implementation of AppListPresetnerDelegate.
36 // Responsible for laying out the app list UI as well as updating the Shelf 36 // 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 37 // 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 38 // and touches/mouse clicks outside the app list to auto dismiss the UI or
39 // update its layout as necessary. 39 // update its layout as necessary.
40 class ASH_EXPORT AppListPresenterDelegate 40 class ASH_EXPORT AppListPresenterDelegate
41 : public app_list::AppListPresenterDelegate, 41 : public app_list::AppListPresenterDelegate,
42 public ui::EventHandler, 42 public ui::EventHandler,
43 public keyboard::KeyboardControllerObserver, 43 public keyboard::KeyboardControllerObserver,
44 public ShellObserver, 44 public ShellObserver,
45 public ShelfIconObserver { 45 public WmShelfObserver {
46 public: 46 public:
47 AppListPresenterDelegate( 47 AppListPresenterDelegate(
48 app_list::AppListPresenter* presenter, 48 app_list::AppListPresenter* presenter,
49 app_list::AppListViewDelegateFactory* view_delegate_factory); 49 app_list::AppListViewDelegateFactory* view_delegate_factory);
50 ~AppListPresenterDelegate() override; 50 ~AppListPresenterDelegate() override;
51 51
52 // app_list::AppListPresenterDelegate: 52 // app_list::AppListPresenterDelegate:
53 app_list::AppListViewDelegate* GetViewDelegate() override; 53 app_list::AppListViewDelegate* GetViewDelegate() override;
54 void Init(app_list::AppListView* view, 54 void Init(app_list::AppListView* view,
55 int64_t display_id, 55 int64_t display_id,
(...skipping 13 matching lines...) Expand all
69 69
70 // KeyboardControllerObserver overrides: 70 // KeyboardControllerObserver overrides:
71 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 71 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
72 72
73 // ShellObserver overrides: 73 // ShellObserver overrides:
74 void OnShelfAlignmentChanged(WmWindow* root_window) override; 74 void OnShelfAlignmentChanged(WmWindow* root_window) override;
75 void OnOverviewModeStarting() override; 75 void OnOverviewModeStarting() override;
76 void OnMaximizeModeStarted() override; 76 void OnMaximizeModeStarted() override;
77 void OnMaximizeModeEnded() override; 77 void OnMaximizeModeEnded() override;
78 78
79 // ShelfIconObserver overrides: 79 // WmShelfObserver overrides:
80 void OnShelfIconPositionsChanged() override; 80 void OnShelfIconPositionsChanged() override;
81 81
82 // Whether the app list is visible (or in the process of being shown). 82 // Whether the app list is visible (or in the process of being shown).
83 bool is_visible_ = false; 83 bool is_visible_ = false;
84 84
85 // Whether the app list should remain centered. 85 // Whether the app list should remain centered.
86 bool is_centered_ = false; 86 bool is_centered_ = false;
87 87
88 // Not owned. Pointer is guaranteed to be valid while this object is alive. 88 // Not owned. Pointer is guaranteed to be valid while this object is alive.
89 app_list::AppListPresenter* presenter_; 89 app_list::AppListPresenter* presenter_;
90 90
91 // Not owned. Pointer is guaranteed to be valid while this object is alive. 91 // Not owned. Pointer is guaranteed to be valid while this object is alive.
92 app_list::AppListViewDelegateFactory* view_delegate_factory_; 92 app_list::AppListViewDelegateFactory* view_delegate_factory_;
93 93
94 // Owned by its widget. 94 // Owned by its widget.
95 app_list::AppListView* view_ = nullptr; 95 app_list::AppListView* view_ = nullptr;
96 96
97 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate); 97 DISALLOW_COPY_AND_ASSIGN(AppListPresenterDelegate);
98 }; 98 };
99 99
100 } // namespace ash 100 } // namespace ash
101 101
102 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_ 102 #endif // ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/app_list/app_list_presenter_delegate.cc » ('j') | ui/views/mus/pointer_watcher_event_router.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698