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/page/UseCounter.cpp

Issue 22893051: Add support for BeforeUnloadEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test failures Created 7 years, 3 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/page/UseCounter.h ('k') | no next file » | 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 case ReleaseEvents: 660 case ReleaseEvents:
661 return "releaseEvents() is deprecated. This method doesn't do anything." ; 661 return "releaseEvents() is deprecated. This method doesn't do anything." ;
662 662
663 case ConsoleMarkTimeline: 663 case ConsoleMarkTimeline:
664 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 664 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
665 665
666 case FileError: 666 case FileError:
667 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 667 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
668 668
669 case EventReturnValue:
670 return "event.returnValue is deprecated. Please use the standard event.p reventDefault() instead.";
671
669 // Features that aren't deprecated don't have a deprecation message. 672 // Features that aren't deprecated don't have a deprecation message.
670 default: 673 default:
671 return String(); 674 return String();
672 } 675 }
673 } 676 }
674 677
675 void UseCounter::count(CSSPropertyID feature) 678 void UseCounter::count(CSSPropertyID feature)
676 { 679 {
677 ASSERT(feature >= firstCSSProperty); 680 ASSERT(feature >= firstCSSProperty);
678 ASSERT(feature <= lastCSSProperty); 681 ASSERT(feature <= lastCSSProperty);
(...skipping 23 matching lines...) Expand all
702 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 705 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
703 { 706 {
704 // FIXME: We may want to handle stylesheets that have multiple owners 707 // FIXME: We may want to handle stylesheets that have multiple owners
705 // http://crbug.com/242125 708 // http://crbug.com/242125
706 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 709 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
707 return getFrom(sheetContents->singleOwnerDocument()); 710 return getFrom(sheetContents->singleOwnerDocument());
708 return 0; 711 return 0;
709 } 712 }
710 713
711 } // namespace WebCore 714 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698