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

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

Issue 419603002: Allow the Chrome Hangouts Test Extension to send feedback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 /** 5 /**
6 * @type {number} 6 * @type {number}
7 * @const 7 * @const
8 */ 8 */
9 var FEEDBACK_WIDTH = 500; 9 var FEEDBACK_WIDTH = 500;
10 /** 10 /**
(...skipping 20 matching lines...) Expand all
31 'ljoammodoonkhnehlncldjelhidljdpi', // GetHelp app. 31 'ljoammodoonkhnehlncldjelhidljdpi', // GetHelp app.
32 'ljacajndfccfgnfohlgkdphmbnpkjflk', // Chrome Remote Desktop Dev 32 'ljacajndfccfgnfohlgkdphmbnpkjflk', // Chrome Remote Desktop Dev
33 'gbchcmhmhahfdphkhkmpfmihenigjmpp', // Chrome Remote Desktop Stable 33 'gbchcmhmhahfdphkhkmpfmihenigjmpp', // Chrome Remote Desktop Stable
34 'odkaodonbgfohohmklejpjiejmcipmib', // Chrome Remote Desktop QA 34 'odkaodonbgfohohmklejpjiejmcipmib', // Chrome Remote Desktop QA
35 'dokpleeekgeeiehdhmdkeimnkmoifgdd', // Chrome Remote Desktop QA backup 35 'dokpleeekgeeiehdhmdkeimnkmoifgdd', // Chrome Remote Desktop QA backup
36 'ajoainacpilcemgiakehflpbkbfipojk', // Chrome Remote Desktop Apps V2 36 'ajoainacpilcemgiakehflpbkbfipojk', // Chrome Remote Desktop Apps V2
37 'llohocloplkbhgcfnplnoficdkiechcn', // Play Movies Dev 37 'llohocloplkbhgcfnplnoficdkiechcn', // Play Movies Dev
38 'icljpnebmoleodmchaaajbkpoipfoahp', // Play Movies Nightly 38 'icljpnebmoleodmchaaajbkpoipfoahp', // Play Movies Nightly
39 'mjekoljodoiapgkggnlmbecndfpbbcch', // Play Movies Beta 39 'mjekoljodoiapgkggnlmbecndfpbbcch', // Play Movies Beta
40 'gdijeikdkaembjbdobgfkoidjkpbmlkd', // Play Movies Stable 40 'gdijeikdkaembjbdobgfkoidjkpbmlkd', // Play Movies Stable
41 'knipolnnllmklapflnccelgolnpehhpl', // Chrome Hangouts Extension
rkc 2014/07/24 20:37:42 Nit: Hangouts Extension is fine. The Chrome is imp
41 ]; 42 ];
42 43
43 /** 44 /**
44 * Function to determine whether or not a given extension id is whitelisted to 45 * Function to determine whether or not a given extension id is whitelisted to
45 * invoke the feedback UI. 46 * invoke the feedback UI.
46 * @param {string} id the id of the sender extension. 47 * @param {string} id the id of the sender extension.
47 * @return {boolean} Whether or not this sender is whitelisted. 48 * @return {boolean} Whether or not this sender is whitelisted.
48 */ 49 */
49 function senderWhitelisted(id) { 50 function senderWhitelisted(id) {
50 return id && whitelistedExtensionIds.indexOf(id) != -1; 51 return id && whitelistedExtensionIds.indexOf(id) != -1;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 width: FEEDBACK_WIDTH, 93 width: FEEDBACK_WIDTH,
93 height: FEEDBACK_HEIGHT, 94 height: FEEDBACK_HEIGHT,
94 hidden: true, 95 hidden: true,
95 resizable: false }, 96 resizable: false },
96 function(appWindow) {}); 97 function(appWindow) {});
97 } 98 }
98 99
99 chrome.runtime.onMessage.addListener(feedbackReadyHandler); 100 chrome.runtime.onMessage.addListener(feedbackReadyHandler);
100 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler); 101 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler);
101 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI); 102 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698