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

Unified Diff: chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Fix nits. Created 3 years, 11 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/clipboard/set_image_data/main.js
diff --git a/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js b/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..02f64f1c3039055054fd1d3bf494887000727fe1
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js
@@ -0,0 +1,15 @@
+// Copyright 2016 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.
+
+var clipDataChangedCount = 0;
+
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
+ chrome.app.window.create('app_main.html', {width: 500, height: 500});
+});
+
+chrome.clipboard.onClipboardDataChanged.addListener(function() {
+ clipDataChangedCount++;
+ chrome.test.sendMessage('clipboard data changed ' + clipDataChangedCount);
+});
+

Powered by Google App Engine
This is Rietveld 408576698