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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revisions, Offline/Online Access (bypassed-hooks) Created 7 years, 7 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
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 // Use the <code>chrome.notifications</code> module to create rich notifications
6 // using templates and show these notifications to users in the system tray.
5 namespace notifications { 7 namespace notifications {
6 enum TemplateType { 8 enum TemplateType {
7 // icon, title, message 9 // icon, title, message
8 simple, 10 simple,
9 11
10 // icon, title, message, expandedMessage, up to two buttons 12 // icon, title, message, expandedMessage, up to two buttons
11 basic, 13 basic,
12 14
13 // icon, title, message, expandedMessage, image, up to two buttons 15 // icon, title, message, expandedMessage, image, up to two buttons
14 image, 16 image,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 static void onClosed(DOMString notificationId, boolean byUser); 101 static void onClosed(DOMString notificationId, boolean byUser);
100 102
101 // The user clicked in a non-button area of the notification. 103 // The user clicked in a non-button area of the notification.
102 static void onClicked(DOMString notificationId); 104 static void onClicked(DOMString notificationId);
103 105
104 // The user pressed a button in the notification. 106 // The user pressed a button in the notification.
105 static void onButtonClicked(DOMString notificationId, long buttonIndex); 107 static void onButtonClicked(DOMString notificationId, long buttonIndex);
106 }; 108 };
107 109
108 }; 110 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698