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

Unified Diff: tracing/tracing/base/event.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/base/extension_registry.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/event.html
diff --git a/tracing/tracing/base/event.html b/tracing/tracing/base/event.html
index 75ad3d5001a5c397b8497c11520c14b25e7dca5f..4b10d3f31f9bcc5b353377f24b0731bd5ceeef35 100644
--- a/tracing/tracing/base/event.html
+++ b/tracing/tracing/base/event.html
@@ -77,11 +77,19 @@ tr.exportTo('tr.b', function() {
* @param {boolean=} opt_bubbles Whether the event bubbles or not.
* @param {boolean=} opt_cancelable Whether the default action of the event
* can be prevented.
+ * @param {!Object=} opt_fields
+ *
* @return {boolean} If any of the listeners called {@code preventDefault}
* during the dispatch this will return false.
*/
- function dispatchSimpleEvent(target, type, opt_bubbles, opt_cancelable) {
+ function dispatchSimpleEvent(target, type, opt_bubbles, opt_cancelable,
+ opt_fields) {
var e = new tr.b.Event(type, opt_bubbles, opt_cancelable);
+ if (opt_fields) {
+ tr.b.iterItems(opt_fields, function(name, value) {
+ e[name] = value;
+ });
+ }
return target.dispatchEvent(e);
}
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/base/extension_registry.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698