| <!DOCTYPE html> |
| <!-- |
| Copyright 2015 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| |
| <link rel="import" href="/base/utils.html"> |
| |
| <polymer-element name='tv-c-scripting-object'> |
| <script> |
| 'use strict'; |
| Polymer({ |
| // Name under which this object is accessible in the console. |
| get scriptName() { |
| throw new Error('Not implemented'); |
| }, |
| |
| // Value to bind the console object to. Defaults to "this". |
| get scriptValue() { |
| return this; |
| }, |
| |
| // Called when the active timeline changes. |
| onTimelineChanged: function(timeline) { |
| // No-op by default. |
| } |
| }); |
| </script> |
| </polymer-element> |