Index: chrome/browser/ui/views/aura/app_list/app_list_model.h |
diff --git a/chrome/browser/ui/views/aura/app_list/app_list_model.h b/chrome/browser/ui/views/aura/app_list/app_list_model.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47102c9701badd43c3ccb56fa32b52677916362a |
--- /dev/null |
+++ b/chrome/browser/ui/views/aura/app_list/app_list_model.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_H_ |
+#define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_H_ |
+#pragma once |
+ |
+#include "base/gtest_prod_util.h" |
+#include "ui/aura_shell/app_list/app_list_model.h" |
+ |
+class Profile; |
+ |
+class AppListModel : public aura_shell::AppListModel { |
Ben Goodger (Google)
2011/12/20 19:07:18
Is it necessary for Chrome to subclass the model h
xiyuan
2011/12/20 21:55:50
Done. Changed this into a builder class that takes
|
+ public: |
+ explicit AppListModel(Profile* profile); |
+ virtual ~AppListModel(); |
+ |
+ // Initializes the model. |
+ void Init(); |
+ |
+ private: |
+ FRIEND_TEST_ALL_PREFIXES(AppListModelTest, GetExtensionApps); |
+ |
+ void GetExtensionApps(); |
+ void GetBrowserCommands(); |
+ |
+ Profile* profile_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AppListModel); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_H_ |