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

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

Issue 253353002: Remove window.performance.webkitGet* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 8 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/frame/UseCounter.h ('k') | Source/core/timing/Performance.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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 } 634 }
635 } 635 }
636 636
637 String UseCounter::deprecationMessage(Feature feature) 637 String UseCounter::deprecationMessage(Feature feature)
638 { 638 {
639 switch (feature) { 639 switch (feature) {
640 // Quota 640 // Quota
641 case PrefixedStorageInfo: 641 case PrefixedStorageInfo:
642 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator. webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; 642 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator. webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.";
643 643
644 // Performance
645 case PrefixedPerformanceTimeline:
646 return "'window.performance.webkitGet*' methods have been deprecated. Pl ease use the unprefixed 'performance.get*' methods instead.";
647
648 // HTML Media Capture 644 // HTML Media Capture
649 case CaptureAttributeAsEnum: 645 case CaptureAttributeAsEnum:
650 return "Using the 'capture' attribute as an enum is deprecated. Please u se it as a boolean and specify the media types that should be accepted in the 'a ccept' attribute."; 646 return "Using the 'capture' attribute as an enum is deprecated. Please u se it as a boolean and specify the media types that should be accepted in the 'a ccept' attribute.";
651 647
652 // Keyboard Event (DOM Level 3) 648 // Keyboard Event (DOM Level 3)
653 case KeyboardEventKeyLocation: 649 case KeyboardEventKeyLocation:
654 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE vent.location' instead."; 650 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE vent.location' instead.";
655 651
656 case ConsoleMarkTimeline: 652 case ConsoleMarkTimeline:
657 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 653 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 753 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
758 { 754 {
759 // FIXME: We may want to handle stylesheets that have multiple owners 755 // FIXME: We may want to handle stylesheets that have multiple owners
760 // http://crbug.com/242125 756 // http://crbug.com/242125
761 if (sheetContents && sheetContents->hasSingleOwnerNode()) 757 if (sheetContents && sheetContents->hasSingleOwnerNode())
762 return getFrom(sheetContents->singleOwnerDocument()); 758 return getFrom(sheetContents->singleOwnerDocument());
763 return 0; 759 return 0;
764 } 760 }
765 761
766 } // namespace WebCore 762 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/timing/Performance.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698