Index: chrome/browser/ui/webui/aura/app_list_ui.h |
diff --git a/chrome/browser/ui/webui/aura/app_list_ui.h b/chrome/browser/ui/webui/aura/app_list_ui.h |
index 3eaecaa279f6efccaa89f1a01dfb5554feefe4a7..09e998d331b74e9ef7c9d2200a08530da2d84842 100644 |
--- a/chrome/browser/ui/webui/aura/app_list_ui.h |
+++ b/chrome/browser/ui/webui/aura/app_list_ui.h |
@@ -10,9 +10,28 @@ |
class AppListUI : public ChromeWebUI { |
public: |
+ class Delegate { |
sky
2011/11/30 21:50:21
Move Delegate into it's own header.
xiyuan
2011/11/30 22:26:34
Done.
|
+ public: |
+ // Close AppListUI. |
+ virtual void Close() = 0; |
+ |
+ // Invoked when apps are loaded. |
+ virtual void OnAppsLoaded() = 0; |
+ }; |
+ |
explicit AppListUI(TabContents* contents); |
+ Delegate* delegate() const { |
+ return delegate_; |
+ } |
+ |
+ void set_delegate(Delegate* delegate) { |
+ delegate_ = delegate; |
+ } |
+ |
private: |
+ Delegate* delegate_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AppListUI); |
}; |