OLD | NEW |
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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 JavascriptExhaustedMemory = 277, | 296 JavascriptExhaustedMemory = 277, |
297 InsertAdjacentHTML = 278, | 297 InsertAdjacentHTML = 278, |
298 SVGClassName = 279, | 298 SVGClassName = 279, |
299 HTMLAppletElement = 280, | 299 HTMLAppletElement = 280, |
300 HTMLMediaElementSeekToFragmentStart = 281, | 300 HTMLMediaElementSeekToFragmentStart = 281, |
301 HTMLMediaElementPauseAtFragmentEnd = 282, | 301 HTMLMediaElementPauseAtFragmentEnd = 282, |
302 PrefixedWindowURL = 283, | 302 PrefixedWindowURL = 283, |
303 PrefixedWorkerURL = 284, | 303 PrefixedWorkerURL = 284, |
304 WindowOrientation = 285, | 304 WindowOrientation = 285, |
305 DOMStringListContains = 286, | 305 DOMStringListContains = 286, |
| 306 PrefixedGamepad = 287, |
306 // Add new features immediately above this line. Don't change assigned | 307 // Add new features immediately above this line. Don't change assigned |
307 // numbers of any item, and don't reuse removed slots. | 308 // numbers of any item, and don't reuse removed slots. |
308 NumberOfFeatures, // This enum value must be last. | 309 NumberOfFeatures, // This enum value must be last. |
309 }; | 310 }; |
310 | 311 |
311 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 312 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
312 static void count(const Document&, Feature); | 313 static void count(const Document&, Feature); |
313 static void count(const ExecutionContext*, Feature); | 314 static void count(const ExecutionContext*, Feature); |
314 void count(CSSParserContext, CSSPropertyID); | 315 void count(CSSParserContext, CSSPropertyID); |
315 void count(Feature); | 316 void count(Feature); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 352 |
352 void updateMeasurements(); | 353 void updateMeasurements(); |
353 | 354 |
354 OwnPtr<BitVector> m_countBits; | 355 OwnPtr<BitVector> m_countBits; |
355 BitVector m_CSSFeatureBits; | 356 BitVector m_CSSFeatureBits; |
356 }; | 357 }; |
357 | 358 |
358 } // namespace WebCore | 359 } // namespace WebCore |
359 | 360 |
360 #endif // UseCounter_h | 361 #endif // UseCounter_h |
OLD | NEW |