1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * Prototype for first-run tutorial steps.
9 cr.define('cr.FirstRun', function() {
10 var Step = cr.ui.define('div');
13 __proto__: HTMLDivElement.prototype,
18 // Button leading to next tutorial step.
21 decorate: function() {
22 this.name_ = this.getAttribute('id');
23 this.nextButton_ = this.getElementsByClassName('next-button')[0];
24 if (!this.nextButton_)
25 throw Error('Next button not found.');
26 this.nextButton_.addEventListener('click', (function(e) {
27 chrome.send('nextButtonClicked', [this.getName()]);