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

Side by Side Diff: chrome/test/data/extensions/api_test/webnavigation/userAction/framework.js

Issue 2383573002: [DO NOT COMMIT] Remove chrome::NOTIFICATION_RETARGETING
Patch Set: Rebase on ToT Created 4 years, 2 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var deepEq = chrome.test.checkDeepEq; 5 var deepEq = chrome.test.checkDeepEq;
6 var expectedEventData; 6 var expectedEventData;
7 var expectedEventOrder; 7 var expectedEventOrder;
8 var capturedEventData; 8 var capturedEventData;
9 var nextFrameId; 9 var nextFrameId;
10 var frameIds; 10 var frameIds;
11 var nextTabId; 11 var nextTabId;
12 var tabIds; 12 var tabIds;
13 var nextProcessId; 13 var nextProcessId;
14 var processIds; 14 var processIds;
15 var initialized = false; 15 var initialized = false;
16 16
17 var debug = false; 17 var debug = true;
18 18
19 function deepCopy(obj) { 19 function deepCopy(obj) {
20 if (obj === null) 20 if (obj === null)
21 return null; 21 return null;
22 if (typeof(obj) != 'object') 22 if (typeof(obj) != 'object')
23 return obj; 23 return obj;
24 if (Array.isArray(obj)) { 24 if (Array.isArray(obj)) {
25 var tmp_array = new Array; 25 var tmp_array = new Array;
26 for (var i = 0; i < obj.length; i++) { 26 for (var i = 0; i < obj.length; i++) {
27 tmp_array.push(deepCopy(obj[i])); 27 tmp_array.push(deepCopy(obj[i]));
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return [ main_frame + "onCommitted", 254 return [ main_frame + "onCommitted",
255 iframe + "onBeforeNavigate", 255 iframe + "onBeforeNavigate",
256 iframe + "onCompleted", 256 iframe + "onCompleted",
257 main_frame + "onCompleted" ]; 257 main_frame + "onCompleted" ];
258 } 258 }
259 259
260 // Returns the constraint expressing that a frame was loaded by another. 260 // Returns the constraint expressing that a frame was loaded by another.
261 function isLoadedBy(target, source) { 261 function isLoadedBy(target, source) {
262 return [ source + "onDOMContentLoaded", target + "onBeforeNavigate"]; 262 return [ source + "onDOMContentLoaded", target + "onBeforeNavigate"];
263 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698