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

Side by Side Diff: components/data_reduction_proxy/content/resources/interstitial.js

Issue 830503004: Data Reduction Proxy blocking page and resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interstitalStep1
Patch Set: Add webui_resources.pak Created 5 years, 10 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
(Empty)
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.
4
5 var expandedDetails = false;
6 var keyPressState = 0;
7
8 /*
9 * A convenience method for sending commands to the parent page.
10 * @param {string} cmd The command to send.
11 */
12 function sendCommand(cmd) {
13 window.domAutomationController.setAutomationId(1);
14 window.domAutomationController.send(cmd);
15 }
16
17 function setupEvents() {
18 $('primary-button').addEventListener('click', function() {
19 sendCommand(DRP_CMD_TAKE_ME_BACK);
20 });
21
22 $('secondary-button').addEventListener('click', function() {
23 sendCommand(DRP_CMD_PROCEED);
24 });
25
26 preventDefaultOnPoundLinkClicks();
27 }
28
29 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/content/resources/interstitial.html ('k') | components/data_reduction_proxy_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698