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

Side by Side Diff: chrome/test/data/extensions/api_test/notification/galore/app/model.js

Issue 12212037: Update notifications API after review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge conflict resolved Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 var Galore = Galore || {}; 5 var Galore = Galore || {};
6 6
7 Galore.NOTIFICATIONS = [ 7 Galore.NOTIFICATIONS = [
8 { 8 {
9 name: 'Simple Notifications', 9 name: 'Simple Notifications',
10 type: 'simple', 10 templateType: 'simple',
11 notifications: [ 11 notifications: [
12 { 12 {
13 iconUrl: '$@/images/man1-$%x$%.jpg', 13 iconUrl: '$@/images/man1-$%x$%.jpg',
14 title: 'Althe Frazon', 14 title: 'Althe Frazon',
15 message: 'Lorem ipsum' 15 message: 'Lorem ipsum'
16 }, 16 },
17 { 17 {
18 iconUrl: '$@/images/woman1-$%x$%.jpg', 18 iconUrl: '$@/images/woman1-$%x$%.jpg',
19 title: 'Kathrine Doiss', 19 title: 'Kathrine Doiss',
20 message: 'Dolor sit amet' 20 message: 'Dolor sit amet'
21 }, 21 },
22 { 22 {
23 iconUrl: '$@/images/woman2-$%x$%.jpg', 23 iconUrl: '$@/images/woman2-$%x$%.jpg',
24 title: 'Jamie Haynig', 24 title: 'Jamie Haynig',
25 message: 'Consectetur adipisicing elit' 25 message: 'Consectetur adipisicing elit'
26 }, 26 },
27 { 27 {
28 iconUrl: '$@/images/woman3-$%x$%.jpg', 28 iconUrl: '$@/images/woman3-$%x$%.jpg',
29 title: 'Maricia Rilari', 29 title: 'Maricia Rilari',
30 message: 'Sed do eiusmod tempor incididunt' 30 message: 'Sed do eiusmod tempor incididunt'
31 } 31 }
32 ] 32 ]
33 }, 33 },
34 { 34 {
35 name: 'Basic Notifications', 35 name: 'Basic Notifications',
36 type: 'base', 36 templateType: 'basic',
37 notifications: [ 37 notifications: [
38 { 38 {
39 iconUrl: '$@/images/man1-$%x$%.jpg', 39 iconUrl: '$@/images/man1-$%x$%.jpg',
40 title: 'Althe Frazon', 40 title: 'Althe Frazon',
41 message: 'Lorem ipsum', 41 message: 'Lorem ipsum',
42 buttonOneIconUrl: '$@/images/call-16x16.jpg', 42 buttons: [
43 buttonOneTitle: 'Call', 43 {title: 'Call', iconUrl: '$@/images/call-16x16.jpg'},
44 buttonTwoIconUrl: '$@/images/send-16x16.jpg', 44 {title: 'Send Email', iconUrl: '$@/images/send-16x16.jpg'},
45 buttonTwoTitle: 'Send Email' 45 ]
46 }, 46 },
47 { 47 {
48 iconUrl: '$@/images/woman1-$%x$%.jpg', 48 iconUrl: '$@/images/woman1-$%x$%.jpg',
49 title: 'Kathrine Doiss', 49 title: 'Kathrine Doiss',
50 message: 'Dolor sit amet' 50 message: 'Dolor sit amet'
51 }, 51 },
52 { 52 {
53 iconUrl: '$@/images/woman2-$%x$%.jpg', 53 iconUrl: '$@/images/woman2-$%x$%.jpg',
54 title: 'Jamie Haynig', 54 title: 'Jamie Haynig',
55 message: 'Consectetur adipisicing elit' 55 message: 'Consectetur adipisicing elit'
(...skipping 30 matching lines...) Expand all
86 }, 86 },
87 { 87 {
88 iconUrl: '$@/images/fruit6-$%x$%.jpg', 88 iconUrl: '$@/images/fruit6-$%x$%.jpg',
89 title: 'Notification #$#: Blueberries!', 89 title: 'Notification #$#: Blueberries!',
90 message: 'Vaccinium cyanococcus' 90 message: 'Vaccinium cyanococcus'
91 } 91 }
92 ] 92 ]
93 }, 93 },
94 { 94 {
95 name: 'Image Notifications', 95 name: 'Image Notifications',
96 type: 'image', 96 templateType: 'image',
97 notifications: [ 97 notifications: [
98 { 98 {
99 iconUrl: '$@/images/woman3-$%x$%.jpg', 99 iconUrl: '$@/images/woman3-$%x$%.jpg',
100 title: 'Maricia Rilari', 100 title: 'Maricia Rilari',
101 message: 'Pictures from Tahoe', 101 message: 'Pictures from Tahoe',
102 imageUrl: '$@/images/tahoe-300x225.jpg' 102 imageUrl: '$@/images/tahoe-300x225.jpg'
103 }, 103 },
104 { 104 {
105 iconUrl: '$@/images/flower1-$%x$%.jpg', 105 iconUrl: '$@/images/flower1-$%x$%.jpg',
106 title: 'Notification #$#: Daffodils!', 106 title: 'Notification #$#: Daffodils!',
107 message: 'Narcissus', 107 message: 'Narcissus',
108 imageUrl: '$@/images/image1-300x225.jpg', 108 imageUrl: '$@/images/image1-300x225.jpg',
109 buttonOneTitle: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipisicing', 109 buttons: [
110 buttonTwoTitle: 'Elit Sed Do' 110 {title: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipisicing'},
111 {title: 'Elit Sed Do'},
112 ]
111 }, 113 },
112 { 114 {
113 iconUrl: '$@/images/flower2-$%x$%.jpg', 115 iconUrl: '$@/images/flower2-$%x$%.jpg',
114 title: 'Notification #$#: Sunflowers!', 116 title: 'Notification #$#: Sunflowers!',
115 message: 'Helianthus annuus', 117 message: 'Helianthus annuus',
116 imageUrl: '$@/images/image2-300x225.jpg' 118 imageUrl: '$@/images/image2-300x225.jpg'
117 }, 119 },
118 { 120 {
119 iconUrl: '$@/images/flower3-$%x$%.jpg', 121 iconUrl: '$@/images/flower3-$%x$%.jpg',
120 title: 'Notification #$#: Poinsettias!', 122 title: 'Notification #$#: Poinsettias!',
121 message: 'Euphorbia pulcherrima', 123 message: 'Euphorbia pulcherrima',
122 imageUrl: '$@/images/image3-300x172.jpg' 124 imageUrl: '$@/images/image3-300x172.jpg'
123 }, 125 },
124 { 126 {
125 iconUrl: '$@/images/flower4-$%x$%.jpg', 127 iconUrl: '$@/images/flower4-$%x$%.jpg',
126 title: 'Notification #$#: Heather!', 128 title: 'Notification #$#: Heather!',
127 message: 'Calluna vulgaris', 129 message: 'Calluna vulgaris',
128 imageUrl: '$@/images/image4-200x300.jpg' 130 imageUrl: '$@/images/image4-200x300.jpg'
129 } 131 }
130 ] 132 ]
131 }, 133 },
132 { 134 {
133 name: 'List Notifications', 135 name: 'List Notifications',
134 type: 'multiple', 136 templateType: 'list',
135 notifications: [ 137 notifications: [
136 { 138 {
137 iconUrl: '$@/images/inbox-00-$%x$%.png', 139 iconUrl: '$@/images/inbox-00-$%x$%.png',
138 title: '15 new messages', 140 title: '15 new messages',
139 message: 'althe.frazon@gmail.com', 141 message: 'althe.frazon@gmail.com',
140 items: [ 142 items: [
141 {title: 'Althe Frazon', message: 'Lorem ipsum dolor sit amet'}, 143 {title: 'Althe Frazon', message: 'Lorem ipsum dolor sit amet'},
142 {title: 'Kathrine Doiss', message: 'Consectetur adipisicing elit'}, 144 {title: 'Kathrine Doiss', message: 'Consectetur adipisicing elit'},
143 {title: 'Jamie Haynig', message: 'Sed do eiusmod tempor incididunt'}, 145 {title: 'Jamie Haynig', message: 'Sed do eiusmod tempor incididunt'},
144 {title: 'Kelly Seiken', message: 'Ut labore et dolore magna aliqua'}, 146 {title: 'Kelly Seiken', message: 'Ut labore et dolore magna aliqua'},
145 {title: 'Maricia Rilari', message: 'Ut enim ad minim veniam'} 147 {title: 'Maricia Rilari', message: 'Ut enim ad minim veniam'}
146 ], 148 ],
147 buttonOneIconUrl: '$@/images/send-16x16.png', 149 buttons: [
148 buttonOneTitle: 'Send Message' 150 {title: 'Send Message', iconUrl: '$@/images/send-16x16.png'}
151 ]
149 }, 152 },
150 { 153 {
151 iconUrl: '$@/images/inbox-01-$%x$%.png', 154 iconUrl: '$@/images/inbox-01-$%x$%.png',
152 title: '1 new message', 155 title: '1 new message',
153 message: 'althe.frazon@gmail.com', 156 message: 'althe.frazon@gmail.com',
154 items: [ 157 items: [
155 {title: 'Althe Frazon', message: 'Lorem ipsum dolor sit amet'} 158 {title: 'Althe Frazon', message: 'Lorem ipsum dolor sit amet'}
156 ] 159 ]
157 }, 160 },
158 { 161 {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 message: 'Ocimum basilicum', 250 message: 'Ocimum basilicum',
248 items: [ 251 items: [
249 {title: 'One', message: 'Unus'}, 252 {title: 'One', message: 'Unus'},
250 {title: 'Two', message: 'Duo'}, 253 {title: 'Two', message: 'Duo'},
251 {title: 'Three', message: 'Tres'} 254 {title: 'Three', message: 'Tres'}
252 ] 255 ]
253 } 256 }
254 ] 257 ]
255 } 258 }
256 ]; 259 ];
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/notification/galore/app/controller.js ('k') | ui/notifications/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698