@param {!AmpElement} element
(element)
| 234 | |
| 235 | /** @param {!AmpElement} element */ |
| 236 | constructor(element) { |
| 237 | /** @public @const {!Element} */ |
| 238 | this.element = element; |
| 239 | |
| 240 | /** @public @const {!Window} */ |
| 241 | this.win = getWin(element); |
| 242 | |
| 243 | /* |
| 244 | \ \ / \ / / / \ | _ \ | \ | | | | | \ | | / ____| |
| 245 | \ \/ \/ / / ^ \ | |_) | | \| | | | | \| | | | __ |
| 246 | \ / / /_\ \ | / | . ` | | | | . ` | | | |_ | |
| 247 | \ /\ / / _____ \ | |\ \----.| |\ | | | | |\ | | |__| | |
| 248 | \__/ \__/ /__/ \__\ | _| `._____||__| \__| |__| |__| \__| \______| |
| 249 | |
| 250 | Any private property for BaseElement MUST be wrapped with quotes. We cannot |
| 251 | allow Closure Compiler to mangle privates in this class, because it can |
| 252 | reuse the same mangled name for a different property in, i.e., amp-youtube's |
| 253 | BaseElement subclass (which lives in a different binary). |
| 254 | */ |
| 255 | |
| 256 | /** |
| 257 | * Maps action name to struct containing the action handler and minimum |
| 258 | * trust required to invoke the handler. |
| 259 | * @private {?Object<string, { |
| 260 | * handler: function(!./service/action-impl.ActionInvocation), |
| 261 | * minTrust: ActionTrust_Enum, |
| 262 | * }>} */ |
| 263 | this['actionMap_'] = null; |
| 264 | |
| 265 | /** @private {?string} */ |
| 266 | this['defaultActionAlias_'] = null; |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * The element's signal tracker. |