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

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

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Address code review comments and add test cases. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
Devlin 2016/12/09 15:23:48 no (c) (all files)
jennyz 2016/12/14 01:15:36 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var clipDataChangedCount = 0;
6
7 chrome.app.runtime.onLaunched.addListener(function(launchData) {
8 console.log('onLaunched');
Devlin 2016/12/09 15:23:49 remove debugging logs
jennyz 2016/12/14 01:15:36 Done.
9 chrome.app.window.create('app_main.html',
10 { 'width': 500,
11 'height': 500 },
Devlin 2016/12/09 15:23:50 Please follow JS style here. Also, if you don't d
jennyz 2016/12/14 01:15:36 Done.
12 function(window) {
13 });
14 });
15
16 chrome.clipboard.onClipboardDataChanged.addListener(function() {
17 clipDataChangedCount++;
18 console.log('onClipboardDataChanged ' + clipDataChangedCount);
19 chrome.test.sendMessage("clipboard data changed " + clipDataChangedCount);
20 });
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698