Home | History | Annotate | Download | only in extension

Lines Matching refs:cycle

23     cycle = cycle_tabs[sender.tab.id];
24 cycle.successful_loads++;
25 if (request.action == "should_scroll" && cycle.focus) {
43 function cycle_navigate(cycle) {
44 cycle_tabs[cycle.id] = cycle;
45 var url = cycle.urls[cycle.idx];
46 chrome.tabs.update(cycle.id, {'url': url, 'selected': true});
47 cycle.idx = (cycle.idx + 1) % cycle.urls.length;
48 if (cycle.timeout < cycle.delay / time_ratio && cycle.timeout > 0) {
49 cycle.timer = setTimeout(cycle_check_timeout, cycle.timeout, cycle);
51 cycle.timer = setTimeout(cycle_navigate, cycle.delay / time_ratio, cycle);
55 function cycle_check_timeout(cycle) {
56 if (cycle.id in cycle_tabs) {
57 cycle.failed_loads++;
58 cycle_navigate(cycle);
60 cycle.timer = setTimeout(cycle_navigate,
61 cycle.delay / time_ratio - cycle.timeout,
62 cycle);
78 } else if (task.type == 'cycle' && task.urls) {
82 var cycle = {
94 cycles[task.name] = cycle;
95 cycle_navigate(cycle);
96 setTimeout(function(cycle, win_id) {
97 clearTimeout(cycle.timer);
99 }, task.duration / time_ratio, cycle, win.id);
109 var cycle = cycles[name];
110 post.push(name + "_successful_loads=" + cycle.successful_loads);
111 post.push(name + "_failed_loads=" + cycle.failed_loads);