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

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

Issue 263633002: Add use counters for a number of prefixed APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
« no previous file with comments | « Source/core/fileapi/File.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 PrefixedIDBIndexConstructor = 366, 376 PrefixedIDBIndexConstructor = 366,
377 PrefixedIDBKeyRangeConstructor = 367, 377 PrefixedIDBKeyRangeConstructor = 367,
378 PrefixedIDBObjectStoreConstructor = 368, 378 PrefixedIDBObjectStoreConstructor = 368,
379 PrefixedIDBRequestConstructor = 369, 379 PrefixedIDBRequestConstructor = 369,
380 PrefixedIDBTransactionConstructor = 370, 380 PrefixedIDBTransactionConstructor = 370,
381 NotificationPermission = 371, 381 NotificationPermission = 371,
382 RangeDetach = 372, 382 RangeDetach = 372,
383 DocumentImportNodeOptionalArgument = 373, 383 DocumentImportNodeOptionalArgument = 373,
384 HTMLTableElementVspace = 374, 384 HTMLTableElementVspace = 374,
385 HTMLTableElementHspace = 375, 385 HTMLTableElementHspace = 375,
386 PrefixedDocumentExitPointerLock = 376,
387 PrefixedDocumentPointerLockElement = 377,
388 PrefixedTouchRadiusX = 378,
389 PrefixedTouchRadiusY = 379,
390 PrefixedTouchRotationAngle = 380,
391 PrefixedTouchForce = 381,
392 PrefixedMouseEventMovementX = 382,
393 PrefixedMouseEventMovementY = 383,
394 PrefixedWheelEventDirectionInvertedFromDevice = 384,
395 PrefixedWheelEventInit = 385,
396 PrefixedFileRelativePath = 386,
386 // Add new features immediately above this line. Don't change assigned 397 // Add new features immediately above this line. Don't change assigned
387 // numbers of any item, and don't reuse removed slots. 398 // numbers of any item, and don't reuse removed slots.
388 NumberOfFeatures, // This enum value must be last. 399 NumberOfFeatures, // This enum value must be last.
389 }; 400 };
390 401
391 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 402 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
392 static void count(const Document&, Feature); 403 static void count(const Document&, Feature);
393 static void count(const ExecutionContext*, Feature); 404 static void count(const ExecutionContext*, Feature);
394 void count(CSSParserContext, CSSPropertyID); 405 void count(CSSParserContext, CSSPropertyID);
395 void count(Feature); 406 void count(Feature);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 449
439 void updateMeasurements(); 450 void updateMeasurements();
440 451
441 OwnPtr<BitVector> m_countBits; 452 OwnPtr<BitVector> m_countBits;
442 BitVector m_CSSFeatureBits; 453 BitVector m_CSSFeatureBits;
443 }; 454 };
444 455
445 } // namespace WebCore 456 } // namespace WebCore
446 457
447 #endif // UseCounter_h 458 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/File.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698