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

Side by Side Diff: chrome/test/data/extensions/devtools/timeline_api_two/background_two.html

Issue 8784009: Update more extension manifests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 <script> 1 <!--
2 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
3 var devtoolsTabEvents = undefined; 3 * source code is governed by a BSD-style license that can be found in the
4 4 * LICENSE file.
5 function pageEventListener() { 5 -->
6 receivedEvents.push("onPageEvent"); 6 <script src="background_two.js"></script>
7 }
8
9 function tabCloseListener() {
10 receivedEvents.push("onTabClose");
11 }
12
13 function registerListenersForTab(tabId) {
14 devtoolsTabEvents = chrome.devtools.getTabEvents(tabId);
15 devtoolsTabEvents.onPageEvent.addListener(pageEventListener);
16 devtoolsTabEvents.onTabClose.addListener(tabCloseListener);
17 window.domAutomationController.send(true);
18 }
19
20 function unregisterListeners() {
21 devtoolsTabEvents.onPageEvent.removeListener(pageEventListener);
22 devtoolsTabEvents.onTabClose.removeListener(tabCloseListener);
23 window.domAutomationController.send(true);
24 }
25
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698