summaryrefslogtreecommitdiff
path: root/Applications/Browser/ConsoleWidget.h
diff options
context:
space:
mode:
authorFalseHonesty <thefalsehonesty@gmail.com>2020-05-25 15:24:46 -0400
committerAndreas Kling <kling@serenityos.org>2020-05-26 10:17:50 +0200
commit941b028ca3287574aeaec470d66ce085a9ccb100 (patch)
tree76fb44e9e4631fc3a380a40a6ef4814082f67340 /Applications/Browser/ConsoleWidget.h
parentb352a6b59d5deb10fb1a29b0b521439b3823e7e3 (diff)
downloadserenity-941b028ca3287574aeaec470d66ce085a9ccb100.zip
LibJS: Create JS to HTML markup generator
The new JS::MarkupGenerator class can convert both a JS source string and a JS Runtime Value into properly formatted HTML using the new LibWeb System Palette css color values. It makes more sense for this JS -> HTML process to occur in LibJS so that it can be used elsewhere, namely Markdown code block syntax highlighting. It also means the Browser can worry less about LibJS implementation details.
Diffstat (limited to 'Applications/Browser/ConsoleWidget.h')
-rw-r--r--Applications/Browser/ConsoleWidget.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/Applications/Browser/ConsoleWidget.h b/Applications/Browser/ConsoleWidget.h
index 5a0d0d7412..50516ed5e6 100644
--- a/Applications/Browser/ConsoleWidget.h
+++ b/Applications/Browser/ConsoleWidget.h
@@ -47,13 +47,6 @@ private:
String create_document_style();
- void print_value(JS::Value, StringBuilder& output_html, HashTable<JS::Object*> seen_objects = {});
- void print_array(const JS::Array&, StringBuilder& output_html, HashTable<JS::Object*>&);
- void print_object(const JS::Object&, StringBuilder& output_html, HashTable<JS::Object*>&);
- void print_function(const JS::Object&, StringBuilder& output_html, HashTable<JS::Object*>&);
- void print_date(const JS::Object&, StringBuilder& output_html, HashTable<JS::Object*>&);
- void print_error(const JS::Object&, StringBuilder& output_html, HashTable<JS::Object*>&);
-
RefPtr<GUI::TextBox> m_console_input;
RefPtr<Web::HtmlView> m_console_output_view;
RefPtr<Web::Element> m_console_output_container;