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

Side by Side Diff: Source/bindings/tests/idls/core/TestObject.idl

Issue 577303002: IDL: Support [DeprecateAs] and [MeasureAs] on constants (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adjusted encrypted-media-constants-expected.txt Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const double CONST_VALUE_19 = 4e9; 55 const double CONST_VALUE_19 = 4e9;
56 const double CONST_VALUE_20 = 3.4e5; 56 const double CONST_VALUE_20 = 3.4e5;
57 const double CONST_VALUE_21 = -1.3; 57 const double CONST_VALUE_21 = -1.3;
58 const double CONST_VALUE_22 = -4e-9; 58 const double CONST_VALUE_22 = -4e-9;
59 const double CONST_VALUE_23 = .123; 59 const double CONST_VALUE_23 = .123;
60 const double CONST_VALUE_24 = 5E+4; 60 const double CONST_VALUE_24 = 5E+4;
61 const float CONST_VALUE_25 = 1; 61 const float CONST_VALUE_25 = 1;
62 62
63 // Extended attributes 63 // Extended attributes
64 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1; 64 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1;
65 [MeasureAs=Constant] const short MEASURED_CONSTANT = 1;
65 [RuntimeEnabled=FeatureName] const short FEATURE_ENABLED_CONST = 1; 66 [RuntimeEnabled=FeatureName] const short FEATURE_ENABLED_CONST = 1;
66 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1; 67 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1;
67 68
68 stringifier attribute DOMString stringifierAttribute; 69 stringifier attribute DOMString stringifierAttribute;
69 70
70 // Attributes 71 // Attributes
71 // 72 //
72 // Naming convention: 73 // Naming convention:
73 // [ExtAttr] attribute Type extAttrTypeNameAttribute; 74 // [ExtAttr] attribute Type extAttrTypeNameAttribute;
74 // E.g., 75 // E.g.,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 547 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
547 [ImplementedInPrivateScript] attribute short shortAttribute; 548 [ImplementedInPrivateScript] attribute short shortAttribute;
548 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 549 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
549 [ImplementedInPrivateScript] attribute Node nodeAttribute; 550 [ImplementedInPrivateScript] attribute Node nodeAttribute;
550 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 551 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
551 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 552 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
552 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 553 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
553 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 554 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
554 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 555 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
555 }; 556 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698