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
3 // found in the LICENSE file.
5 /** @const */ var ItemList = apps_dev_tool.ItemsList;
7 document.addEventListener('DOMContentLoaded', function() {
8 apps_dev_tool.AppsDevTool.initStrings();
9 $('search').addEventListener('input', ItemList.onSearchInput);
10 ItemList.loadItemsInfo();
13 var appsDevTool = new apps_dev_tool.AppsDevTool();
15 window.addEventListener('load', function(e) {
16 appsDevTool.initialize();
19 chrome.management.onInstalled.addListener(function(info) {
20 ItemList.loadItemsInfo(function() {
21 ItemList.makeUnpackedExtensionVisible(info.id);
24 chrome.management.onUninstalled.addListener(function() {
25 ItemList.loadItemsInfo();
28 chrome.developerPrivate.onItemStateChanged.addListener(function(response) {
29 ItemList.loadItemsInfo();