1 // Copyright 2015 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.
5 var expandedDetails = false;
9 * A convenience method for sending commands to the parent page.
10 * @param {string} cmd The command to send.
12 function sendCommand(cmd) {
13 window.domAutomationController.setAutomationId(1);
14 window.domAutomationController.send(cmd);
17 function setupEvents() {
18 $('primary-button').addEventListener('click', function() {
19 sendCommand(DRP_CMD_TAKE_ME_BACK);
22 $('secondary-button').addEventListener('click', function() {
23 sendCommand(DRP_CMD_PROCEED);
26 preventDefaultOnPoundLinkClicks();
29 document.addEventListener('DOMContentLoaded', setupEvents);