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

Side by Side Diff: chrome/common/extensions/api/experimental_notification.idl

Issue 12335024: Change eventTime field to standard chrome.* API format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 [nodoc] namespace experimental.notification { 5 [nodoc] namespace experimental.notification {
6 enum TemplateType { 6 enum TemplateType {
7 // icon, title, message 7 // icon, title, message
8 simple, 8 simple,
9 9
10 // icon, title, message, expandedMessage, up to two buttons 10 // icon, title, message, expandedMessage, up to two buttons
(...skipping 30 matching lines...) Expand all
41 // Title of the notification (e.g. sender name for email). 41 // Title of the notification (e.g. sender name for email).
42 DOMString title; 42 DOMString title;
43 43
44 // Main notification content. 44 // Main notification content.
45 DOMString message; 45 DOMString message;
46 46
47 // Priority ranges from -2 to 2. -2 is lowest priority. 2 is highest. Zero 47 // Priority ranges from -2 to 2. -2 is lowest priority. 2 is highest. Zero
48 // is default. 48 // is default.
49 long? priority; 49 long? priority;
50 50
51 // A timestamp associated with the notification, in W3C ISO 8601 format 51 // A timestamp associated with the notification, in milliseconds past the
52 // (http://www.w3.org/TR/NOTE-datetime) or ECMAScript date time string 52 // epoch (e.g. <code>Date.now() + n</code>).
53 // format (http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15) 53 double? eventTime;
54 // as generated by date.toISOString(), for example "1994-11-15T12:45:26Z."
55 DOMString? eventTime;
56 54
57 // Smaller version of the icon. 55 // Smaller version of the icon.
58 DOMString? secondIconUrl; 56 DOMString? secondIconUrl;
59 57
60 // Text and icons of notification action buttons. 58 // Text and icons of notification action buttons.
61 NotificationButton[]? buttons; 59 NotificationButton[]? buttons;
62 60
63 // Secondary notification content. 61 // Secondary notification content.
64 DOMString? expandedMessage; 62 DOMString? expandedMessage;
65 63
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 static void onClosed(DOMString notificationId, boolean byUser); 108 static void onClosed(DOMString notificationId, boolean byUser);
111 109
112 // The user clicked in a non-button area of the notification. 110 // The user clicked in a non-button area of the notification.
113 static void onClicked(DOMString notificationId); 111 static void onClicked(DOMString notificationId);
114 112
115 // The user pressed a button in the notification. 113 // The user pressed a button in the notification.
116 static void onButtonClicked(DOMString notificationId, long buttonIndex); 114 static void onButtonClicked(DOMString notificationId, long buttonIndex);
117 }; 115 };
118 116
119 }; 117 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/notification/notification_apitest.cc ('k') | ui/message_center/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698