#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
+#include <v8.h>
namespace blink {
SubFrameBeforeUnloadFired = 98,
TextReplaceWholeText = 100,
ConsoleMarkTimeline = 102,
- CSSPseudoElementUserAgentCustomPseudo = 103,
ElementGetAttributeNode = 107, // Removed from DOM4.
ElementSetAttributeNode = 108, // Removed from DOM4.
ElementRemoveAttributeNode = 109, // Removed from DOM4.
DocumentUnloadFired = 203,
SVGLocatableNearestViewportElement = 204,
SVGLocatableFarthestViewportElement = 205,
- HTMLHeadElementProfile = 207,
OverflowChangedEvent = 208,
SVGPointMatrixTransform = 209,
DOMFocusInOutEvent = 211,
UIEventPageX = 513,
UIEventPageY = 514,
BgPropertiesFixed = 515,
- HTMLImageElementComposite = 516,
DevToolsConsoleTimeline = 517,
DevToolsConsoleProfile = 518,
SVGStyleElementTitle = 519,
AnimationPlayerPlay = 553,
AnimationPlayerPause = 554,
AnimationPlayerReverse = 555,
+ // The above items are available in M39 branch.
+
+ BreakIterator = 556,
+ ScreenOrientationAngle = 557,
+ ScreenOrientationType = 558,
+ ScreenOrientationLock = 559,
+ ScreenOrientationUnlock = 560,
+ GeolocationSecureOrigin = 561,
+ GeolocationInsecureOrigin = 562,
+ NotificationSecureOrigin = 563,
+ NotificationInsecureOrigin = 564,
+ NotificationShowEvent = 565,
+ CSSXGetComputedStyleQueries = 566,
+ SVG1DOM = 567,
+ SVGPathSegDOM = 568,
+ SVGTransformListConsolidate = 569,
+ SVGAnimatedTransformListBaseVal = 570,
+ QuotedAnimationName = 571,
+ QuotedKeyframesRule = 572,
+ SrcsetDroppedCandidate = 573,
+ WindowPostMessage = 574,
+ WindowPostMessageWithLegacyTargetOriginArgument = 575,
+ RenderRuby = 576,
+ CanvasRenderingContext2DCompositeOperationDarker = 577,
+ ScriptElementWithInvalidTypeHasSrc = 578,
+ TimelineStart = 579,
+ ElementBaseURIFromXMLBase = 580,
+ XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload = 581,
+ CSSSelectorPseudoScrollbar = 582,
+ CSSSelectorPseudoScrollbarButton = 583,
+ CSSSelectorPseudoScrollbarThumb = 584,
+ CSSSelectorPseudoScrollbarTrack = 585,
+ CSSSelectorPseudoScrollbarTrackPiece = 586,
+ LangAttribute = 587,
+ LangAttributeOnHTML = 588,
+ LangAttributeOnBody = 589,
+ LangAttributeDoesNotMatchToUILocale = 590,
+ InputTypeSubmit = 591,
+ InputTypeSubmitWithValue = 592,
+
// 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/
// This doesn't count for ExecutionContexts for shared workers and service
// workers.
static void count(const ExecutionContext*, Feature);
+ // Use countIfNotPrivateScript() instead of count() if you don't want
+ // to count metrics in private scripts. You should use
+ // countIfNotPrivateScript() in a binding layer.
+ static void countIfNotPrivateScript(v8::Isolate*, const Document&, Feature);
+ static void countIfNotPrivateScript(v8::Isolate*, const ExecutionContext*, Feature);
+
void count(CSSParserContext, CSSPropertyID);
void count(Feature);
static void countDeprecation(const LocalDOMWindow*, Feature);
static void countDeprecation(ExecutionContext*, Feature);
static void countDeprecation(const Document&, Feature);
+ // Use countDeprecationIfNotPrivateScript() instead of countDeprecation()
+ // if you don't want to count metrics in private scripts. You should use
+ // countDeprecationIfNotPrivateScript() in a binding layer.
+ static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContext*, Feature);
String deprecationMessage(Feature);
void didCommitLoad();