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

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: . 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.addEventListener('loadabort', () => { chrome.test.notifyFail(); });
12 webview.addEventListener('loadstop', () => { chrome.test.notifyPass(); });
13 document.body.appendChild(webview);
14 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698