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

Side by Side Diff: chrome/browser/resources/feedback.js

Issue 10408074: remove chrome_shared.css once and for all (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Constants. 5 // Constants.
6 /** @const */ var FEEDBACK_LANDING_PAGE = 6 /** @const */ var FEEDBACK_LANDING_PAGE =
7 'http://www.google.com/support/chrome/go/feedback_confirmation'; 7 'http://www.google.com/support/chrome/go/feedback_confirmation';
8 8
9 var selectedThumbnailDivId = ''; 9 var selectedThumbnailDivId = '';
10 var selectedThumbnailId = ''; 10 var selectedThumbnailId = '';
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 }; 206 };
207 } 207 }
208 208
209 <if expr="pp_ifdef('chromeos')"> 209 <if expr="pp_ifdef('chromeos')">
210 $('screenshot-link-tosaved').onclick = changeToSaved; 210 $('screenshot-link-tosaved').onclick = changeToSaved;
211 $('screenshot-link-tocurrent').onclick = changeToCurrent; 211 $('screenshot-link-tocurrent').onclick = changeToCurrent;
212 </if> 212 </if>
213 $('send-report-button').onclick = sendReport; 213 $('send-report-button').onclick = sendReport;
214 $('cancel-button').onclick = cancel; 214 $('cancel-button').onclick = cancel;
215 215
216 var menuOffPattern = /(^\?|&)menu=off($|&)/;
217 var menuDisabled = menuOffPattern.test(window.location.search);
218 document.documentElement.setAttribute('hide-menu', menuDisabled);
219
220 // Set default values for the possible parameters, and then parse the actual 216 // Set default values for the possible parameters, and then parse the actual
221 // values from the URL hash. 217 // values from the URL hash.
222 var parameters = { 218 var parameters = {
223 'description': '', 219 'description': '',
224 'categoryTag': '', 220 'categoryTag': '',
225 'customPageUrl': '', 221 'customPageUrl': '',
226 }; 222 };
227 var queryPos = window.location.hash.indexOf('?'); 223 var queryPos = window.location.hash.indexOf('?');
228 if (queryPos !== -1) { 224 if (queryPos !== -1) {
229 // Get an array of parameters in 'name=value' form. 225 // Get an array of parameters in 'name=value' form.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 $('user-email-table').hidden = true; 293 $('user-email-table').hidden = true;
298 294
299 // this also means we are in privacy mode, so no saved screenshots. 295 // this also means we are in privacy mode, so no saved screenshots.
300 $('screenshot-link-tosaved').hidden = true; 296 $('screenshot-link-tosaved').hidden = true;
301 } 297 }
302 } 298 }
303 } 299 }
304 } 300 }
305 301
306 window.addEventListener('DOMContentLoaded', load); 302 window.addEventListener('DOMContentLoaded', load);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698