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 28 matching lines...) Expand all Loading... |
39 'mjekoljodoiapgkggnlmbecndfpbbcch', // Play Movies Beta | 39 'mjekoljodoiapgkggnlmbecndfpbbcch', // Play Movies Beta |
40 'gdijeikdkaembjbdobgfkoidjkpbmlkd', // Play Movies Stable | 40 'gdijeikdkaembjbdobgfkoidjkpbmlkd', // Play Movies Stable |
41 'andfmajejfpjojledngpdaibbhkffipo', // Hangouts Extension | 41 'andfmajejfpjojledngpdaibbhkffipo', // Hangouts Extension |
42 'jfjjdfefebklmdbmenmlehlopoocnoeh', // Hangouts Extension | 42 'jfjjdfefebklmdbmenmlehlopoocnoeh', // Hangouts Extension |
43 'dhcmpocobclokhifdkgcjbnfdaneoojd', // Hangouts Extension | 43 'dhcmpocobclokhifdkgcjbnfdaneoojd', // Hangouts Extension |
44 'ppleadejekpmccmnpjdimmlfljlkdfej', // Hangouts Extension | 44 'ppleadejekpmccmnpjdimmlfljlkdfej', // Hangouts Extension |
45 'eggnbpckecmjlblplehfpjjdhhidfdoj', // Hangouts Extension | 45 'eggnbpckecmjlblplehfpjjdhhidfdoj', // Hangouts Extension |
46 'ljclpkphhpbpinifbeabbhlfddcpfdde', // Hangouts Extension | 46 'ljclpkphhpbpinifbeabbhlfddcpfdde', // Hangouts Extension |
47 'nckgahadagoaajjgafhacjanaoiihapd', // Hangouts Extension | 47 'nckgahadagoaajjgafhacjanaoiihapd', // Hangouts Extension |
48 'knipolnnllmklapflnccelgolnpehhpl', // Hangouts Extension | 48 'knipolnnllmklapflnccelgolnpehhpl', // Hangouts Extension |
| 49 'dogkdgiahcdchbabhdmpbhlfoddjined', // GLS nightly |
| 50 'khkjfddibboofomnlkndfedpoccieiee', // GLS stable |
49 ]; | 51 ]; |
50 | 52 |
51 /** | 53 /** |
52 * Function to determine whether or not a given extension id is whitelisted to | 54 * Function to determine whether or not a given extension id is whitelisted to |
53 * invoke the feedback UI. | 55 * invoke the feedback UI. |
54 * @param {string} id the id of the sender extension. | 56 * @param {string} id the id of the sender extension. |
55 * @return {boolean} Whether or not this sender is whitelisted. | 57 * @return {boolean} Whether or not this sender is whitelisted. |
56 */ | 58 */ |
57 function senderWhitelisted(id) { | 59 function senderWhitelisted(id) { |
58 return id && whitelistedExtensionIds.indexOf(id) != -1; | 60 return id && whitelistedExtensionIds.indexOf(id) != -1; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 width: FEEDBACK_WIDTH, | 98 width: FEEDBACK_WIDTH, |
97 height: FEEDBACK_HEIGHT, | 99 height: FEEDBACK_HEIGHT, |
98 hidden: true, | 100 hidden: true, |
99 resizable: false }, | 101 resizable: false }, |
100 function(appWindow) {}); | 102 function(appWindow) {}); |
101 } | 103 } |
102 | 104 |
103 chrome.runtime.onMessage.addListener(feedbackReadyHandler); | 105 chrome.runtime.onMessage.addListener(feedbackReadyHandler); |
104 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler); | 106 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler); |
105 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI); | 107 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI); |
OLD | NEW |