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

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

Issue 20034002: Add support for KeyboardEvent.location attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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
« no previous file with comments | « Source/core/page/UseCounter.h ('k') | Source/devtools/front_end/ExtensionAPI.js » ('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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // Web Components 637 // Web Components
638 case HTMLShadowElementOlderShadowRoot: 638 case HTMLShadowElementOlderShadowRoot:
639 return "HTMLShadowElement.olderShadowRoot is deprecated."; 639 return "HTMLShadowElement.olderShadowRoot is deprecated.";
640 case PrefixedDocumentRegister: 640 case PrefixedDocumentRegister:
641 return "The document.webkitRegister method is deprecated. Use the docume nt.register method instead."; 641 return "The document.webkitRegister method is deprecated. Use the docume nt.register method instead.";
642 642
643 // HTML Media Capture 643 // HTML Media Capture
644 case CaptureAttributeAsEnum: 644 case CaptureAttributeAsEnum:
645 return "Using the 'capture' attribute as an enum is deprecated. Please u se it as a boolean and specify the media types that should be accepted in the 'a ccept' attribute."; 645 return "Using the 'capture' attribute as an enum is deprecated. Please u se it as a boolean and specify the media types that should be accepted in the 'a ccept' attribute.";
646 646
647 // Keyboard Event (DOM Level 3)
648 case KeyboardEventKeyLocation:
649 return "'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboard Event.location' instead.";
650
647 // Features that aren't deprecated don't have a deprecation message. 651 // Features that aren't deprecated don't have a deprecation message.
648 default: 652 default:
649 return String(); 653 return String();
650 } 654 }
651 } 655 }
652 656
653 void UseCounter::count(CSSPropertyID feature) 657 void UseCounter::count(CSSPropertyID feature)
654 { 658 {
655 ASSERT(feature >= firstCSSProperty); 659 ASSERT(feature >= firstCSSProperty);
656 ASSERT(feature <= lastCSSProperty); 660 ASSERT(feature <= lastCSSProperty);
(...skipping 17 matching lines...) Expand all
674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 678 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
675 { 679 {
676 // FIXME: We may want to handle stylesheets that have multiple owners 680 // FIXME: We may want to handle stylesheets that have multiple owners
677 // http://crbug.com/242125 681 // http://crbug.com/242125
678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 682 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
679 return getFrom(sheetContents->singleOwnerDocument()); 683 return getFrom(sheetContents->singleOwnerDocument());
680 return 0; 684 return 0;
681 } 685 }
682 686
683 } // namespace WebCore 687 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/UseCounter.h ('k') | Source/devtools/front_end/ExtensionAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698