| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // extensions::ExtensionRegistryObserver. | 72 // extensions::ExtensionRegistryObserver. |
| 73 virtual void OnExtensionLoaded( | 73 virtual void OnExtensionLoaded( |
| 74 content::BrowserContext* browser_context, | 74 content::BrowserContext* browser_context, |
| 75 const extensions::Extension* extension) OVERRIDE; | 75 const extensions::Extension* extension) OVERRIDE; |
| 76 virtual void OnExtensionUnloaded( | 76 virtual void OnExtensionUnloaded( |
| 77 content::BrowserContext* browser_context, | 77 content::BrowserContext* browser_context, |
| 78 const extensions::Extension* extension, | 78 const extensions::Extension* extension, |
| 79 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; | 79 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; |
| 80 virtual void OnExtensionUninstalled( | 80 virtual void OnExtensionUninstalled( |
| 81 content::BrowserContext* browser_context, | 81 content::BrowserContext* browser_context, |
| 82 const extensions::Extension* extension) OVERRIDE; | 82 const extensions::Extension* extension, |
| 83 extensions::UninstallReason reason) OVERRIDE; |
| 83 virtual void OnShutdown(extensions::ExtensionRegistry* registry) OVERRIDE; | 84 virtual void OnShutdown(extensions::ExtensionRegistry* registry) OVERRIDE; |
| 84 | 85 |
| 85 // AppListItemListObserver. | 86 // AppListItemListObserver. |
| 86 virtual void OnListItemMoved(size_t from_index, | 87 virtual void OnListItemMoved(size_t from_index, |
| 87 size_t to_index, | 88 size_t to_index, |
| 88 app_list::AppListItem* item) OVERRIDE; | 89 app_list::AppListItem* item) OVERRIDE; |
| 89 | 90 |
| 90 scoped_ptr<ExtensionAppItem> CreateAppItem( | 91 scoped_ptr<ExtensionAppItem> CreateAppItem( |
| 91 const std::string& extension_id, | 92 const std::string& extension_id, |
| 92 const std::string& extension_name, | 93 const std::string& extension_name, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // We listen to this to show app installing progress. | 146 // We listen to this to show app installing progress. |
| 146 extensions::InstallTracker* tracker_; | 147 extensions::InstallTracker* tracker_; |
| 147 | 148 |
| 148 // Listen extension's load, unload, uninstalled. | 149 // Listen extension's load, unload, uninstalled. |
| 149 extensions::ExtensionRegistry* extension_registry_; | 150 extensions::ExtensionRegistry* extension_registry_; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); | 152 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 155 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| OLD | NEW |