Chromium Code Reviews| 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..0e3e3e908769fb1d3a84a55a67ccecdfe61f5271 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 { |
| @@ -15,6 +16,7 @@ class Widget; |
| namespace aura_shell { |
| struct LauncherItem; |
| +typedef base::Callback<void(views::Widget*)> SetWidgetCallback; |
|
sky
2011/11/19 00:13:14
Move this inside of ShellDelegate.
xiyuan
2011/11/19 00:25:04
Done.
|
| // Delegate of the Shell. |
| class AURA_SHELL_EXPORT ShellDelegate { |
| @@ -29,8 +31,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; |