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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api_set_icon/background.js

Issue 11316292: Add app.window.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to .idl Created 8 years 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/platform_apps/windows_api_set_icon/background.js
diff --git a/chrome/browser/resources/apps_debugger/background.js b/chrome/test/data/extensions/platform_apps/windows_api_set_icon/background.js
similarity index 58%
copy from chrome/browser/resources/apps_debugger/background.js
copy to chrome/test/data/extensions/platform_apps/windows_api_set_icon/background.js
index fc106f2b4f78ee98e6cd495de8b63f13fb78e3b2..85029bd662d667f23b01952fc6508840e416250b 100644
--- a/chrome/browser/resources/apps_debugger/background.js
+++ b/chrome/test/data/extensions/platform_apps/windows_api_set_icon/background.js
@@ -3,8 +3,9 @@
// found in the LICENSE file.
chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {
- 'width': 600,
- 'height': 600
+ chrome.test.sendMessage("Launched");
+ chrome.app.window.create('test.html', {}, function(win) {
+ win.setIcon("icon.png");
+ chrome.test.sendMessage('IconSet');
});
});
« no previous file with comments | « chrome/common/extensions/api/app_window.idl ('k') | chrome/test/data/extensions/platform_apps/windows_api_set_icon/icon.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698