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

Unified Diff: chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js

Issue 2335293002: ShouldDisplayOverFullscreen implementation (Closed)
Patch Set: Rebasing to try to get patch to compile Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js
diff --git a/chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js b/chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..db2d7d8f46cf8dc35a61cb5cc6ef5941172c7681
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+const redDot = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA' +
+ 'AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO' +
+ '9TXL0Y4OHwAAAABJRU5ErkJggg==';
+
+const options = {
+ iconUrl: redDot,
+ title: 'hi',
+ message: 'there',
+ type: 'basic',
+ buttons: [{title: 'Button'}, {title: 'Button'}]
+ };
+
+onload = function() {
+ chrome.notifications.create('test', options, function() {
+ chrome.test.sendMessage('created');
+ });
+};

Powered by Google App Engine
This is Rietveld 408576698