Lines Matching refs:if
14 if ('showPromo' in data)
35 // Hide the context menu, if there is any open.
45 // Determines if the web store link should be detached and place in the
64 if (data.showPromo) {
78 // Only show the web store entry if there are apps installed, since the promo
80 if (data.apps.length > 0) {
84 if (apps.detachWebstoreEntry) {
96 if (data.apps.length < MAX_MINIVIEW_ITEMS) {
104 if (!data.showLauncher)
113 if (appsPromoLink)
120 if (isDoneLoading()) {
129 if (hashParams['app-id'] == app['id']) {
132 } else if (oldData &&
145 if (appLink)
181 if (opt_mouseEvent) {
201 // We determine if the apps section is maximized, collapsed or in menu mode
203 if ($('apps').classList.contains('menu'))
205 else if ($('apps').classList.contains('collapsed'))
216 if (!appDragAndDrop.isDragging())
252 if (el.getAttribute('app-id') === app['id']) {
281 if (!currentApp)
370 if (promoHasBeenSeen || !this.showPromo || !isAppSectionMaximized())
384 if (this.dragItem_ != dragItem) {
393 if (this.dimensions_)
413 // Gets the item under the mouse event |e|. Returns null if there is no
414 // item or if the item is not draggable.
419 if (item && item.classList.contains('web-store-entry'))
425 // Returns true if |coordinates| point to a valid drop location. The
435 if (coordinates.x >= right || coordinates.x < 0 ||
442 if (!this.detachWebstoreEntry)
453 if (current == position || current < 0)
476 if (index >= appCount && index < appsPerRow * rows)
496 if (dx == 0 && dy == 0) {
501 // If we scroll the page directly from this method, it may be choppy and
506 if (!this.scrollListener_) {
518 if (!appDragAndDrop.isDragging()) {
523 if (!this.scrollMouseXY_)
536 if (delta == 0)
570 if (!this.dirty_ && options.force != true)
575 if (options.disableAnimations)
583 if (options.disableAnimations) {
602 if (!this.visible)
608 // If the node is being dragged, don't try to place it in the grid.
609 if (app == this.dragItem)
634 // Reflect the X axis if an RTL language is active.
635 if (rtl)
648 if (this.loadedImages_ == 0)
653 if (this.loadedImages_ == this.data.length) {
660 if (!maxiviewVisibleHeight)
663 // If we know the visible height of the maxiview, then we can don't need
669 if (this.loadedImages_ == count) {
688 if (app.isNew) {