MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 2 callersMethodcheckPendingChangeSize_
* Reschedules change size request when an overflown element is activated. * @param {!Element} element * @private
src/service/mutator-impl.js:271
↓ 2 callersFunctioncheckProps
* Verify required props and throw error if necessary. * @param {string|undefined} trackId * @param {string|undefined} playlistId * @return {boolean
src/bento/components/bento-soundcloud/1.0/component.js:108
↓ 2 callersMethodcheckPropsPostMutations
* A callback called immediately after mutations have been observed on a * component's defined props. The implementation can verify if any * addi
src/preact/base-element.js:530
↓ 2 callersFunctioncheckSentinels
* Checks that a provided sentinel is/is not contained in a file. * @param {string} filePath JS binary to check * @param {Record<string, boolean>} se
build-system/tasks/check-asserts.js:20
↓ 2 callersMethodcheckSpecEnabled_
* Checks result of 'enabled' spec evaluation. Returns false if spec is * provided and value resolves to a falsey value (empty string, 0, false,
extensions/amp-analytics/0.1/amp-analytics.js:797
↓ 2 callersMethodcheckString
* Checks space delimited list of types * @param {?string} itemtype * @param {Array<string>} expectedTypes * @return {boolean}
third_party/subscriptions-project/config.js:739
↓ 2 callersMethodcheckTextAreaValidityInForm_
* @param {!HTMLFormElement} form * @private
extensions/amp-form/0.1/form-validators.js:161
↓ 2 callersMethodcheckValue
* Check value from json * @param {?Array|string} value * @param {Array<string>} expectedTypes * @return {boolean}
third_party/subscriptions-project/config.js:726
↓ 2 callersFunctionchildElements
(parent, callback)
src/core/dom/query.js:236
↓ 2 callersFunctionchildNodes
(parent, callback)
src/core/dom/query.js:257
↓ 2 callersFunctionchkIsvalidContext
(mixContext)
ads/vendors/affinity.js:39
↓ 2 callersFunctionci
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersFunctioncircleciUniqueBuildNumber
* Returns an identifier that is unique to each CircleCI build, discerning for * parallelized builds * * Note that this is different from the workfl
build-system/common/ci.js:195
↓ 2 callersFunctionclassifyPage
(pageInfo, metaElements)
extensions/amp-addthis/0.1/addthis-utils/classify.js:186
↓ 2 callersFunctionclassifyReferrer
( referrerString, parsedReferrer, parsedHref )
extensions/amp-addthis/0.1/addthis-utils/classify.js:212
↓ 2 callersFunctionclassnameId
* @param {string} name * @return {string}
build-system/babel-plugins/babel-plugin-transform-jss/index.js:54
↓ 2 callersMethodcleanupEvents_
* @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:474
↓ 2 callersMethodcleanupGestures_
@private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:443
↓ 2 callersMethodcleanupSrcTemplates_
* Cleanup the resources allocated for the src templates. * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1299
↓ 2 callersMethodclear
()
examples/pwa/pwa.js:239
↓ 2 callersMethodclearAllSelections_
* Clears all selected options. * @private
extensions/amp-selector/0.1/amp-selector.js:632
↓ 2 callersMethodclearDirtyFields_
* Clears the dirty field name map and counter. * @private
extensions/amp-form/0.1/form-dirtiness.js:226
↓ 2 callersFunctionclearLastExpectError
* Clears previous expected error state.
build-system/tasks/e2e/expect.js:12
↓ 2 callersMethodclearRenderedTemplates_
* Create a new map to store rendered templates and drop the old reference * for garbage collection. * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1291
↓ 2 callersMethodclear_
* Cancels the last queued timeout.
extensions/amp-live-list/0.1/poller.js:93
↓ 2 callersFunctioncloneNodes
(nodes)
build-system/babel-plugins/babel-plugin-transform-stringish-literals/index.js:10
↓ 2 callersMethodclose
* Called when stream is finished. Close the detached doc, and call cb. * @public
src/core/dom/stream/detached.js:42
↓ 2 callersMethodcloseDialog
Close dialog.
third_party/subscriptions-project/swg.js:19220
↓ 2 callersMethodcloseGallery_
* Close gallery view * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1238
↓ 2 callersFunctionclosePopup
(affirmative)
tools/experiments/experiments.js:358
↓ 2 callersMethodclose_
@private
third_party/subscriptions-project/swg.js:11487
↓ 2 callersFunctioncn
(n,t,e)
third_party/d3/d3.js:1
↓ 2 callersMethodcollapse_
* Collapses the component by undoing the effects of `expand_()`.
extensions/amp-truncate-text/0.1/amp-truncate-text.js:277
↓ 2 callersMethodcollectDisallowedVarsSync
* Collects substitutions in the `src` attribute of the given element * that are _not_ allowlisted via `data-amp-replace` opt-in attribute. * @pa
src/service/url-replacements-impl.js:1173
↓ 2 callersMethodcollectUrlVars
* @param {string} url * @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<!{[key: string]: *}>}
extensions/amp-access/0.1/amp-access-source.js:305
↓ 2 callersMethodcollectUrlVars
* @param {string} url * @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<!{[key: string]: *}>}
extensions/amp-subscriptions/0.1/url-builder.js:46
↓ 2 callersFunctioncollectionOf
(t,e,r)
third_party/react-dates/bundle.js:1
↓ 2 callersFunctioncombineConsentParams
* Function to handle the three-state boolean logic of tfcd/tfua params. * - If any params are 1, return 1. * - Else if any of them are 0, return 0.
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:2114
↓ 2 callersFunctioncommand
(args = [])
build-system/test-configs/jscodeshift/index.js:4
↓ 2 callersMethodcompare
* Compare dimensions between elements styled with default and custom fonts. * If the divs are identical, the custom font has not loaded. * @retu
extensions/amp-font/0.1/fontloader.js:261
↓ 2 callersFunctioncompareCurlsDomain
* Function to compare curls domains with the passed subdomain * and window * @param {Window} win * @param {string} curlsSubdomain * @param {string
3p/recaptcha.js:218
↓ 2 callersFunctioncompileAllJs
* Compile and optionally minify the stylesheets and the scripts for the runtime * and drop them in the dist folder * * @param {!Object} options *
build-system/tasks/helpers.js:144
↓ 2 callersFunctioncompileTags
(tagsToCompile)
src/bento/third_party/mustache/mustache.js:149
↓ 2 callersMethodcompleteContinue_
* @param {boolean} success * @private
src/motion.js:240
↓ 2 callersMethodcompleteHandshake_
* @private
extensions/amp-viewer-integration/0.1/examples/amp-viewer-host.js:59
↓ 2 callersMethodcompleteScheduleChangeSize_
* @param {!Resource} resource * @param {number|undefined} newHeight * @param {number|undefined} newWidth * @param {!./resources-interface.Mar
src/service/mutator-impl.js:362
↓ 2 callersMethodcomplete_
* @param {!Object} response * @param {boolean} success * @private
third_party/subscriptions-project/swg.js:14283
↓ 2 callersFunctioncomposeDocument
* @param {{body: string, css?: string|undefined, extensions: Array<string>|undefined, head?: string|undefined, spec?: string|undefined, mode?: string|
build-system/server/amp4test.js:222
↓ 2 callersFunctioncomputeAndCall
* @param {Type_Enum} type * @param {SizeCallback<TargetSize>} callback * @param {ResizeObserverEntry} entry
src/core/dom/layout/size-observer.js:201
↓ 2 callersFunctioncomputeDocIsDisplayed
* @param {!VisibilityState_Enum} visibilityState * @return {boolean}
src/utils/display-observer.js:429
↓ 2 callersFunctionconfigureAmpTestMode
* @param {!Window} win
testing/describes.js:914
↓ 2 callersFunctionconfigureGoogleSignIn
* Loads the Google Sign-In API. * * This function is used in two places. * 1. The publisher's Google Sign-In iframe. * 2. (Optional) Demos that al
third_party/subscriptions-project/swg-gaa.js:2549
↓ 2 callersMethodconfigurePending
* @param {!./deps.DepsDef} deps
third_party/subscriptions-project/swg.js:5825
↓ 2 callersMethodconfigure_
* @param {!../api/subscriptions.Config} config * @private
third_party/subscriptions-project/swg.js:19137
↓ 2 callersMethodconnect
* @return {!Promise} * @package Visible for testing only.
extensions/amp-access/0.1/amp-access-iframe.js:130
↓ 2 callersMethodconnected_
@private
src/custom-element.js:1357
↓ 2 callersFunctionconstructSRABlockParameters
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:48
↓ 2 callersMethodconstructSrc_
* Constructing url SRC for api calls * @param {string} slug src or iframe src in case false * @return {string} url of the placeholder * @priv
extensions/amp-iframely/0.1/amp-iframely.js:194
↓ 2 callersFunctionconstructTtj
* Construct the TTJ URL. * Note params should be properly encoded first (use encodeURIComponent); * @param {!Array<string>} args query string p
ads/vendors/appnexus.js:33
↓ 2 callersMethodconsume
* A 3p site should call this method to consume a Google metering entitlement. * When a metering entitlement is consumed, SwG shows the user a meter
third_party/subscriptions-project/swg.js:4488
↓ 2 callersFunctioncontainsExtension
(scripts, expectedExtension)
build-system/server/app-index/test/test-amphtml-helpers.js:25
↓ 2 callersMethodcontentHeightChanged
@override
src/inabox/inabox-viewport.js:210
↓ 2 callersMethodconvertResponse_
* @param {!Promise<!PaymentData>} response * @param {?PaymentDataRequest} request * @return {!Promise<!PaymentData>} * @private
third_party/subscriptions-project/swg.js:18103
↓ 2 callersMethodconvertToContainerWidth
* Convert the element to container width responsive. * * @param {!Element} element * @return {!Promise<?ResponsiveState>} a promise that retu
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:155
↓ 2 callersFunctionconvertValueToState
(value)
extensions/amp-consent/0.1/consent-info.js:345
↓ 2 callersFunctioncopyAndReplaceUrls
* @param {string} src * @param {string} dest * @return {Promise<void>}
build-system/tasks/firebase.js:32
↓ 2 callersFunctioncopyAttributes
* Copies all unprotected attributes from fromEl to toEl. * @param {!Element} fromEl The element from which attributes should * be copied. * @pa
extensions/amp-story/1.0/media-tasks.js:90
↓ 2 callersFunctioncopyChildren
(from, to)
src/core/dom/index.js:117
↓ 2 callersFunctioncopyCssClasses
* Copies all unprotected CSS classes from fromEl to toEl. * @param {!Element} fromEl The element from which CSS classes should * be copied. * @
extensions/amp-story/1.0/media-tasks.js:64
↓ 2 callersMethodcopyProperties_
* Copies specified properties of o to a new object. * @param {!Object} o The source object. * @param {!Array<string>} properties The properties
extensions/amp-viewer-integration/0.1/touch-handler.js:177
↓ 2 callersMethodcopyTouchEvent_
* Makes a partial copy of the event. * @param {!Event} e The event object to be copied. * @return {!JsonObject} * @private
extensions/amp-viewer-integration/0.1/touch-handler.js:145
↓ 2 callersMethodcopyTouches_
* Copies an array of touches. * @param {!Array<!Object>} touchList * @return {!Array<!Object>} * @private
extensions/amp-viewer-integration/0.1/touch-handler.js:162
↓ 2 callersMethodcountAndCacheValidItems_
* Runs through all the children of the current live-list and counts valid * ones. Has optional opt_cacheIds flag which caches the ids while we iter
extensions/amp-live-list/0.1/amp-live-list.js:846
↓ 2 callersFunctioncrc32
(str)
extensions/amp-analytics/0.1/crc32.js:18
↓ 2 callersFunctioncrc32
(str)
extensions/amp-consent/0.1/crc32.js:18
↓ 2 callersFunctioncreateAnimInWindow
(win, attrs, config)
extensions/amp-animation/0.1/test/test-amp-animation.js:14
↓ 2 callersFunctioncreateArrowFunctionExpression
* @param {CompilerNode} node * @return {ReturnType<t['arrowFunctionExpression']>}
build-system/babel-plugins/babel-plugin-transform-function-declarations/index.js:96
↓ 2 callersFunctioncreateCancelError
* Creates or emulates a DOMException of AbortError type. * See https://heycam.github.io/webidl/#aborterror. * @param {!Window} win * @param {string
third_party/subscriptions-project/swg.js:3821
↓ 2 callersFunctioncreateCidData
* Creates a JSON object that contains the given CID and the current time as * a timestamp. * @param {string} cidString * @return {string}
src/service/cid-impl.js:616
↓ 2 callersFunctioncreateCommonIterator
* Create an iterator from an object with iterator-like behavior but a * different API name for the iteration method. * @template T * @param {!NodeI
build-system/tasks/e2e/driver/query-xpath.js:141
↓ 2 callersMethodcreateContainer_
* Creates and returns <div> that contains the template-rendered children. * @return {!Element} * @private
extensions/amp-list/0.1/amp-list.js:539
↓ 2 callersFunctioncreateCustomElementClass
(win, elementConnectedCallback)
src/custom-element.js:93
↓ 2 callersMethodcreateDebouncedAdvance_
* Creates a debounced advance function. * @param {number} interval * @private
extensions/amp-base-carousel/0.1/auto-advance.js:168
↓ 2 callersFunctioncreateDocumentRef
* Creates a new {@link DocumentRef} for the specified URL. * @param {string} ampUrl AMP URL of the document. * @param {string=} title Document title
extensions/amp-next-page/0.1/next-page-service.js:607
↓ 2 callersFunctioncreateElement
(rect)
test/unit/test-resources.js:625
↓ 2 callersFunctioncreateElementIterator
* Create an iterator over the subtree of the given element. * @param {!HTMLElement} element * @return {!Iterable<!HTMLElement>}
build-system/tasks/e2e/driver/query-xpath.js:116
↓ 2 callersFunctioncreateElementWithRect
(rect)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:74
↓ 2 callersFunctioncreateElements
()
extensions/amp-access/0.1/test/test-amp-access.js:449
↓ 2 callersFunctioncreateErrorResponse
* * @param {!string} error
third_party/subscriptions-project/swg.js:7728
↓ 2 callersFunctioncreateExtensionScript
(win, extensionId, version)
src/service/extension-script.js:128
↓ 2 callersFunctioncreateFakeVideoPlayerClass
(win)
test/integration/test-video-manager.js:456
↓ 2 callersMethodcreateFontComparators_
* Create hidden divs and measure dimensions for fonts. * @return {!Array<!FontComparator>} An array of comparators, one for each * default f
extensions/amp-font/0.1/fontloader.js:174
↓ 2 callersFunctioncreateFormResultChildren
* @param {!LocalizedStringId_Enum} localizedStringId * @return {!FormElementChildrenDef} * @private
extensions/amp-story-page-attachment/0.1/amp-story-form.js:82
↓ 2 callersFunctioncreateImplTag
* Creates an iframe promise, and instantiates element and impl, adding the * former to the document of the iframe. * @param {{width, height, type}}
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-amp-ad-network-doubleclick-impl.js:78
↓ 2 callersMethodcreateImpl_
* @return {!Promise<!./base-element.BaseElement>} * @private
src/custom-element.js:1579
↓ 2 callersFunctioncreateInstances
(instanceCount, invalid)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:569
↓ 2 callersFunctioncreateInvalidRequiredErrorMessage
(e,r,a)
third_party/react-dates/bundle.js:1
↓ 2 callersFunctioncreateLoginDialog
(ampdoc, urlOrPromise)
extensions/amp-access/0.1/login-dialog.js:22
↓ 2 callersFunctioncreateMediaElement
* @param {string} tagName * @return {!HTMLMediaElement}
extensions/amp-story/1.0/test/test-media-pool.js:34
↓ 2 callersFunctioncreateMediaElements
* @param {string} tagName * @param {number} count * @return {!Array<!HTMLMediaElement>}
extensions/amp-story/1.0/test/test-media-pool.js:46
← previousnext →5,301–5,400 of 18,703, ranked by callers