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

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

Issue 2610813006: Add UseCounters for alert(), confirm() and prompt() usage against site engagement. (Closed)
Patch Set: 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
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 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 1398 NavigatorVibrateEngagementNone = 1725,
1399 NavigatorVibrateEngagementMinimal = 1726, 1399 NavigatorVibrateEngagementMinimal = 1726,
1400 NavigatorVibrateEngagementLow = 1727, 1400 NavigatorVibrateEngagementLow = 1727,
1401 NavigatorVibrateEngagementMedium = 1728, 1401 NavigatorVibrateEngagementMedium = 1728,
1402 NavigatorVibrateEngagementHigh = 1729, 1402 NavigatorVibrateEngagementHigh = 1729,
1403 NavigatorVibrateEngagementMax = 1730, 1403 NavigatorVibrateEngagementMax = 1730,
1404 AlertEngagementNone = 1731,
1405 AlertEngagementMinimal = 1732,
1406 AlertEngagementLow = 1733,
1407 AlertEngagementMedium = 1734,
1408 AlertEngagementHigh = 1735,
1409 AlertEngagementMax = 1736,
1410 ConfirmEngagementNone = 1737,
1411 ConfirmEngagementMinimal = 1738,
1412 ConfirmEngagementLow = 1739,
1413 ConfirmEngagementMedium = 1740,
1414 ConfirmEngagementHigh = 1741,
1415 ConfirmEngagementMax = 1742,
1416 PromptEngagementNone = 1743,
1417 PromptEngagementMinimal = 1744,
1418 PromptEngagementLow = 1745,
1419 PromptEngagementMedium = 1746,
1420 PromptEngagementHigh = 1747,
1421 PromptEngagementMax = 1748,
1404 1422
1405 // Add new features immediately above this line. Don't change assigned 1423 // Add new features immediately above this line. Don't change assigned
1406 // numbers of any item, and don't reuse removed slots. 1424 // numbers of any item, and don't reuse removed slots.
1407 // Also, run update_use_counter_feature_enum.py in 1425 // Also, run update_use_counter_feature_enum.py in
1408 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1426 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1409 NumberOfFeatures, // This enum value must be last. 1427 NumberOfFeatures, // This enum value must be last.
1410 }; 1428 };
1411 1429
1412 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1430 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1413 static void count(const Frame*, Feature); 1431 static void count(const Frame*, Feature);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 // Tracks what features/properties need to be reported to the legacy 1500 // Tracks what features/properties need to be reported to the legacy
1483 // histograms. 1501 // histograms.
1484 BitVector m_featureBits; 1502 BitVector m_featureBits;
1485 BitVector m_CSSBits; 1503 BitVector m_CSSBits;
1486 } m_legacyCounter; 1504 } m_legacyCounter;
1487 }; 1505 };
1488 1506
1489 } // namespace blink 1507 } // namespace blink
1490 1508
1491 #endif // UseCounter_h 1509 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698