MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 1 callersFunctionstubPostMessage
(element)
extensions/amp-google-read-aloud-player/0.1/test/test-amp-google-read-aloud-player.js:84
↓ 1 callersFunctionstubXhr
()
extensions/amp-analytics/0.1/test/test-config.js:987
↓ 1 callersMethodsubmittingWithTrust_
* Triggers the analytics and renders any template for submitting state. * @param {ActionTrust_Enum} trust
extensions/amp-form/0.1/amp-form.js:851
↓ 1 callersFunctionsucceed
()
extensions/amp-access/0.1/test/test-amp-login-done-dialog.js:65
↓ 1 callersFunctionsummarizeResults
* Summarize the results of linting all files. * @param {object} results * @param {object} fixedFiles
build-system/tasks/lint.js:70
↓ 1 callersFunctionsummaryCommitMessage
* @param {{ * removed: string[], * cleanupIssues: Array<Object>, * cutoffDateFormatted: string, * modifiedSourceFiles: Array<string>, *
build-system/tasks/sweep-experiments/index.js:299
↓ 1 callersFunctionsupportsDocumentRoot
(win)
src/polyfills/stubs/intersection-observer-stub.js:96
↓ 1 callersFunctionsupportsFullscreenViaApi
* @param {!AmpElement} video * @return {boolean} * @restricted
src/service/video-manager-impl.js:1034
↓ 1 callersFunctionsupportsNativeCrypto
(win)
ads/google/a4a/utils.js:142
↓ 1 callersMethodsupportsPageHide_
* Detect support for the pagehide event. * IE<=10 and Opera Mini do not support the pagehide event and * possibly others, so we feature-detect s
extensions/amp-analytics/0.1/events.js:1741
↓ 1 callersMethodsupportsPlatform
* Whether the component supports video playback in the current platform. * If false, component will be not treated as a video component. * @retu
src/video-interface.js:45
↓ 1 callersMethodsupportsPlatform
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:125
↓ 1 callersMethodsupportsPlatform
@override
extensions/amp-3q-player/0.1/amp-3q-player.js:241
↓ 1 callersMethodsupportsPlatform
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:225
↓ 1 callersMethodsupportsPositionFixed
@override
src/service/viewport/viewport-impl.js:438
↓ 1 callersFunctionsupportsPrefetch
* Returns whether or not link rel=prefetch is supported. * @param {!Document} doc * @return {boolean}
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:440
↓ 1 callersFunctionsupportsUnderProto
* Tests whether setting '__proto__' will change the prototype chain of an * object. Only needed for old IE. * @return {boolean}
src/polyfills/custom-elements.js:815
↓ 1 callersMethodswapPoolMediaElementIntoDom_
* Replaces a media element that was originally in the DOM with a media * element from the pool. * @param {!PlaceholderElementDef} placeholderEl
extensions/amp-story/1.0/media-pool.js:505
↓ 1 callersMethodswipeGesture_
* Handles a swipe gesture, updating the current swipe to dismiss state. * @param {!SwipeDef} data
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:633
↓ 1 callersMethodswipeMove
* @param {!SwipeDef} data The data for the swipe.
extensions/amp-lightbox-gallery/0.1/swipe-to-dismiss.js:332
↓ 1 callersMethodswipeMove
* Handles a swipe move. * @param {!SwipeDef} data
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:151
↓ 1 callersMethodswipeMove
* Handles a swipe move. * @param {!SwipeDef} data
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:151
↓ 1 callersMethodswitchDelta_
* Switches to a page in the story given a delta. If new index is out of * bounds, it will go to the last or first page (depending on direction).
extensions/amp-story/1.0/amp-story.js:2504
↓ 1 callersMethodswitchToShadow
* Switch controller to shadowRoot body hosted by given element. * @param {!ElementHandle<!WebElement>} handle * @return {!Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:648
↓ 1 callersFunctionsxgTransform
( node: posthtml.Node, options: OptionSet = {} )
build-system/server/new-server/transforms/sxg/sxg-transform.ts:7
↓ 1 callersFunctionsyncIncident
* Syncs incident with cherry-pick progress * @return {Promise<void>}
build-system/status-page/incident.js:121
↓ 1 callersFunctionsyncPromise
(response)
extensions/amp-date-countdown/1.0/test/test-component.js:33
↓ 1 callersFunctionsyncPromise
(response)
extensions/amp-date-display/1.0/test/test-component.js:35
↓ 1 callersMethodsyncRemoteConsentState_
* Clear cache for server side decision and then sync.
extensions/amp-consent/0.1/amp-consent.js:668
↓ 1 callersFunctiontagCannotBeCalled
* @param {CompilerNode} node
build-system/eslint-rules/html-template.js:20
↓ 1 callersMethodtagNeedsBackground_
* @return {boolean} True if the loaderBackground should be used for the * element. * @private
extensions/amp-loader/0.1/amp-loader.js:214
↓ 1 callersMethodtakeFormDataSnapshot_
* @return {!FormData} * @private
extensions/amp-form/0.1/form-dirtiness.js:87
↓ 1 callersMethodtakeScreenshot
* @param {string} path * @return {!Promise<void>} An encoded string representing the image data
build-system/tasks/e2e/selenium-webdriver-controller.js:585
↓ 1 callersMethodtemplatesForSsr_
* If present, finds and returns the success and error response templates. * Note that we do not render the submitting state template and only *
extensions/amp-form/0.1/amp-form.js:809
↓ 1 callersFunctiontest
(string)
build-system/babel-plugins/babel-plugin-transform-html-template/test/fixtures/transform-assertions/other-template-literals/output.js:7
↓ 1 callersFunctiontest
(string)
build-system/babel-plugins/babel-plugin-transform-html-template/test/fixtures/transform-assertions/other-template-literals/input.js:6
↓ 1 callersFunctiontestIframeCaptioned
(iframe)
extensions/amp-instagram/0.1/test/test-amp-instagram.js:81
↓ 1 callersFunctiontestPassiveEventListeners
()
third_party/react-dates/bundle.js:1
↓ 1 callersFunctiontestRegExp
(re, string)
src/bento/third_party/mustache/mustache.js:60
↓ 1 callersFunctiontestRegExp
(re, string)
third_party/mustache/mustache.js:43
↓ 1 callersFunctiontestScopeSelector
* Test that the :scope selector is supported and behaves correctly. * @param {Element|ShadowRoot} el * @return {boolean}
src/core/dom/css-selectors.js:37
↓ 1 callersFunctionthrottle
* Creates a wrapper function which ensures that provided callback will be * invoked only once during the specified delay period. * * @p
third_party/resize-observer-polyfill/ResizeObserver.js:749
↓ 1 callersFunctionthrottle
* Creates a wrapper function which ensures that provided callback will be * invoked only once during the specified delay period. * * @p
third_party/resize-observer-polyfill/ResizeObserver.install.js:748
↓ 1 callersMethodthrottledScroll_
* This method is called about every 3 frames (assuming 60hz) and it * is called in a vsync measure task. * @param {number} referenceTime Time wh
src/service/viewport/viewport-impl.js:1030
↓ 1 callersMethodtickCumulativeLayoutShiftScore_
* Tick the layout shift score metric. * * A value of the metric is recorded in under two names, `cls-1` and `cls-2`, * for the first two time
src/service/performance-impl.js:683
↓ 1 callersMethodtickCumulativeMetrics_
* Tick the metrics whose values change over time. * @private
src/service/performance-impl.js:578
↓ 1 callersMethodtickLargestContentfulPaint_
* Tick the largest contentful paint metrics. * Uses entry.startTime, which equates to: `renderTime ?? loadTime`. We can't * always use one or th
src/service/performance-impl.js:710
↓ 1 callersMethodtickLayoutShiftScore_
* Tick the layout shift metric, following the latest CWV standard. This uses * a 5s maximum window with a 1s gap between events to define a "sessio
src/service/performance-impl.js:592
↓ 1 callersMethodtieCloseButton_
* Add close button event listener to button we created * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:456
↓ 1 callersMethodtimeSinceStart
* Returns time since start in milliseconds. * @return {number}
src/service/timer-impl.js:39
↓ 1 callersMethodtimeUpdateActionEvent_
* Triggers a LOW-TRUST timeupdate event consumable by AMP actions. * Frequency of this event is controlled by SECONDS_PLAYED_MIN_DELAY and is *
src/service/video-manager-impl.js:157
↓ 1 callersFunctiontimeout
* @param {number} ms * @return {!Promise}
test/e2e/test-amp-story-player-prerender.js:10
↓ 1 callersFunctiontimeout
* @param {number} ms * @return {!Promise}
extensions/amp-accordion/0.1/test/integration/test-amp-accordion.js:49
↓ 1 callersFunctiontimer
(callback, timeMs)
ads/inabox/util.js:38
↓ 1 callersMethodtitle
@return {string}
extensions/amp-next-page/1.0/page.js:83
↓ 1 callersMethodtoArray_
(value)
third_party/subscriptions-project/config.js:766
↓ 1 callersFunctiontoEsmName
* @param {string} name * @return {string}
build-system/tasks/helpers.js:193
↓ 1 callersFunctiontoExtension
(url: URL, extension: string)
build-system/server/new-server/transforms/utilities/cdn-tag.ts:68
↓ 1 callersFunctiontoHex
(buffer)
third_party/subscriptions-project/swg.js:3328
↓ 1 callersFunctiontoPosix
* To support Windows, use posix separators for all filepath hashes. * @param {string} filepath * @return {string}
build-system/babel-plugins/babel-plugin-transform-jss/create-hash.js:18
↓ 1 callersFunctiontoPosix
* Even though we are using the path module, JS Modules should never have * their paths specified in Windows format. * @param {string} path * @retur
build-system/babel-plugins/babel-plugin-transform-promise-resolve/index.js:56
↓ 1 callersFunctiontoPosix
(str)
build-system/common/utils.js:82
↓ 1 callersFunctiontoString
(val)
third_party/subscriptions-project/swg.js:3014
↓ 1 callersFunctiontoString
(val)
third_party/subscriptions-project/swg-gaa.js:309
↓ 1 callersFunctiontoUpperCase
(str)
validator/js/engine/htmlparser-interface.js:26
↓ 1 callersMethodtoggleCaptions
* Shows or hides the captions. * @param {boolean} captionsState * @public
extensions/amp-video/0.1/amp-video.js:1053
↓ 1 callersMethodtoggleExpandMutations_
* Callback function to execute when mutations are observed on "data-expand". * @param {!Array<!MutationRecord>} mutations * @param {!ActionTrust
extensions/amp-accordion/0.1/amp-accordion.js:615
↓ 1 callersMethodtoggleExperiment
* Toggles an experiment in an AMP document. Uses the current domain. * @param {string} name * @param {boolean} toggle * @return {!Promise}
build-system/tasks/e2e/amp-driver.js:162
↓ 1 callersFunctiontoggleExperiments
* Toggle the given experiments for the given test URL domain. * @param {!AmpDriver} ampDriver * @param {string} testUrl * @param {!Array<string>} e
build-system/tasks/e2e/describes-e2e.js:693
↓ 1 callersMethodtoggleLoadingSpinner_
* Has to be called through the `debounceToggleLoadingSpinner_` method, to * avoid the spinner flashing on the screen when the video loops, or durin
extensions/amp-story/1.0/amp-story-page.js:1813
↓ 1 callersMethodtogglePlaceholder
* Hides or shows the placeholder, if available. * @param {boolean} show * @package @final
src/custom-element.js:1937
↓ 1 callersMethodtoggleState_
* @param {string} type * @param {boolean} state * @private
extensions/amp-subscriptions/0.1/renderer.js:86
↓ 1 callersMethodtoggleTabbableElements_
* Toggles the tabbable elements (buttons, links, etc) to only reach them when page is active. * @param {boolean} toggle
extensions/amp-story/1.0/amp-story-page.js:2004
↓ 1 callersMethodtoggleTabbableElements_
* Toggles the tabbable elements (buttons, links, etc) to only reach them when page is active. * @param {boolean} toggle
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:830
↓ 1 callersMethodtoggle_
* Handles toggle action. * @param {number} index * @param {boolean|undefined} value * @param {!ActionTrust_Enum} trust * @return {!Promise
extensions/amp-selector/0.1/amp-selector.js:407
↓ 1 callersFunctiontokenPrefixMatch
(item: string, input: string)
src/bento/components/bento-autocomplete/1.0/component/token-prefix-match.ts:43
↓ 1 callersFunctiontokenizeMethodArguments
* Tokenizes and returns method arguments, e.g. target.method(arguments). * @param {!ParserTokenizer} toks * @param {!Function} assertToken * @param
src/service/action-impl.js:1047
↓ 1 callersMethodtombstone_
* Empties out the current child's subtree. If no counterpart * element is found in the live DOM, do nothing. * Returns the number of actual tomb
extensions/amp-live-list/0.1/amp-live-list.js:525
↓ 1 callersFunctiontopCornerRect
( original, container, horizontalEdge, widthRatio, widthMin, marginRatio, marginMax )
extensions/amp-video-docking/0.1/math.js:120
↓ 1 callersMethodtopSentinelPositionChanged_
* Called when a position change is detected on the injected * top sentinel element * @param {?PositionInViewportEntryDef} position
extensions/amp-next-page/1.0/visibility-observer.js:93
↓ 1 callersFunctiontopWindowUrlOrDomain
* @param {!Window} win * @return {?string}
ads/google/a4a/utils.js:434
↓ 1 callersFunctiontopWindowUrlOrDomain
* @param {!Window} win * @param {string} referrer * @return {?string}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:612
↓ 1 callersMethodtop_
* @return {!Window} * @private
third_party/subscriptions-project/swg.js:18136
↓ 1 callersMethodtrackAmpElementToBless_
* @param {!AmpElement} element * @private
extensions/amp-story/1.0/media-pool.js:752
↓ 1 callersMethodtransferTo
* Transfer the element from the body into the transfer layer. * @param {!ElementDef} unusedFe * @param {number} unusedIndex * @param {!Elemen
src/service/fixed-layer.js:962
↓ 1 callersFunctiontransform
(fileLocation: string)
build-system/server/new-server/transforms/transform.ts:28
↓ 1 callersFunctiontransformAjvCode
* Transforms ajv's generated code to make it usable in a bundle: * - Creates strings for error messages instead of an object. * - Removes exports
build-system/compile/json-schema/index.js:172
↓ 1 callersFunctiontransformContents
* @param {string} filename * @param {string} contents * @param {string} hash * @param {object} babelOptions * @return {!Promise<!CacheMess
build-system/common/esbuild-babel.js:53
↓ 1 callersFunctiontransformCssString
* Transform a css string using postcss. * @param {string} contents the css text to transform * @param {!Object=} opt_filename the filename of the f
build-system/tasks/css/jsify-css.js:87
↓ 1 callersFunctiontransformProp
* @param {babel.NodePath<babel.types.ObjectProperty>} path * @return {?babel.Node}
build-system/babel-plugins/babel-plugin-jsx-style-object/index.js:79
↓ 1 callersFunctiontransformShadowCss
(shadowRoot, css)
src/shadow-embed.js:200
↓ 1 callersMethodtransitionFromAdShowing_
* Called when switching away from an ad.
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:435
↓ 1 callersMethodtransitionImgIn_
* Animates an image from its current location to its target location in the * lightbox. * @param {!Element} sourceElement * @return {!Promise
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:971
↓ 1 callersMethodtransitionImgOut_
* Animate the lightbox image back to its original position in the page.. * @param {!Element} sourceElement * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:981
↓ 1 callersMethodtransitionToAdShowing_
* We are switching to an ad. * @param {number} adPageIndex * @param {string} adPageId
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:452
↓ 1 callersMethodtriggerActiveEventForPage_
@private
extensions/amp-story/1.0/amp-story.js:1614
↓ 1 callersMethodtriggerAnalyticsEvent_
* @param {number?} prevIndex * @param {number} newIndex * @private
extensions/amp-carousel/0.2/amp-carousel.js:610
↓ 1 callersMethodtriggerAnalyticsEvent_
* @param {number} newSlideIndex * @private
extensions/amp-carousel/0.1/slidescroll.js:997
↓ 1 callersMethodtriggerEnter_
* Dispatches the `enter` event. * @private
extensions/amp-position-observer/0.1/amp-position-observer.js:131
↓ 1 callersMethodtriggerEntitlementsResponse
* @param {!Promise<!../api/entitlements.Entitlements>} promise
third_party/subscriptions-project/swg.js:9061
← previousnext →11,701–11,800 of 18,703, ranked by callers