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

Side by Side Diff: ui/app_list/presenter/app_list_presenter_impl.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 5 #ifndef UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
7 7
8 #include <stdint.h>
9
8 #include <memory> 10 #include <memory>
9 11
10 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "ui/app_list/pagination_model_observer.h" 14 #include "ui/app_list/pagination_model_observer.h"
13 #include "ui/app_list/presenter/app_list_presenter.mojom.h" 15 #include "ui/app_list/presenter/app_list_presenter.mojom.h"
14 #include "ui/app_list/presenter/app_list_presenter_delegate.h" 16 #include "ui/app_list/presenter/app_list_presenter_delegate.h"
15 #include "ui/app_list/presenter/app_list_presenter_export.h" 17 #include "ui/app_list/presenter/app_list_presenter_export.h"
16 #include "ui/aura/client/focus_change_observer.h" 18 #include "ui/aura/client/focus_change_observer.h"
17 #include "ui/aura/window_observer.h" 19 #include "ui/aura/window_observer.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 79
78 // Sets the app list view and attempts to show it. 80 // Sets the app list view and attempts to show it.
79 void SetView(AppListView* view); 81 void SetView(AppListView* view);
80 82
81 // Forgets the view. 83 // Forgets the view.
82 void ResetView(); 84 void ResetView();
83 85
84 // Starts show/hide animation. 86 // Starts show/hide animation.
85 void ScheduleAnimation(); 87 void ScheduleAnimation();
86 88
89 // Returns the id of the display containing the app list, if visible. If not
90 // visible returns kInvalidDisplayId.
91 int64_t GetDisplayId();
92
87 // aura::client::FocusChangeObserver overrides: 93 // aura::client::FocusChangeObserver overrides:
88 void OnWindowFocused(aura::Window* gained_focus, 94 void OnWindowFocused(aura::Window* gained_focus,
89 aura::Window* lost_focus) override; 95 aura::Window* lost_focus) override;
90 96
91 // aura::WindowObserver overrides: 97 // aura::WindowObserver overrides:
92 void OnWindowBoundsChanged(aura::Window* root, 98 void OnWindowBoundsChanged(aura::Window* root,
93 const gfx::Rect& old_bounds, 99 const gfx::Rect& old_bounds,
94 const gfx::Rect& new_bounds) override; 100 const gfx::Rect& new_bounds) override;
95 101
96 // ui::ImplicitAnimationObserver overrides: 102 // ui::ImplicitAnimationObserver overrides:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 136
131 // The app list interface pointer; used for reporting visibility changes. 137 // The app list interface pointer; used for reporting visibility changes.
132 mojom::AppListPtr app_list_; 138 mojom::AppListPtr app_list_;
133 139
134 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); 140 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl);
135 }; 141 };
136 142
137 } // namespace app_list 143 } // namespace app_list
138 144
139 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 145 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/app_list/presenter/app_list_presenter.mojom ('k') | ui/app_list/presenter/app_list_presenter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698