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

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

Issue 213193010: Restore the HTMLVideoElement-specific prefixed fullscreen API behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test Created 6 years, 9 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
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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 case FileError: 649 case FileError:
650 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 650 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
651 651
652 case ShowModalDialog: 652 case ShowModalDialog:
653 return "Chromium is considering deprecating showModalDialog. Please use window.open and postMessage instead."; 653 return "Chromium is considering deprecating showModalDialog. Please use window.open and postMessage instead.";
654 654
655 case CSSStyleSheetInsertRuleOptionalArg: 655 case CSSStyleSheetInsertRuleOptionalArg:
656 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0)."; 656 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0).";
657 657
658 case PrefixedVideoSupportsFullscreen:
659 return "'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its v alue is true if the video is loaded.";
660
661 case PrefixedVideoDisplayingFullscreen:
662 return "'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Ple ase use the 'fullscreenchange' and 'webkitfullscreenchange' events instead.";
663
664 case PrefixedVideoEnterFullscreen:
665 return "'HTMLVideoElement.webkitEnterFullscreen()' is deprecated. Please use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste ad.";
eseidel 2014/03/27 16:54:18 Why even mention the webkit versions?
philipj_slow 2014/03/27 18:58:31 We don't support the unprefixed versions, so telli
666
667 case PrefixedVideoExitFullscreen:
668 return "'HTMLVideoElement.webkitExitFullscreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead.";
669
670 case PrefixedVideoEnterFullScreen:
671 return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste ad.";
672
673 case PrefixedVideoExitFullScreen:
674 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead.";
675
658 case PrefixedMediaSourceOpen: 676 case PrefixedMediaSourceOpen:
659 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead."; 677 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead.";
660 678
661 case DOMImplementationCreateCSSStyleSheet: 679 case DOMImplementationCreateCSSStyleSheet:
662 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; 680 return "'DOMImplementation.createCSSStyleSheet()' is deprecated.";
663 681
664 case MediaErrorEncrypted: 682 case MediaErrorEncrypted:
665 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used."; 683 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used.";
666 684
667 case HTMLSourceElementMedia: 685 case HTMLSourceElementMedia:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 750 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
733 { 751 {
734 // FIXME: We may want to handle stylesheets that have multiple owners 752 // FIXME: We may want to handle stylesheets that have multiple owners
735 // http://crbug.com/242125 753 // http://crbug.com/242125
736 if (sheetContents && sheetContents->hasSingleOwnerNode()) 754 if (sheetContents && sheetContents->hasSingleOwnerNode())
737 return getFrom(sheetContents->singleOwnerDocument()); 755 return getFrom(sheetContents->singleOwnerDocument());
738 return 0; 756 return 0;
739 } 757 }
740 758
741 } // namespace WebCore 759 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698