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

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

Issue 303473004: Remove the UseCounters for the capture attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/html/HTMLInputElement.h » ('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 // HTML Media Capture
645 case CaptureAttributeAsEnum:
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.";
647
648 // Keyboard Event (DOM Level 3) 644 // Keyboard Event (DOM Level 3)
649 case KeyboardEventKeyLocation: 645 case KeyboardEventKeyLocation:
650 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE vent.location' instead."; 646 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE vent.location' instead.";
651 647
652 case ConsoleMarkTimeline: 648 case ConsoleMarkTimeline:
653 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 649 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
654 650
655 case FileError: 651 case FileError:
656 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 652 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
657 653
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 768 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
773 { 769 {
774 // FIXME: We may want to handle stylesheets that have multiple owners 770 // FIXME: We may want to handle stylesheets that have multiple owners
775 // http://crbug.com/242125 771 // http://crbug.com/242125
776 if (sheetContents && sheetContents->hasSingleOwnerNode()) 772 if (sheetContents && sheetContents->hasSingleOwnerNode())
777 return getFrom(sheetContents->singleOwnerDocument()); 773 return getFrom(sheetContents->singleOwnerDocument());
778 return 0; 774 return 0;
779 } 775 }
780 776
781 } // namespace WebCore 777 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698