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

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

Issue 2614913005: Add UseCounters for navigator.vibrate usage compared to site engagement. (Closed)
Patch Set: Address comment Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp » ('j') | 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 V8IIRFilterNode_Constructor = 1715, 1388 V8IIRFilterNode_Constructor = 1715,
1389 V8MediaElementAudioSourceNode_Constructor = 1716, 1389 V8MediaElementAudioSourceNode_Constructor = 1716,
1390 V8MediaStreamAudioSourceNode_Constructor = 1717, 1390 V8MediaStreamAudioSourceNode_Constructor = 1717,
1391 V8OfflineAudioCompletionEvent_Constructor = 1718, 1391 V8OfflineAudioCompletionEvent_Constructor = 1718,
1392 V8OscillatorNode_Constructor = 1719, 1392 V8OscillatorNode_Constructor = 1719,
1393 V8PannerNode_Constructor = 1720, 1393 V8PannerNode_Constructor = 1720,
1394 V8PeriodicWave_Constructor = 1721, 1394 V8PeriodicWave_Constructor = 1721,
1395 V8StereoPannerNode_Constructor = 1722, 1395 V8StereoPannerNode_Constructor = 1722,
1396 V8WaveShaperNode_Constructor = 1723, 1396 V8WaveShaperNode_Constructor = 1723,
1397 V8Headers_GetAll_Method = 1724, 1397 V8Headers_GetAll_Method = 1724,
1398 NavigatorVibrateEngagementNone = 1725,
1399 NavigatorVibrateEngagementMinimal = 1726,
1400 NavigatorVibrateEngagementLow = 1727,
1401 NavigatorVibrateEngagementMedium = 1728,
1402 NavigatorVibrateEngagementHigh = 1729,
1403 NavigatorVibrateEngagementMax = 1730,
1398 1404
1399 // Add new features immediately above this line. Don't change assigned 1405 // Add new features immediately above this line. Don't change assigned
1400 // numbers of any item, and don't reuse removed slots. 1406 // numbers of any item, and don't reuse removed slots.
1401 // Also, run update_use_counter_feature_enum.py in 1407 // Also, run update_use_counter_feature_enum.py in
1402 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1408 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1403 NumberOfFeatures, // This enum value must be last. 1409 NumberOfFeatures, // This enum value must be last.
1404 }; 1410 };
1405 1411
1406 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1412 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1407 static void count(const Frame*, Feature); 1413 static void count(const Frame*, Feature);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 // Tracks what features/properties need to be reported to the legacy 1482 // Tracks what features/properties need to be reported to the legacy
1477 // histograms. 1483 // histograms.
1478 BitVector m_featureBits; 1484 BitVector m_featureBits;
1479 BitVector m_CSSBits; 1485 BitVector m_CSSBits;
1480 } m_legacyCounter; 1486 } m_legacyCounter;
1481 }; 1487 };
1482 1488
1483 } // namespace blink 1489 } // namespace blink
1484 1490
1485 #endif // UseCounter_h 1491 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698