Home | History | Annotate | Download | only in touch_ntp

Lines Matching full:apps

23    * Template to use for creating new 'apps-page' elements
41 * The 'apps-page-list' element.
44 var appsPageList = getRequiredElement('apps-page-list');
47 * A list of all 'apps-page' elements.
88 * Holds all event handlers tied to apps (and so subject to removal when the
98 // Request data on the apps so we can fill them in.
109 // simpler if we start with 0 pages and 0 apps and don't leave hidden
114 appsPages = appsPageList.getElementsByClassName('apps-page');
116 'Expected exactly one apps-page in the apps-page-list.');
127 var appsFrame = getRequiredElement('apps-frame');
159 // Note that we assume here that we only use a Grabber for moving apps,
223 * Callback invoked by chrome with the apps available.
235 // that would require us to re-use existing elements and detect how the apps
250 // Clear any existing apps pages and dots.
253 // unfortunate to have Chrome send us the entire apps list after an
255 removeChildrenByClassName(appsPageList, 'apps-page');
258 // Get the array of apps and add any special synthesized entries
259 var apps = data.apps;
260 apps.push(makeWebstoreApp());
263 apps.sort(function(a, b) {
267 // Add the apps, creating pages as necessary
268 for (var i = 0; i < apps.length; i++) {
269 var app = apps[i];
334 * Invoked whenever the pages in apps-page-list have changed so that
375 // margins between apps doesn't do anything
379 // Special case of synthesized apps - can't launch directly so just
382 // would be better for the back-end to just create virtual apps for such
390 // Only real apps with back-end storage (for their launch index, etc.) can
393 // Create a grabber to support moving apps around
422 * Creates a new page for apps
424 * @return {!Element} The apps-page element created.
503 * The apps-page that the app currently being dragged camed from.
547 getRequiredElement('apps-frame').appendChild(element);
702 // Tell chrome to update its database to persist this new order of apps This
703 // will cause getAppsCallback to be invoked and the apps to be redrawn.
780 // If we've re-created the apps (eg. because an app was uninstalled) then