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

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

Issue 22831019: Deprecate FileError in FileAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 case CaptureEvents: 655 case CaptureEvents:
656 return "captureEvents() is deprecated. This method doesn't do anything." ; 656 return "captureEvents() is deprecated. This method doesn't do anything." ;
657 657
658 case ReleaseEvents: 658 case ReleaseEvents:
659 return "releaseEvents() is deprecated. This method doesn't do anything." ; 659 return "releaseEvents() is deprecated. This method doesn't do anything." ;
660 660
661 case ConsoleMarkTimeline: 661 case ConsoleMarkTimeline:
662 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 662 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
663 663
664 case FileError:
665 return "FileError is deprecated. Refer 'name' or 'message' attribute of DOMError instead of 'code'.";
Mike West 2013/08/21 12:44:00 Nit: "Please use the 'name' or 'message' attribute
kinuko 2013/08/21 16:27:45 Done.
666
664 // Features that aren't deprecated don't have a deprecation message. 667 // Features that aren't deprecated don't have a deprecation message.
665 default: 668 default:
666 return String(); 669 return String();
667 } 670 }
668 } 671 }
669 672
670 void UseCounter::count(CSSPropertyID feature) 673 void UseCounter::count(CSSPropertyID feature)
671 { 674 {
672 ASSERT(feature >= firstCSSProperty); 675 ASSERT(feature >= firstCSSProperty);
673 ASSERT(feature <= lastCSSProperty); 676 ASSERT(feature <= lastCSSProperty);
(...skipping 23 matching lines...) Expand all
697 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 700 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
698 { 701 {
699 // FIXME: We may want to handle stylesheets that have multiple owners 702 // FIXME: We may want to handle stylesheets that have multiple owners
700 // http://crbug.com/242125 703 // http://crbug.com/242125
701 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 704 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
702 return getFrom(sheetContents->singleOwnerDocument()); 705 return getFrom(sheetContents->singleOwnerDocument());
703 return 0; 706 return 0;
704 } 707 }
705 708
706 } // namespace WebCore 709 } // namespace WebCore
OLDNEW
« Source/core/fileapi/FileError.idl ('K') | « Source/core/page/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698