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

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

Issue 132903015: Deprecate MediaError.MEDIA_ERR_ENCRYPTED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/html/MediaError.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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 696
697 case PrefixedVideoExitFullScreen: 697 case PrefixedVideoExitFullScreen:
698 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; 698 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead.";
699 699
700 case PrefixedMediaSourceOpen: 700 case PrefixedMediaSourceOpen:
701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead."; 701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead.";
702 702
703 case DOMImplementationCreateCSSStyleSheet: 703 case DOMImplementationCreateCSSStyleSheet:
704 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; 704 return "'DOMImplementation.createCSSStyleSheet()' is deprecated.";
705 705
706 case MediaErrorEncrypted:
707 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used.";
708
706 // Features that aren't deprecated don't have a deprecation message. 709 // Features that aren't deprecated don't have a deprecation message.
707 default: 710 default:
708 return String(); 711 return String();
709 } 712 }
710 } 713 }
711 714
712 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 715 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
713 { 716 {
714 ASSERT(feature >= firstCSSProperty); 717 ASSERT(feature >= firstCSSProperty);
715 ASSERT(feature <= lastCSSProperty); 718 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
744 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 747 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
745 { 748 {
746 // FIXME: We may want to handle stylesheets that have multiple owners 749 // FIXME: We may want to handle stylesheets that have multiple owners
747 // http://crbug.com/242125 750 // http://crbug.com/242125
748 if (sheetContents && sheetContents->hasSingleOwnerNode()) 751 if (sheetContents && sheetContents->hasSingleOwnerNode())
749 return getFrom(sheetContents->singleOwnerDocument()); 752 return getFrom(sheetContents->singleOwnerDocument());
750 return 0; 753 return 0;
751 } 754 }
752 755
753 } // namespace WebCore 756 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/html/MediaError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698