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

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

Issue 1329653003: [bindings] Club related constants for a runtime enabled flag in a single |if| block (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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_20 = 3.4e5; 55 const double CONST_VALUE_20 = 3.4e5;
56 const double CONST_VALUE_21 = -1.3; 56 const double CONST_VALUE_21 = -1.3;
57 const double CONST_VALUE_22 = -4e-9; 57 const double CONST_VALUE_22 = -4e-9;
58 const double CONST_VALUE_23 = .123; 58 const double CONST_VALUE_23 = .123;
59 const double CONST_VALUE_24 = 5E+4; 59 const double CONST_VALUE_24 = 5E+4;
60 const float CONST_VALUE_25 = 1; 60 const float CONST_VALUE_25 = 1;
61 61
62 // Extended attributes 62 // Extended attributes
63 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1; 63 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1;
64 [MeasureAs=Constant] const short MEASURED_CONSTANT = 1; 64 [MeasureAs=Constant] const short MEASURED_CONSTANT = 1;
65 [RuntimeEnabled=FeatureName] const short FEATURE_ENABLED_CONST = 1; 65 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST1 = 1;
66 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST2 = 2;
67 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST1 = 3;
68 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST2 = 4;
69 [RuntimeEnabled=FeatureName3] const short FEATURE3_ENABLED_CONST1 = 5;
66 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1; 70 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1;
67 71
68 stringifier attribute DOMString stringifierAttribute; 72 stringifier attribute DOMString stringifierAttribute;
69 73
70 // Attributes 74 // Attributes
71 // 75 //
72 // Naming convention: 76 // Naming convention:
73 // [ExtAttr] attribute Type extAttrTypeNameAttribute; 77 // [ExtAttr] attribute Type extAttrTypeNameAttribute;
74 // E.g., 78 // E.g.,
75 // [Foo] attribute DOMString? fooStringOrNullAttribute 79 // [Foo] attribute DOMString? fooStringOrNullAttribute
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 611 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
608 [ImplementedInPrivateScript] attribute Node nodeAttribute; 612 [ImplementedInPrivateScript] attribute Node nodeAttribute;
609 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 613 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
610 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 614 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
611 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 615 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
612 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 616 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
613 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 617 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
614 618
615 maplike<long, DOMStringOrDouble>; 619 maplike<long, DOMStringOrDouble>;
616 }; 620 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/constants.cpp ('k') | Source/bindings/tests/idls/core/TestPartialInterface.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698