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

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

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/gamepad/Gamepad.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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 663
664 case PrefixedPutImageDataHD: 664 case PrefixedPutImageDataHD:
665 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P lease use putImageData instead."; 665 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P lease use putImageData instead.";
666 666
667 case ShadowRootApplyAuthorStyles: 667 case ShadowRootApplyAuthorStyles:
668 return "'ShadowRoot.applyAuthorStyles' is deprecated."; 668 return "'ShadowRoot.applyAuthorStyles' is deprecated.";
669 669
670 case PrefixedSpeechAttribute: 670 case PrefixedSpeechAttribute:
671 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead."; 671 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead.";
672 672
673 case PrefixedGamepad:
674 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat or.getGamepads' instead.";
675
673 // Features that aren't deprecated don't have a deprecation message. 676 // Features that aren't deprecated don't have a deprecation message.
674 default: 677 default:
675 return String(); 678 return String();
676 } 679 }
677 } 680 }
678 681
679 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 682 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
680 { 683 {
681 ASSERT(feature >= firstCSSProperty); 684 ASSERT(feature >= firstCSSProperty);
682 ASSERT(feature <= lastCSSProperty); 685 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
711 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 714 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
712 { 715 {
713 // FIXME: We may want to handle stylesheets that have multiple owners 716 // FIXME: We may want to handle stylesheets that have multiple owners
714 // http://crbug.com/242125 717 // http://crbug.com/242125
715 if (sheetContents && sheetContents->hasSingleOwnerNode()) 718 if (sheetContents && sheetContents->hasSingleOwnerNode())
716 return getFrom(sheetContents->singleOwnerDocument()); 719 return getFrom(sheetContents->singleOwnerDocument());
717 return 0; 720 return 0;
718 } 721 }
719 722
720 } // namespace WebCore 723 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/gamepad/Gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698