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

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

Issue 2670823004: ShapeDetection: add UseCounter for TextDetector.detect() calls (Closed)
Patch Set: Created 3 years, 10 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/shapedetection/TextDetector.idl » ('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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 V8MediaSession_PlaybackState_AttributeSetter = 1791, 1444 V8MediaSession_PlaybackState_AttributeSetter = 1791,
1445 V8MediaSession_SetActionHandler_Method = 1792, 1445 V8MediaSession_SetActionHandler_Method = 1792,
1446 WebNFCPush = 1793, 1446 WebNFCPush = 1793,
1447 WebNFCCancelPush = 1794, 1447 WebNFCCancelPush = 1794,
1448 WebNFCWatch = 1795, 1448 WebNFCWatch = 1795,
1449 WebNFCCancelWatch = 1796, 1449 WebNFCCancelWatch = 1796,
1450 AudioParamCancelAndHoldAtTime = 1797, 1450 AudioParamCancelAndHoldAtTime = 1797,
1451 CSSValueUserModifyReadOnly = 1798, 1451 CSSValueUserModifyReadOnly = 1798,
1452 CSSValueUserModifyReadWrite = 1799, 1452 CSSValueUserModifyReadWrite = 1799,
1453 CSSValueUserModifyReadWritePlaintextOnly = 1800, 1453 CSSValueUserModifyReadWritePlaintextOnly = 1800,
1454 V8TextDetector_Detect_Method = 1801,
1454 1455
1455 // Add new features immediately above this line. Don't change assigned 1456 // Add new features immediately above this line. Don't change assigned
1456 // numbers of any item, and don't reuse removed slots. 1457 // numbers of any item, and don't reuse removed slots.
1457 // Also, run update_use_counter_feature_enum.py in 1458 // Also, run update_use_counter_feature_enum.py in
1458 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1459 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1459 NumberOfFeatures, // This enum value must be last. 1460 NumberOfFeatures, // This enum value must be last.
1460 }; 1461 };
1461 1462
1462 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1463 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1463 static void count(const Frame*, Feature); 1464 static void count(const Frame*, Feature);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 // Tracks what features/properties need to be reported to the legacy 1533 // Tracks what features/properties need to be reported to the legacy
1533 // histograms. 1534 // histograms.
1534 BitVector m_featureBits; 1535 BitVector m_featureBits;
1535 BitVector m_CSSBits; 1536 BitVector m_CSSBits;
1536 } m_legacyCounter; 1537 } m_legacyCounter;
1537 }; 1538 };
1538 1539
1539 } // namespace blink 1540 } // namespace blink
1540 1541
1541 #endif // UseCounter_h 1542 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/TextDetector.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698