Lines Matching refs:if
56 if (!menuModeEnabled) {
58 // necessary to restore the maxiview here. It will happen if the section
64 if (section) {
89 if (opt_pingUrl)
100 if (cr.isChromeOS) {
133 if (shownSections & section) {
137 if (maxiview) {
141 if (miniview)
147 if (maxiview) {
151 if (miniview)
189 if (parentSessEl.hasChildNodes()) {
280 if (isWindow) {
307 if (isWindow) {
338 if (window.innerWidth < 10) {
347 if (b) {
355 if (layoutMode != oldLayoutMode){
378 if (this.expanded)
398 if (clipped ||
421 // Enables scrollbars (they will only show up if needed).
438 // Layout the sections in a modified accordian. The header and miniview, if
439 // visible are fixed within the viewport. If there is an expanded section, its
462 // There is a final twist: If the intrinsic height of the expanded section is
468 // While transitioning sections, we only want scrollbars to appear if they're
470 if (!hasScrollBars() && isAnimating())
479 // take note of the expanded section, if there is one.
484 if (section.expanded) {
491 // Calculate the height of the fixed elements below the expanded section, if
496 // Leave room for bottom bar if it's visible.
500 // Determine the height to use for the expanded section. If there isn't enough
504 if (expandedSection) {
506 if (flexHeight < expandedSection.scrollingHeight) {
515 // same if document.body has no margins.
528 // We only set the document height when a section is expanded. If
541 if (section.maxiview) {
542 if (section == expandedSection) {
546 // point. We position the maxiview as if the miniview was not displayed
554 if (section.maxiview && section == expandedSection)
557 if (section == expandedSection)
560 if (cr.isChromeOS)
609 if (!button)
612 if (!elm.classList.contains('disabled') &&
625 if (!sectionToElementMap) {
645 if (!(section & shownSections)) {
648 if (el) {
652 if (maxiview) {
655 // The opacity won't transition if you toggle the display property
667 if (miniview) {
690 if (p == section)
698 if (section & shownSections) {
713 if (el) {
717 if (maxiview) {
723 if (miniview) {
735 if (e.target.classList.contains('collapsing')) {
740 if (e.target.classList.contains('maxiview') ||
753 if (newShownSections & Section[key])
775 if (miniview.hasChildNodes()) {
792 * syncsectionisvisible: true if the sync section needs to show up on the new
796 * linkisvisible: true if the link element should be visible within the sync
798 * linktext: the text to display as the link in the sync status (only used if
800 * linkurlisset: true if an URL should be set as the href for the link and false
801 * otherwise. If this field is false, then clicking on the link
804 * linkurl: the URL to use as the element's href (only used if linkurlisset is
810 // Hide the section if the message is emtpy.
811 if (!newMessage['syncsectionisvisible']) {
821 if (newMessage.msgtype == 'error') {
838 if (newMessage.linkisvisible) {
840 if (newMessage.linkurlisset) {
879 if (numTabs == 1)
897 if (document.documentElement.getAttribute('hasattribution') == 'true') {
900 } else if (document.documentElement.getAttribute('customlogo') == 'true') {
908 // If the content overlaps with the attribution, we bump its opacity down.
917 if (attributionRect.width == 0)
922 if (contentBottom > attribution.offsetTop) {
923 if ((!rtl && contentRect.right > attributionRect.left) ||
963 if (!isDoneLoading()) {
1010 if (notification.classList.contains('promo'))
1028 if (typeof message == 'string') {
1035 if (actionText) {
1065 // Setting tabIndex to -1 only prevents future tabbing to it. If, however, the
1069 if (actionLink) {
1073 if (closeButton) {
1093 if (p.tagName == 'BUTTON')
1098 if (!p)
1102 if (!getSectionMaxiview(p))
1113 if (!section)
1121 if (shownSections & Section[section]) {
1132 if (e.keyIdentifier == 'Enter')
1141 if (el) {
1155 if (el) {
1167 if (el) {
1180 if (el) {
1204 if (el && el != relatedEl) {
1257 if (e.type == 'mouseover') {
1282 if (type == 'focus') {
1311 if (el && el != relatedEl) {
1352 // to indicate if there is code in the backend which is capable of processing
1364 if (document.documentElement.getAttribute('syncispresent') == 'true') {
1373 if (mostVisited.isDragging()) {
1380 if (el && el.xtitle != el.title) {
1381 if (el.scrollWidth > el.clientWidth) {
1419 if (login)
1446 if (localStrings.getString('serverpromo')) {
1452 if (mostVisited.data && apps.loaded)