Lk us
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** * @fileoverview * Logging info for benchmarking purposes. Should be the first js file included. */
/* Stack of events that has been logged. */ var eventLog = [];
/** * Logs an event. * @param {String} name The name of the event (can be any string). * @param {boolean} shouldLogTime If true, the event is used for benchmarking * and the time is logged. Otherwise, just push the event on the event * stack. */ function logEvent(name, shouldLogTime) { if (shouldLogTime) chrome.send('metricsHandler:logEventTime', [name]); eventLog.push([name, Date.now()]);
}
logEvent('Tab.NewTabScriptStart', true); window.addEventListener('load', function(e) { logEvent('Tab.NewTabOnload', true);
});
document.addEventListener('DOMContentLoaded', function(e) { logEvent('Tab.NewTabDOMContentLoaded', true);
});
/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */
.bubble { position: absolute; /* Height is dynamic, width fixed. */ width: 300px; z-index: 9999;
}
.bubble-contents { color: black; left: 1px; line-height: 150%; padding: 8px 11px 12px; position: relative; right: 1px; top: 1px; width: 298px; z-index: 3;
}
.bubble-close { background-image: no-repeat 50% 50%; height: 16px; position: absolute; right: 6px; top: 6px; width: 16px; z-index: 4;
}
html[dir='rtl'] .bubble-close { left: 6px; right: auto;
}
.bubble-close { background-image: -webkit-image-set(