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

Side by Side Diff: Source/core/frame/UseCounter.h

Issue 268663005: Add use counters for a number of extensions and non-standard APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: measure HTMLPreElementWrap internally also Created 6 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 PrefixedDocumentPointerLockElement = 377, 387 PrefixedDocumentPointerLockElement = 377,
388 PrefixedTouchRadiusX = 378, 388 PrefixedTouchRadiusX = 378,
389 PrefixedTouchRadiusY = 379, 389 PrefixedTouchRadiusY = 379,
390 PrefixedTouchRotationAngle = 380, 390 PrefixedTouchRotationAngle = 380,
391 PrefixedTouchForce = 381, 391 PrefixedTouchForce = 381,
392 PrefixedMouseEventMovementX = 382, 392 PrefixedMouseEventMovementX = 382,
393 PrefixedMouseEventMovementY = 383, 393 PrefixedMouseEventMovementY = 383,
394 PrefixedWheelEventDirectionInvertedFromDevice = 384, 394 PrefixedWheelEventDirectionInvertedFromDevice = 384,
395 PrefixedWheelEventInit = 385, 395 PrefixedWheelEventInit = 385,
396 PrefixedFileRelativePath = 386, 396 PrefixedFileRelativePath = 386,
397 DocumentCaretRangeFromPoint = 387,
398 DocumentGetCSSCanvasContext = 388,
399 ElementScrollIntoViewIfNeeded = 389,
400 ElementScrollByLines = 390,
401 ElementScrollByPages = 391,
402 RangeCompareNode = 392,
403 RangeExpand = 393,
404 HTMLFrameElementWidth = 394,
405 HTMLFrameElementHeight = 395,
406 HTMLImageElementX = 396,
407 HTMLImageElementY = 397,
408 HTMLOptionsCollectionRemoveElement = 398,
409 HTMLPreElementWrap = 399,
410 SelectionBaseNode = 400,
411 SelectionBaseOffset = 401,
412 SelectionExtentNode = 402,
413 SelectionExtentOffset = 403,
414 SelectionType = 404,
415 SelectionModify = 405,
416 SelectionSetBaseAndExtent = 406,
417 SelectionEmpty = 407,
418 SVGFEMorphologyElementSetRadius = 408,
397 // Add new features immediately above this line. Don't change assigned 419 // Add new features immediately above this line. Don't change assigned
398 // numbers of any item, and don't reuse removed slots. 420 // numbers of any item, and don't reuse removed slots.
399 NumberOfFeatures, // This enum value must be last. 421 NumberOfFeatures, // This enum value must be last.
400 }; 422 };
401 423
402 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 424 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
403 static void count(const Document&, Feature); 425 static void count(const Document&, Feature);
404 static void count(const ExecutionContext*, Feature); 426 static void count(const ExecutionContext*, Feature);
405 void count(CSSParserContext, CSSPropertyID); 427 void count(CSSParserContext, CSSPropertyID);
406 void count(Feature); 428 void count(Feature);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 471
450 void updateMeasurements(); 472 void updateMeasurements();
451 473
452 OwnPtr<BitVector> m_countBits; 474 OwnPtr<BitVector> m_countBits;
453 BitVector m_CSSFeatureBits; 475 BitVector m_CSSFeatureBits;
454 }; 476 };
455 477
456 } // namespace WebCore 478 } // namespace WebCore
457 479
458 #endif // UseCounter_h 480 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698