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

Unified Diff: ui/aura_shell/shell_delegate.h

Issue 8558031: [Aura] Refactor and update app list window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, change initial size close to final size to avoid CardSlider resize animation Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shell_delegate.h
diff --git a/ui/aura_shell/shell_delegate.h b/ui/aura_shell/shell_delegate.h
index b31666970376c2d4b6b507760b85a8ba57578e94..28eb602527e5d2d76b4c55254d3acc8c95955847 100644
--- a/ui/aura_shell/shell_delegate.h
+++ b/ui/aura_shell/shell_delegate.h
@@ -6,6 +6,7 @@
#define UI_AURA_SHELL_SHELL_DELEGATE_H_
#pragma once
+#include "base/callback.h"
#include "ui/aura_shell/aura_shell_export.h"
namespace views {
@@ -19,6 +20,9 @@ struct LauncherItem;
// Delegate of the Shell.
class AURA_SHELL_EXPORT ShellDelegate {
public:
+ // Callback to pass back a widget used by RequestAppListWidget.
+ typedef base::Callback<void(views::Widget*)> SetWidgetCallback;
+
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
@@ -29,8 +33,9 @@ class AURA_SHELL_EXPORT ShellDelegate {
// Invoked to create a new status area. Can return NULL.
virtual views::Widget* CreateStatusArea() = 0;
- // Invoked when the user clicks the app list button on the launcher.
- virtual void ShowApps() = 0;
+ // Invoked to create app list widget. The Delegate calls the callback
+ // when the widget is ready to show.
+ virtual void RequestAppListWidget(const SetWidgetCallback& callback) = 0;
// Invoked when the user clicks on a window entry in the launcher.
virtual void LauncherItemClicked(const LauncherItem& item) = 0;
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698