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 CardSlider object to use for changing app pages.
23 * 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
147 // Add a drag handler to the body (for drags that don't land on an existing
155 // Note that we assume here that we only use a Grabber for moving apps,
160 // Add handlers for the tash can
214 * response to a getApps request. For example, when a user installs/uninstalls
241 for (var i = 0; i < appsPages.length; i++) {
259 for (var i = 0; i < apps.length; i++) {
273 // Add a couple blank apps pages for testing. TODO(estade): remove this.
302 * Given a theme resource name, construct a URL for it.
314 * so don't use this at all (but it still needs to be here for chrome to
331 for (var i = 0; i < tilePages.length; i++)
337 * Appends a tile page (for apps or most visited).
358 // before releasing). However, click events seems to be synthesized for a
361 // the dot for accepting the touch events.
372 * Search an elements ancestor chain for the nearest element that is a member
379 for (var e = element; e; e = e.parentElement) {
413 // to use fixed positioning for the slider (so that changes to its position
415 // don't yet have GPU acceleration for this.
454 // for it - eg. if we drop on it, or the drag is cancelled)
511 // move ahead by one to account for the container being removed.
513 for (var c = draggingAppContainer; c; c = c.nextElementSibling) {
566 // Update the page index for the app if it's changed. This doesn't trigger
579 for (var page = 0; page < appsPages.length; page++) {
581 for (var i = 0; i < appsOnPage.length; i++) {
613 // Stop the slider from sliding for this touch