| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * @fileoverview LIS Standalone hack | 6 * @fileoverview LIS Standalone hack |
| 7 * This file contains the code necessary to make the Touch LIS work | 7 * This file contains the code necessary to make the Touch LIS work |
| 8 * as a stand-alone application (as opposed to being embedded into chrome). | 8 * as a stand-alone application (as opposed to being embedded into chrome). |
| 9 * This is useful for rapid development and testing, but does not actually form | 9 * This is useful for rapid development and testing, but does not actually form |
| 10 * part of the product. | 10 * part of the product. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * recently-closed pages, but the tangent LIS doesn't use that data so we | 29 * recently-closed pages, but the tangent LIS doesn't use that data so we |
| 30 * don't bother simulating it here. | 30 * don't bother simulating it here. |
| 31 * | 31 * |
| 32 * We create this object by applying an anonymous function so that we can have | 32 * We create this object by applying an anonymous function so that we can have |
| 33 * local variables (avoid polluting the global object) | 33 * local variables (avoid polluting the global object) |
| 34 */ | 34 */ |
| 35 chrome.send = (function() { | 35 chrome.send = (function() { |
| 36 var users = [ | 36 var users = [ |
| 37 { | 37 { |
| 38 name: 'Alan Beaker', | 38 name: 'Alan Beaker', |
| 39 email_address: 'beaker@chromium.org', | 39 emailAddress: 'beaker@chromium.org', |
| 40 image_url: '../../app/theme/avatar_beaker.png', | 40 imageUrl: '../../app/theme/avatar_beaker.png', |
| 41 can_remove: false | 41 canRemove: false |
| 42 }, | 42 }, |
| 43 { | 43 { |
| 44 name: 'Alex Briefcase', | 44 name: 'Alex Briefcase', |
| 45 email_address: 'briefcase@chromium.org', | 45 emailAddress: 'briefcase@chromium.org', |
| 46 image_url: '../../app/theme/avatar_briefcase.png', | 46 imageUrl: '../../app/theme/avatar_briefcase.png', |
| 47 can_remove: true | 47 canRemove: true |
| 48 }, | 48 }, |
| 49 { | 49 { |
| 50 name: 'Alex Circles', | 50 name: 'Alex Circles', |
| 51 email_address: 'circles@chromium.org', | 51 emailAddress: 'circles@chromium.org', |
| 52 image_url: '../../app/theme/avatar_circles.png', | 52 imageUrl: '../../app/theme/avatar_circles.png', |
| 53 can_remove: true | 53 canRemove: true |
| 54 }, | 54 }, |
| 55 { | 55 { |
| 56 name: 'Guest', | 56 name: 'Guest', |
| 57 email_address: '', | 57 emailAddress: '', |
| 58 image_url: '', | 58 imageUrl: '', |
| 59 can_remove: false | 59 canRemove: false |
| 60 } | 60 } |
| 61 ]; | 61 ]; |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * Invoke the getAppsCallback function with a snapshot of the current app | 64 * Invoke the getAppsCallback function with a snapshot of the current app |
| 65 * database. | 65 * database. |
| 66 */ | 66 */ |
| 67 function sendGetUsersCallback() | 67 function sendGetUsersCallback() |
| 68 { | 68 { |
| 69 // We don't want to hand out our array directly because the NTP will | 69 // We don't want to hand out our array directly because the NTP will |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 bound = function() { | 354 bound = function() { |
| 355 return self.apply(this instanceof nop ? this : (selfObj || {}), | 355 return self.apply(this instanceof nop ? this : (selfObj || {}), |
| 356 args.concat(slice.call(arguments))); | 356 args.concat(slice.call(arguments))); |
| 357 }; | 357 }; |
| 358 nop.prototype = self.prototype; | 358 nop.prototype = self.prototype; |
| 359 bound.prototype = new nop(); | 359 bound.prototype = new nop(); |
| 360 return bound; | 360 return bound; |
| 361 }; | 361 }; |
| 362 } | 362 } |
| 363 | 363 |
| OLD | NEW |