Home | History | Annotate | Download | only in touch_ntp

Lines Matching refs:For

7  * This is the main code for the new tab page used by touch-enabled Chrome
8 * browsers. For now this is still a prototype.
11 // Use an anonymous function to enable strict mode just for this file (which
17 * The Slider object to use for changing app pages.
23 * Template to use for creating new 'apps-page' elements
29 * Template to use for creating new 'app-container' elements
35 * Template to use for creating new 'dot' elements
66 * JavaScript creates the object for us based on the id. But I don't want
73 * The time in milliseconds for most transitions. This should match what's
151 // Add a drag handler to the body (for drags that don't land on an existing
159 // Note that we assume here that we only use a Grabber for moving apps,
164 // Add handlers for the tash can
211 * @param {string} className The class to look for.
214 for (var child = element.firstElementChild; child;) {
226 * response to a getApps request. For example, when a user installs/uninstalls
268 for (var i = 0; i < apps.length; i++) {
306 * Given a theme resource name, construct a URL for it.
312 // won't work for a standalone page)
325 * so don't use this at all (but it still needs to be here for chrome to
342 for (var i = 0; i < appsPages.length; i++)
351 * @param {!Object} app The application object to create an app for.
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
410 // Prevent any built-in drag-and-drop support from activating for the
422 * Creates a new page for apps
444 // before releasing). However, click events seems to be synthesized for a
447 // the dot for accepting the touch events.
481 * Search an elements ancestor chain for the nearest element that is a member
489 for (var e = element; e; e = e.parentElement) {
523 // to use fixed positioning for the slider (so that changes to its position
525 // don't yet have GPU acceleration for this. Note that we use the appsFrame
564 // for it - eg. if we drop on it, or the drag is cancelled)
621 // move ahead by one to account for the container being removed.
623 for (var c = draggingAppContainer; c; c = c.nextElementSibling) {
676 // Update the page index for the app if it's changed. This doesn't trigger
689 for (var page = 0; page < appsPages.length; page++) {
691 for (var i = 0; i < appsOnPage.length; i++) {
723 // Stop the slider from sliding for this touch
804 // any need to wait for DOMContentLoaded)