MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 1 callersFunctioncallback
(el)
test/unit/utils/test-dom-ancestor-visitor.js:19
↓ 1 callersFunctioncallback
()
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:190
↓ 1 callersFunctioncallbackWithBackfill
(global, page, ad, containerName, hasAd)
ads/vendors/csa.js:250
↓ 1 callersFunctioncallbackWithNoBackfill
(global, containerName, hasAd)
ads/vendors/csa.js:232
↓ 1 callersFunctioncamelCaseToTitleCase
* @param {string} camelCase camel cased string * @return {string} title cased string
third_party/subscriptions-project/swg.js:3518
↓ 1 callersFunctioncamelCaseToTitleCase
* @param {string} camelCase camel cased string * @return {string} title cased string
third_party/subscriptions-project/swg-gaa.js:1049
↓ 1 callersFunctioncanBeObject
(e)
third_party/react-dates/bundle.js:1
↓ 1 callersMethodcanFullscreen_
* @param {!AmpElement} video * @return {boolean} * @private
src/service/video-manager-impl.js:1147
↓ 1 callersFunctioncanResetSrc
(src)
src/preact/component/iframe.js:26
↓ 1 callersMethodcanShowTooltip_
* For an element to trigger a tooltip it has to be descendant of * amp-story-page but not of amp-story-cta-layer, amp-story-page-attachment or amp-
extensions/amp-story/1.0/page-advancement.js:550
↓ 1 callersMethodcanUseNativeApis_
* @return {boolean} True when native font api is supported by the browser. * @private
extensions/amp-font/0.1/fontloader.js:133
↓ 1 callersMethodcancelAll
Cancels all entrance animations for the page.
extensions/amp-story/1.0/animation.js:620
↓ 1 callersFunctioncancelTimersForTesting
()
src/service/timer-impl.js:183
↓ 1 callersMethodcancelTouchEvents_
* Cancels the touchmove events for the element so that viewer does not * consider the swipes in the carousel as swipes for changing AMP documents.
extensions/amp-carousel/0.1/scrollable-carousel.js:433
↓ 1 callersMethodcancelTouchEvents_
* Cancels the touchmove events for the element so that viewer does not * consider the swipes in the carousel as swipes for changing AMP documents.
extensions/amp-carousel/0.1/slidescroll.js:985
↓ 1 callersFunctioncandidateSelector
* @param {!Array<string>} tagNames * @return {string}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:273
↓ 1 callersFunctioncanonicalizeSentences
* Canonicalizes strings in sentences and remove empty strings. * @param {!Array<string>} sentences * @return {!Array<string>}
extensions/amp-viewer-integration/0.1/findtext.js:124
↓ 1 callersMethodcarrySwipeMomentum_
* Carries momentum for the swipe forwards to a final destination, with the * duration depending on the velocity. * @param {number} scale The cur
extensions/amp-lightbox-gallery/0.1/swipe-to-dismiss.js:176
↓ 1 callersMethodcarrySwipeMomentum_
* Carries momentum for the swipe forwards to a final destination, with the * duration depending on the velocity. * @param {number} distance How
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:171
↓ 1 callersMethodcarrySwipeMomentum_
* Carries momentum for the swipe forwards to a final destination, with the * duration depending on the velocity. * @param {number} distance How
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:171
↓ 1 callersFunctioncasing
(elem, test, pos)
third_party/inputmask/inputmask.js:1173
↓ 1 callersFunctioncenterAd
* @param {!Window} global
ads/vendors/uas.js:41
↓ 1 callersFunctioncenterFrameUnderVsyncMutate
( iframe, iframeRect, viewportSize, transitionTimeMs )
ads/inabox/full-overlay-frame-helper.js:12
↓ 1 callersFunctioncheck
* @param {string} file * @return {boolean}
build-system/tasks/check-exact-versions.js:14
↓ 1 callersMethodcheckA11yAttributeText_
* @private * Overrides aria-label with alt if aria-label or title is not specified.
extensions/amp-video/0.1/amp-video.js:291
↓ 1 callersMethodcheckARIA_
* Check if aria attributes are correctly set * If not, apply default and warn user in console * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:286
↓ 1 callersFunctioncheckAlternationMatch
(altArr1, altArr2, na)
third_party/inputmask/inputmask.js:1201
↓ 1 callersMethodcheckCanMakePayment_
* Checks whether can make a payment with Tez on this device. * * @private * @param {!PaymentRequest} request The payment request object. *
third_party/subscriptions-project/swg.js:17065
↓ 1 callersFunctioncheckClosureComments
* Parse a Closure Compiler comment and check if it contains a primitive * redundantly specified as non-nullable with a ! * e.g. {!string} * @param
build-system/eslint-rules/closure-type-primitives.js:75
↓ 1 callersFunctioncheckDuplicates
(preconnects, prefetches, adNetwork)
test/unit/test-ads-config.js:61
↓ 1 callersFunctioncheckElementUpgrade
(element)
test/integration/test-extensions-loading.js:6
↓ 1 callersFunctioncheckElementUpgrade
(element)
extensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-init.js:5
↓ 1 callersFunctioncheckEnumId
* @param {!Node|undefined} node
build-system/eslint-rules/enums.js:60
↓ 1 callersFunctioncheckFile
* Checks a single OWNERS file using the owners bot API. * @param {string} file * @return {Promise<void>}
build-system/tasks/check-owners.js:39
↓ 1 callersMethodcheckFormValidity
* Wraps `checkValidity` on form elements to support `pattern` attribute on * <textarea> which is not supported in HTML5. * @param {!HTMLFormElem
extensions/amp-form/0.1/form-validators.js:140
↓ 1 callersFunctioncheckGlobalScope
(win)
test/integration/test-released.js:53
↓ 1 callersMethodcheckGranularConsentRequired_
* Returns true if we have stored the granular consent values * for the required purposes. * @param {ConsentInfoDef} consentInfo * @return {!P
extensions/amp-consent/0.1/amp-consent.js:801
↓ 1 callersMethodcheckGroup_
* checkGroup_() does this.country_ match the group * after expanding any presets and forceing to lower case. * @param {!Array<string>} countryGr
extensions/amp-geo/0.1/amp-geo.js:434
↓ 1 callersMethodcheckGyroscopePermissions_
@private
extensions/amp-story-360/0.1/amp-story-360.js:439
↓ 1 callersMethodcheckIfClearCookiePostMessageHasValidSource_
* Checks whether the postMessage event's source corresponds to the ad * iframe. Exposed as own function to ease unit testing. (It's near * impos
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1421
↓ 1 callersMethodcheckIfClearCookiePostMessageHasValidSource_
* Checks whether the postMessage event's source corresponds to the ad * iframe. Exposed as own function to ease unit testing. (It's near * impos
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:592
↓ 1 callersMethodcheckIfVisibleFallback_
* Checks if element is close to the viewport and calls the callback when it * is. * @private
src/amp-story-player/amp-story-player-viewport-observer.js:84
↓ 1 callersMethodcheckImageReSize_
* Checks if the image is larger than the GPUs max texture size. * Scales the image down if neededed. * Returns the image element if image is wit
extensions/amp-story-360/0.1/amp-story-360.js:613
↓ 1 callersMethodcheckIsLocalStorageSupported_
* Determines whether localStorage API is supported by ensuring it is declared * and does not throw an exception when used. * @return {boolean}
src/service/storage-impl.js:337
↓ 1 callersMethodcheckMandatoryParams_
* @private
extensions/amp-access-poool/0.1/poool-impl.js:142
↓ 1 callersMethodcheckMutations_
* @param {Array<MutationRecord>} records * @private
src/preact/base-element.js:555
↓ 1 callersFunctioncheckNodeVersion
* Check the node version and print a warning if it is not the latest LTS. * * @return {Promise<void>}
build-system/common/check-package-manager.js:103
↓ 1 callersFunctioncheckNonNullableNodes
* Check if a Closure Compiler comment contains a primitive redundantly * specified as non-nullable with a ! * @param {!EslintContextDef} context *
build-system/eslint-rules/closure-type-primitives.js:141
↓ 1 callersFunctioncheckOriginForSettingCookie
* Throws if a given cookie should not be set on the given origin. * This is a defense-in-depth. Callers should never run into this. * * @param {!Wi
src/cookies.js:242
↓ 1 callersMethodcheckPageHasAudio_
* Checks if the page has audio elements or video elements with audio and updates the store service state. * @private
extensions/amp-story/1.0/amp-story-page.js:1634
↓ 1 callersMethodcheckPageHasCaptions_
* Checks if the page has any captions. * @private
extensions/amp-story/1.0/amp-story-page.js:1697
↓ 1 callersMethodcheckPageHasElementWithPlayback_
* Checks if the page has elements with playback. * @private
extensions/amp-story/1.0/amp-story-page.js:1681
↓ 1 callersMethodcheckPermissionDialogClosedInterval_
* Checks whether the permission dialog is still open. When closed, a closed * callback is executed. * * @param {?Window} permissionDialogWind
extensions/amp-web-push/0.1/web-push-service.js:753
↓ 1 callersFunctioncheckProps
@param {*} node
build-system/eslint-rules/preact-preferred-props.js:41
↓ 1 callersFunctioncheckProps
* Verify required props and throw error if necessary. * @param {!BrightcoveDef.Props} props * @return {boolean} true on valid
src/bento/components/bento-brightcove/1.0/component.js:161
↓ 1 callersFunctioncheckProps
* @param {!BentoJwplayerDef.Props} props * @return {boolean}
src/bento/components/bento-jwplayer/1.0/component.js:296
↓ 1 callersFunctioncheckPythonVersion
* Checks if the local version of python is 2.7 or 3
build-system/common/check-package-manager.js:204
↓ 1 callersFunctioncheckSourcemapMappings
* Performs a sanity check on the mappings field in the sourcemap file. * * Today, the first line of amp.js after resolving imports comes from * src
build-system/tasks/check-sourcemaps.js:107
↓ 1 callersFunctioncheckSourcemapSources
* Verifies all the paths in the sources field are as expected. * * @param {!Object} sourcemapJson * @param {string} map The map filepath to check
build-system/tasks/check-sourcemaps.js:69
↓ 1 callersFunctioncheckSourcemapUrl
* Verifies that a correctly formatted sourcemap URL is present in v0.js.map. * * @param {!Object} sourcemapJson * @param {string} map The map filep
build-system/tasks/check-sourcemaps.js:51
↓ 1 callersFunctioncheckStaticEnumUse
* @param {!Node} node
build-system/eslint-rules/enums.js:91
↓ 1 callersMethodcheckStoryConsent_
* Validate if story consent then no promptUiSrc * @param {!JsonObject} config * @return {!JsonObject}
extensions/amp-consent/0.1/consent-config.js:241
↓ 1 callersMethodcheckTriggerEnabled_
* Checks if request for a trigger is enabled. * @param {!JsonObject} trigger The config to use to determine if trigger is * enabled. * @param
extensions/amp-analytics/0.1/amp-analytics.js:768
↓ 1 callersMethodcheckUpdates_
* Check if any properties awaiting recalculation. This method is always * scheduled asynchronously and throttled. * * @private
src/core/context/values.js:452
↓ 1 callersFunctioncheckUserValidityOnSubmission
* Checks user validity for all inputs, fieldsets and the form. * @param {!HTMLFormElement} form * @return {boolean} Whether the form is currently va
extensions/amp-form/0.1/amp-form.js:1435
↓ 1 callersFunctioncheckerForAnnotation
* @param {CompilerNode} node * @return {Function(): void|void}
build-system/eslint-rules/unused-private-field.js:43
↓ 1 callersFunctionchildElementsByAttr
(parent, attr)
src/core/dom/query.js:297
↓ 1 callersFunctionchooseReportingUrl_
* Determines the error reporting endpoint which should be used. * If changing this URL, keep `docs/spec/amp-errors.md` in sync. * @return {string} e
src/error-reporting.js:371
↓ 1 callersFunctionciCommitSha
* Returns the commit SHA being tested by a push build. * @return {string}
build-system/common/ci.js:125
↓ 1 callersFunctionciPullRequestBranch
* Returns the name of the PR branch. * @return {string}
build-system/common/ci.js:89
↓ 1 callersFunctionciPushBranch
* Returns the branch for push builds. * @return {string}
build-system/common/ci.js:113
↓ 1 callersFunctionciRepoSlug
* Returns the repo slug for the ongoing build. * @return {string}
build-system/common/ci.js:221
↓ 1 callersFunctioncircleciIsParallelized
* Returns true for parallelized CircleCI builds. * @return {boolean}
build-system/common/ci.js:205
↓ 1 callersFunctioncircleciPrMergeCommit
* Returns the merge commit for a CircleCI PR build. CIRCLECI_MERGE_COMMIT is * populated by .circleci/fetch_merge_commit.sh. * @return {string}
build-system/common/ci.js:182
↓ 1 callersFunctionclassifyRating
(rating = '')
extensions/amp-addthis/0.1/addthis-utils/classify.js:70
↓ 1 callersFunctionclean
* Cleans up various cache and output directories. Optionally cleans up inner * node_modules package directories, or excludes some directories from de
build-system/tasks/clean.js:51
↓ 1 callersFunctioncleanWhitespace
(html: string)
testing/helpers/cleanHtml.ts:18
↓ 1 callersMethodcleanup
()
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:948
↓ 1 callersMethodcleanupAfterTest
@visibleForTesting
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1271
↓ 1 callersFunctioncleanupBranches
* @return {Promise}
build-system/tasks/sweep-experiments/cleanup-branches.js:112
↓ 1 callersMethodcleanupEventListeners_
* Clean up event listeners. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:610
↓ 1 callersMethodcleanupGestures_
@private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:536
↓ 1 callersMethodcleanupListeners_
* Remove the listeners that the date picker has created. * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1177
↓ 1 callersMethodcleanupRenderedTemplate_
* Removes the template for the passed state. * @param {!FormState} state * @private
extensions/amp-form/0.1/amp-form.js:1312
↓ 1 callersFunctioncleanupTestPageElements
* Cleans up any HTML elements that tests might have added to the document.
testing/init-tests-helpers.js:180
↓ 1 callersFunctioncleanup_
* Cleans and deletes the temp directory. * * @param {string} tempDir full directory path to temporary working directory. * @return {Promise<void>}
build-system/tasks/release/index.js:534
↓ 1 callersMethodcleanup_
* @param {!AmpElement} element * @private
src/service/loading-indicator.js:140
↓ 1 callersMethodcleanup_
* Cleans up listeners on the ad iframe. * @private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:420
↓ 1 callersMethodclearDimensions_
* Clears content dimensions if any
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:417
↓ 1 callersMethodclearPreRender_
* clearPreRender_() * Returns a list of classes to remove if pre-render has * been invalidated by way of an override. * @param {!Element} bod
extensions/amp-geo/0.1/amp-geo.js:475
↓ 1 callersFunctionclearResponseCacheForTesting
()
extensions/amp-call-tracking/0.1/amp-call-tracking.js:33
↓ 1 callersFunctionclearTruncated
* Clears the effects of truncateing on an element, restoring content, unhiding * any hidden elements and hiding the overflow button. * @param {!Elem
extensions/amp-truncate-text/0.1/truncate-text.js:41
↓ 1 callersMethodclearVerificationErrors_
* Removes all custom verification errors from the elements. * @private
extensions/amp-form/0.1/form-verifiers.js:118
↓ 1 callersMethodclickHandler_
* Handles clicks on an accordion header to expand/collapse its content. * @param {!Event} event * @private
extensions/amp-accordion/0.1/amp-accordion.js:539
↓ 1 callersFunctionclickLinkAndNavigate_
(doc, selector)
test/integration/test-amp-skimlinks.js:22
↓ 1 callersFunctioncloneDeep
* @param {!Element} node * @return {!Element}
src/service/video/autoplay.js:10
↓ 1 callersMethodcloneLightboxableElement_
* Return a cleaned clone of the given element for building * carousel slides with. * @param {!Element} element * @return {!Node} * @privat
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:265
↓ 1 callersFunctioncloneLocalizedStringBundle
* Creates a deep copy of the specified LocalizedStringBundle. * @param {!LocalizedStringBundleDef} localizedStringBundle * @return {!LocalizedString
src/service/localization/strings.js:156
↓ 1 callersFunctioncloneWithoutFunctions
* Clones an object and replaces its function properties with throws. * @param {!T} original * @param {!T=} opt_dest * @return {!T} * @template T
src/service/action-impl.js:925
↓ 1 callersMethodcloseDocument
* Closes the shadow document of an inserted page and replaces it * with a placeholder * @param {!Page} page * @return {!Promise}
extensions/amp-next-page/1.0/service.js:657
← previousnext →7,801–7,900 of 18,703, ranked by callers