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/events/webview_events/test.js

Issue 2973903002: [Extensions Bindings] Introduce a supportsLazyListeners property (Closed)
Patch Set: onMessage event fix Created 3 years, 5 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.app.runtime.onLaunched.addListener(function() {
6 var webview = document.createElement('webview');
7 webview.src = 'data:text/html,<html><body>hello world</body></html>';
8 webview.addEventListener('close', function() {});
9 webview.contextMenus.onClicked.addListener(function() {});
10 webview.contextMenus.onShow.addListener(function() {});
11 webview.contextMenus.create({title: 'a', onclick: function() {}});
12 webview.addEventListener('loadabort', () => { chrome.test.notifyFail(); });
13 webview.addEventListener('loadstop', () => { chrome.test.notifyPass(); });
14 webview.request.onMessage.addListener(function() {});
15 document.body.appendChild(webview);
16 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/events/webview_events/manifest.json ('k') | extensions/browser/event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698