OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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); |
OLD | NEW |