Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: Source/core/frame/UseCounterGenerated.in

Issue 729393002: Auto generate UseCounter::Feature enum from an .in file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/UseCounterGenerated.in
diff --git a/Source/core/frame/UseCounterGenerated.in b/Source/core/frame/UseCounterGenerated.in
new file mode 100644
index 0000000000000000000000000000000000000000..35f10f28308a1e57c325f64bb43b0818ec941cc1
--- /dev/null
+++ b/Source/core/frame/UseCounterGenerated.in
@@ -0,0 +1,491 @@
+// Features for UseCounter
+
+// Do not change assigned numbers of existing items: add new features
+// to the end of the list.
+PageDestruction value=0
philipj_slow 2014/11/24 10:44:59 Is this format required by the common code, or cou
+PrefixedIndexedDB value=3
+WorkerStart value=4
+SharedWorkerStart value=5
+UnprefixedIndexedDB value=9
+OpenWebDatabase value=10
+UnprefixedRequestAnimationFrame value=13
+PrefixedRequestAnimationFrame value=14
+ContentSecurityPolicy value=15
+ContentSecurityPolicyReportOnly value=16
+PrefixedTransitionEndEvent value=18
+UnprefixedTransitionEndEvent value=19
+PrefixedAndUnprefixedTransitionEndEvent value=20
+AutoFocusAttribute value=21
+DataListElement value=23
+FormAttribute value=24
+IncrementalAttribute value=25
+InputTypeColor value=26
+InputTypeDate value=27
+InputTypeDateTimeFallback value=29
+InputTypeDateTimeLocal value=30
+InputTypeEmail value=31
+InputTypeMonth value=32
+InputTypeNumber value=33
+InputTypeRange value=34
+InputTypeSearch value=35
+InputTypeTel value=36
+InputTypeTime value=37
+InputTypeURL value=38
+InputTypeWeek value=39
+InputTypeWeekFallback value=40
+ListAttribute value=41
+MaxAttribute value=42
+MinAttribute value=43
+PatternAttribute value=44
+PlaceholderAttribute value=45
+PrefixedDirectoryAttribute value=47
+RequiredAttribute value=49
+ResultsAttribute value=50
+StepAttribute value=51
+PageVisits value=52
+HTMLMarqueeElement value=53
+Reflection value=55
+PrefixedStorageInfo value=57
+XFrameOptions value=58
+XFrameOptionsSameOrigin value=59
+XFrameOptionsSameOriginWithBadAncestorChain value=60
+DeprecatedFlexboxWebContent value=61
+DeprecatedFlexboxChrome value=62
+DeprecatedFlexboxChromeExtension value=63
+UnprefixedPerformanceTimeline value=65
+UnprefixedUserTiming value=67
+WindowEvent value=69
+ContentSecurityPolicyWithBaseElement value=70
+PrefixedMediaAddKey value=71
+PrefixedMediaGenerateKeyRequest value=72
+DocumentClear value=74
+XMLDocument value=77
+XSLProcessingInstruction value=78
+XSLTProcessor value=79
+SVGSwitchElement value=80
+DocumentAll value=83
+FormElement value=84
+DemotedFormElement value=85
+SVGAnimationElement value=90
+KeyboardEventKeyLocation value=91
+LineClamp value=96
+SubFrameBeforeUnloadRegistered value=97
+SubFrameBeforeUnloadFired value=98
+ConsoleMarkTimeline value=102
+ElementGetAttributeNode value=107
+ElementSetAttributeNode value=108
+ElementRemoveAttributeNode value=109
+ElementGetAttributeNodeNS value=110
+DocumentCreateAttribute value=111
+DocumentCreateAttributeNS value=112
+DocumentCreateCDATASection value=113 // Removed from DOM4.
+DocumentInputEncoding value=114 // Removed from DOM4.
+DocumentXMLEncoding value=115 // Removed from DOM4.
+DocumentXMLStandalone value=116 // Removed from DOM4.
+DocumentXMLVersion value=117 // Removed from DOM4.
+NodeIsSameNode value=118 // Removed from DOM4.
+NodeNamespaceURI value=120 // Removed from DOM4.
+NodeLocalName value=122 // Removed from DOM4.
+NavigatorProductSub value=123
+NavigatorVendor value=124
+NavigatorVendorSub value=125
+FileError value=126
+DocumentCharset value=127 // Documented as IE extensions value=0, from KHTML days.
+PrefixedAnimationEndEvent value=128
+UnprefixedAnimationEndEvent value=129
+PrefixedAndUnprefixedAnimationEndEvent value=130
+PrefixedAnimationStartEvent value=131
+UnprefixedAnimationStartEvent value=132
+PrefixedAndUnprefixedAnimationStartEvent value=133
+PrefixedAnimationIterationEvent value=134
+UnprefixedAnimationIterationEvent value=135
+PrefixedAndUnprefixedAnimationIterationEvent value=136
+EventReturnValue value=137 // Legacy IE extension.
+SVGSVGElement value=138
+InsertAdjacentText value=140
+InsertAdjacentElement value=141
+HasAttributes value=142
+DOMSubtreeModifiedEvent value=143
+DOMNodeInsertedEvent value=144
+DOMNodeRemovedEvent value=145
+DOMNodeRemovedFromDocumentEvent value=146
+DOMNodeInsertedIntoDocumentEvent value=147
+DOMCharacterDataModifiedEvent value=148
+DocumentAllLegacyCall value=150
+HTMLEmbedElementLegacyCall value=152
+HTMLObjectElementLegacyCall value=153
+GetMatchedCSSRules value=155
+AttributeOwnerElement value=160
+AttributeSpecified value=162
+PrefixedAudioDecodedByteCount value=164
+PrefixedVideoDecodedByteCount value=165
+PrefixedVideoSupportsFullscreen value=166
+PrefixedVideoDisplayingFullscreen value=167
+PrefixedVideoEnterFullscreen value=168
+PrefixedVideoExitFullscreen value=169
+PrefixedVideoEnterFullScreen value=170
+PrefixedVideoExitFullScreen value=171
+PrefixedVideoDecodedFrameCount value=172
+PrefixedVideoDroppedFrameCount value=173
+PrefixedElementRequestFullscreen value=176
+PrefixedElementRequestFullScreen value=177
+BarPropLocationbar value=178
+BarPropMenubar value=179
+BarPropPersonalbar value=180
+BarPropScrollbars value=181
+BarPropStatusbar value=182
+BarPropToolbar value=183
+InputTypeEmailMultiple value=184
+InputTypeEmailMaxLength value=185
+InputTypeEmailMultipleMaxLength value=186
+InputTypeText value=190
+InputTypeTextMaxLength value=191
+InputTypePassword value=192
+InputTypePasswordMaxLength value=193
+ShowModalDialog value=195
+PrefixedPageVisibility value=196
+CSSStyleSheetInsertRuleOptionalArg value=198 // Inconsistent with the specification and other browsers.
+DocumentBeforeUnloadRegistered value=200
+DocumentBeforeUnloadFired value=201
+DocumentUnloadRegistered value=202
+DocumentUnloadFired value=203
+SVGLocatableNearestViewportElement value=204
+SVGLocatableFarthestViewportElement value=205
+OverflowChangedEvent value=208
+SVGPointMatrixTransform value=209
+DOMFocusInOutEvent value=211
+FileGetLastModifiedDate value=212
+HTMLElementInnerText value=213
+HTMLElementOuterText value=214
+ReplaceDocumentViaJavaScriptURL value=215
+ElementSetAttributeNodeNS value=216 // Removed from DOM4.
+ElementPrefixedMatchesSelector value=217
+CSSStyleSheetRules value=219
+CSSStyleSheetAddRule value=220
+CSSStyleSheetRemoveRule value=221
+// The above items are available in M33 branch.
+
+InitMessageEvent value=222
+PrefixedMediaCancelKeyRequest value=229
+DOMImplementationHasFeature value=230
+DOMImplementationHasFeatureReturnFalse value=231
+CanPlayTypeKeySystem value=232
+PrefixedDevicePixelRatioMediaFeature value=233
+PrefixedMaxDevicePixelRatioMediaFeature value=234
+PrefixedMinDevicePixelRatioMediaFeature value=235
+PrefixedTransform3dMediaFeature value=237
+PrefixedStorageQuota value=240
+ResetReferrerPolicy value=243
+CaseInsensitiveAttrSelectorMatch value=244 // Case-insensitivity dropped from specification.
+FormNameAccessForImageElement value=246
+FormNameAccessForPastNamesMap value=247
+FormAssociationByParser value=248
+SVGSVGElementInDocument value=250
+SVGDocumentRootElement value=251
+MediaErrorEncrypted value=253
+EventSourceURL value=254
+WebSocketURL value=255
+WorkerSubjectToCSP value=257
+WorkerAllowedByChildBlockedByScript value=258
+DeprecatedWebKitGradient value=260
+DeprecatedWebKitLinearGradient value=261
+DeprecatedWebKitRepeatingLinearGradient value=262
+DeprecatedWebKitRadialGradient value=263
+DeprecatedWebKitRepeatingRadialGradient value=264
+PrefixedImageSmoothingEnabled value=267
+UnprefixedImageSmoothingEnabled value=268
+// The above items are available in M34 branch.
+
+TextAutosizing value=274
+HTMLAnchorElementPingAttribute value=276
+InsertAdjacentHTML value=278
+SVGClassName value=279
+HTMLAppletElement value=280
+HTMLMediaElementSeekToFragmentStart value=281
+HTMLMediaElementPauseAtFragmentEnd value=282
+PrefixedWindowURL value=283
+PrefixedWorkerURL value=284 // This didn't work because of crbug.com/376039. Available since M37.
+WindowOrientation value=285
+DOMStringListContains value=286
+DocumentCaptureEvents value=287
+DocumentReleaseEvents value=288
+WindowCaptureEvents value=289
+WindowReleaseEvents value=290
+PrefixedGamepad value=291
+ElementAnimateKeyframeListEffectObjectTiming value=292
+ElementAnimateKeyframeListEffectDoubleTiming value=293
+ElementAnimateKeyframeListEffectNoTiming value=294
+DocumentXPathCreateExpression value=295
+DocumentXPathCreateNSResolver value=296
+DocumentXPathEvaluate value=297
+AttrGetValue value=298
+AttrSetValue value=299
+AnimationConstructorKeyframeListEffectObjectTiming value=300
+AnimationConstructorKeyframeListEffectDoubleTiming value=301
+AnimationConstructorKeyframeListEffectNoTiming value=302
+AttrSetValueWithElement value=303
+PrefixedCancelAnimationFrame value=304
+PrefixedCancelRequestAnimationFrame value=305
+NamedNodeMapGetNamedItem value=306
+NamedNodeMapSetNamedItem value=307
+NamedNodeMapRemoveNamedItem value=308
+NamedNodeMapItem value=309
+NamedNodeMapGetNamedItemNS value=310
+NamedNodeMapSetNamedItemNS value=311
+NamedNodeMapRemoveNamedItemNS value=312
+XHRProgressEventPosition value=316
+XHRProgressEventTotalSize value=317
+PrefixedDocumentIsFullscreen value=318
+PrefixedDocumentCurrentFullScreenElement value=320
+PrefixedDocumentCancelFullScreen value=321
+PrefixedDocumentFullscreenEnabled value=322
+PrefixedDocumentFullscreenElement value=323
+PrefixedDocumentExitFullscreen value=324
+// The above items are available in M35 branch.
+
+SVGForeignObjectElement value=325
+SelectionSetPosition value=327
+AnimationPlayerFinishEvent value=328
+SVGSVGElementInXMLDocument value=329
+PrefixedPerformanceClearResourceTimings value=341
+PrefixedPerformanceSetResourceTimingBufferSize value=342
+EventSrcElement value=343
+EventCancelBubble value=344
+EventPath value=345
+EventClipboardData value=346
+NodeIteratorDetach value=347
+AttrNodeValue value=348
+AttrTextContent value=349
+EventGetReturnValueTrue value=350
+EventGetReturnValueFalse value=351
+EventSetReturnValueTrue value=352
+EventSetReturnValueFalse value=353
+WindowOffscreenBuffering value=356
+WindowDefaultStatus value=357
+WindowDefaultstatus value=358
+PrefixedTransitionEventConstructor value=361
+PrefixedMutationObserverConstructor value=362
+PrefixedIDBCursorConstructor value=363
+PrefixedIDBDatabaseConstructor value=364
+PrefixedIDBFactoryConstructor value=365
+PrefixedIDBIndexConstructor value=366
+PrefixedIDBKeyRangeConstructor value=367
+PrefixedIDBObjectStoreConstructor value=368
+PrefixedIDBRequestConstructor value=369
+PrefixedIDBTransactionConstructor value=370
+NotificationPermission value=371
+RangeDetach value=372
+HTMLTableElementVspace value=374
+HTMLTableElementHspace value=375
+PrefixedTouchRadiusX value=378
+PrefixedTouchRadiusY value=379
+PrefixedTouchRotationAngle value=380
+PrefixedTouchForce value=381
+PrefixedMouseEventMovementX value=382
+PrefixedMouseEventMovementY value=383
+PrefixedFileRelativePath value=386
+DocumentCaretRangeFromPoint value=387
+DocumentGetCSSCanvasContext value=388
+ElementScrollIntoViewIfNeeded value=389
+RangeCompareNode value=392
+RangeExpand value=393
+HTMLImageElementX value=396
+HTMLImageElementY value=397
+SelectionBaseNode value=400
+SelectionBaseOffset value=401
+SelectionExtentNode value=402
+SelectionExtentOffset value=403
+SelectionType value=404
+SelectionModify value=405
+SelectionSetBaseAndExtent value=406
+SelectionEmpty value=407
+VTTCue value=409
+VTTCueRender value=410
+VTTCueRenderVertical value=411
+VTTCueRenderSnapToLinesFalse value=412
+VTTCueRenderLineNotAuto value=413
+VTTCueRenderPositionNot50 value=414
+VTTCueRenderSizeNot100 value=415
+VTTCueRenderAlignNotMiddle value=416
+// The above items are available in M36 branch.
+
+ElementRequestPointerLock value=417
+VTTCueRenderRtl value=418
+PostMessageFromSecureToInsecure value=419
+PostMessageFromInsecureToSecure value=420
+DocumentExitPointerLock value=421
+DocumentPointerLockElement value=422
+PrefixedCursorZoomIn value=424
+PrefixedCursorZoomOut value=425
+CSSCharsetRuleEncoding value=426
+DocumentSetCharset value=427
+DocumentDefaultCharset value=428
+TextEncoderConstructor value=429
+TextEncoderEncode value=430
+TextDecoderConstructor value=431
+TextDecoderDecode value=432
+FocusInOutEvent value=433
+MouseEventMovementX value=434
+MouseEventMovementY value=435
+DocumentFonts value=440
+MixedContentFormsSubmitted value=441
+FormsSubmitted value=442
+TextInputEventOnInput value=443
+TextInputEventOnTextArea value=444
+TextInputEventOnContentEditable value=445
+TextInputEventOnNotNode value=446
+WebkitBeforeTextInsertedOnInput value=447
+WebkitBeforeTextInsertedOnTextArea value=448
+WebkitBeforeTextInsertedOnContentEditable value=449
+WebkitBeforeTextInsertedOnNotNode value=450
+WebkitEditableContentChangedOnInput value=451
+WebkitEditableContentChangedOnTextArea value=452
+WebkitEditableContentChangedOnContentEditable value=453
+WebkitEditableContentChangedOnNotNode value=454
+HTMLImports value=455
+ElementCreateShadowRoot value=456
+DocumentRegisterElement value=457
+EditingAppleInterchangeNewline value=458
+EditingAppleConvertedSpace value=459
+EditingApplePasteAsQuotation value=460
+EditingAppleStyleSpanClass value=461
+EditingAppleTabSpanClass value=462
+HTMLImportsAsyncAttribute value=463
+FontFaceSetReady value=464
+XMLHttpRequestSynchronous value=465
+CSSSelectorPseudoUnresolved value=466
+CSSSelectorPseudoShadow value=467
+CSSSelectorPseudoContent value=468
+CSSSelectorPseudoHost value=469
+CSSSelectorPseudoHostContext value=470
+CSSDeepCombinator value=471
+SyncXHRWithCredentials value=472
+// The above items are available in M37 branch.
+
+UseAsm value=473
+DOMWindowOpen value=475
+DOMWindowOpenFeatures value=476
+MediaStreamTrackGetSources value=478
+AspectRatioFlexItem value=479
+DetailsElement value=480
+DialogElement value=481
+MapElement value=482
+MeterElement value=483
+ProgressElement value=484
+VideoFullscreenAllowedExemption value=485
+PrefixedHTMLElementDropzone value=490
+WheelEventWheelDeltaX value=491
+WheelEventWheelDeltaY value=492
+WheelEventWheelDelta value=493
+SendBeacon value=494
+SendBeaconQuotaExceeded value=495
+SVGSMILElementInDocument value=501
+MouseEventOffsetX value=502
+MouseEventOffsetY value=503
+MouseEventX value=504
+MouseEventY value=505
+MouseEventFromElement value=506
+MouseEventToElement value=507
+RequestFileSystem value=508
+RequestFileSystemWorker value=509
+RequestFileSystemSyncWorker value=510
+UIEventLayerX value=511
+UIEventLayerY value=512
+UIEventPageX value=513
+UIEventPageY value=514
+DevToolsConsoleTimeline value=517
+DevToolsConsoleProfile value=518
+SVGStyleElementTitle value=519
+PictureSourceSrc value=520
+// The above items are available in M38 branch.
+
+Picture value=521
+Sizes value=522
+SrcsetXDescriptor value=523
+SrcsetWDescriptor value=524
+SelectionContainsNode value=525
+MediaStreamEnded value=526
+MixedContentPrivateIPInPublicWebsitePassive value=527
+MixedContentPrivateIPInPublicWebsiteActive value=528
+XMLExternalResourceLoad value=529
+MixedContentPrivateHostnameInPublicHostname value=530
+LegacyProtocolEmbeddedAsSubresource value=531
+RequestedSubresourceWithEmbeddedCredentials value=532
+NotificationCreated value=533
+NotificationClosed value=534
+NotificationPermissionRequested value=535
+MediaStreamLabel value=536
+MediaStreamStop value=537
+ConsoleTimeline value=538
+ConsoleTimelineEnd value=539
+SRIElementWithMatchingIntegrityAttribute value=540
+SRIElementWithNonMatchingIntegrityAttribute value=541
+SRIElementWithUnparsableIntegrityAttribute value=542
+SRIElementWithIntegrityAttributeAndInsecureOrigin value=543
+SRIElementWithIntegrityAttributeAndInsecureResource value=544
+AnimationPlayerGetStartTime value=545
+AnimationPlayerSetStartTime value=546
+AnimationPlayerGetCurrentTime value=547
+AnimationPlayerSetCurrentTime value=548
+AnimationPlayerGetPlaybackRate value=549
+AnimationPlayerSetPlaybackRate value=550
+AnimationPlayerGetPlayState value=551
+AnimationPlayerFinish value=552
+AnimationPlayerPlay value=553
+AnimationPlayerPause value=554
+AnimationPlayerReverse value=555
+// The above items are available in M39 branch.
+
+BreakIterator value=556
+ScreenOrientationAngle value=557
+ScreenOrientationType value=558
+ScreenOrientationLock value=559
+ScreenOrientationUnlock value=560
+GeolocationSecureOrigin value=561
+GeolocationInsecureOrigin value=562
+NotificationSecureOrigin value=563
+NotificationInsecureOrigin value=564
+NotificationShowEvent value=565
+CSSXGetComputedStyleQueries value=566
+SVG1DOM value=567
+SVGPathSegDOM value=568
+SVGTransformListConsolidate value=569
+SVGAnimatedTransformListBaseVal value=570
+QuotedAnimationName value=571
+QuotedKeyframesRule value=572
+SrcsetDroppedCandidate value=573
+WindowPostMessage value=574
+WindowPostMessageWithLegacyTargetOriginArgument value=575
+RenderRuby value=576
+CanvasRenderingContext2DCompositeOperationDarker value=577
+ScriptElementWithInvalidTypeHasSrc value=578
+TimelineStart value=579
+ElementBaseURIFromXMLBase value=580
+XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload value=581
+CSSSelectorPseudoScrollbar value=582
+CSSSelectorPseudoScrollbarButton value=583
+CSSSelectorPseudoScrollbarThumb value=584
+CSSSelectorPseudoScrollbarTrack value=585
+CSSSelectorPseudoScrollbarTrackPiece value=586
+LangAttribute value=587
+LangAttributeOnHTML value=588
+LangAttributeOnBody value=589
+LangAttributeDoesNotMatchToUILocale value=590
+InputTypeSubmit value=591
+InputTypeSubmitWithValue value=592
+// The above items are available in M40 branch.
+
+SetReferrerPolicy value=593
+DOMImplementationHasFeatureReturnFalseInternal value=594
+MouseEventWhich value=595
+UIEventCharCode value=596
+UIEventKeyCode value=597
+UIEventWhich value=598
+TextWholeText value=599
+AttrChildAccess value=600
+AttrChildChange value=601
+
+// Add new features immediately above this line. Don't change assigned
+// numbers of any item, and don't reuse removed slots.
+// Also, run update_use_counter_feature_enum.py in chromium/src/tools/metrics/histograms/
+// to update the UMA mapping.
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698