From 32234d0251a86b2630edb8d222bddac23f80f76a Mon Sep 17 00:00:00 2001 From: Zeynep Cankara Date: Wed, 15 Jul 2020 08:28:00 +0100 Subject: [PATCH] [tools][system-analyzer] Create an app class This CL attaches global functions of the panels as instance variables of an app class. Bug: v8:10667, v8:10644 Change-Id: Ib76730652f977ac81e3558ddb18165e938859512 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2297476 Commit-Queue: Zeynep Cankara Reviewed-by: Camillo Bruni Cr-Commit-Position: refs/heads/master@{#68867} --- tools/system-analyzer/index.html | 15 ++++++--------- tools/system-analyzer/index.mjs | 9 ++++++++- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tools/system-analyzer/index.html b/tools/system-analyzer/index.html index 839be29b80..5c8ecf9b4f 100644 --- a/tools/system-analyzer/index.html +++ b/tools/system-analyzer/index.html @@ -53,25 +53,22 @@ dd { }


- +

diff --git a/tools/system-analyzer/index.mjs b/tools/system-analyzer/index.mjs index 2017a59352..76e2832386 100644 --- a/tools/system-analyzer/index.mjs +++ b/tools/system-analyzer/index.mjs @@ -114,4 +114,11 @@ function handleSelectIcEvents(e){ document.state.filteredEntries = e.detail; } -export {globalSearchBarEvent, globalDataUpload, showMaps, handleSelectIcEvents}; +class App { + globalDataUpload = globalDataUpload; + globalSearchBarEvent = globalSearchBarEvent; + showMaps = showMaps; + handleSelectIcEvents = handleSelectIcEvents; +} + +export {App};