summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn')
-rw-r--r--chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn107
1 files changed, 51 insertions, 56 deletions
diff --git a/chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn b/chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn
index 840635e5137..33abaf33d30 100644
--- a/chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn
+++ b/chromium/chrome/browser/resources/chromeos/chromevox/BUILD.gn
@@ -7,6 +7,7 @@ import("//chrome/common/features.gni")
import("//components/nacl/features.gni")
import("//testing/test.gni")
import("//chrome/test/base/js2gtest.gni")
+import("//third_party/closure_compiler/compile_js.gni")
import("run_jsbundler.gni")
assert(is_chromeos)
@@ -14,7 +15,7 @@ assert(is_chromeos)
declare_args() {
# Whether to compress the main Chromevox javascript files or load the
# modules individually from source files.
- chromevox_compress_js = !is_debug
+ chromevox_compress_js = true
}
closure_library_dir =
@@ -39,7 +40,6 @@ chromevox_modules = [
"chromevox/background/injected_script_loader.js",
"chromevox/background/kbexplorer.js",
"chromevox/background/keymaps/key_map.js",
- "chromevox/background/mathmaps/math_map.js",
"chromevox/background/options.js",
"chromevox/background/prefs.js",
"chromevox/background/tabs_api_handler.js",
@@ -99,10 +99,6 @@ chromevox_modules = [
"common/interframe.js",
"common/key_sequence.js",
"common/key_util.js",
- "common/math_semantic_attr.js",
- "common/math_semantic_tree.js",
- "common/math_semantic_util.js",
- "common/math_util.js",
"common/media_widget.js",
"common/memoize.js",
"common/msgs.js",
@@ -117,7 +113,6 @@ chromevox_modules = [
"common/table_util.js",
"common/time_widget.js",
"common/traverse_content.js",
- "common/traverse_math.js",
"common/traverse_table.js",
"common/traverse_util.js",
"common/xpath_util.js",
@@ -137,12 +132,15 @@ chromevox_modules = [
"cvox2/background/earcon_engine.js",
"cvox2/background/editing.js",
"cvox2/background/event_source.js",
+ "cvox2/background/event_stream_logger.js",
"cvox2/background/find_handler.js",
"cvox2/background/gesture_command_data.js",
"cvox2/background/gesture_command_handler.js",
"cvox2/background/i_search.js",
"cvox2/background/keyboard_handler.js",
"cvox2/background/live_regions.js",
+ "cvox2/background/log.js",
+ "cvox2/background/log_store.js",
"cvox2/background/math_handler.js",
"cvox2/background/media_automation_handler.js",
"cvox2/background/next_earcons.js",
@@ -171,30 +169,15 @@ chromevox_modules = [
"host/chrome/earcons.js",
"host/chrome/extension_bridge.js",
"host/chrome/host.js",
- "host/chrome/mathjax.js",
"host/chrome/tts.js",
"host/chrome/tts_background.js",
"host/chrome/tts_base.js",
"host/interface/abstract_earcons.js",
"host/interface/abstract_host.js",
- "host/interface/abstract_mathjax.js",
"host/interface/abstract_tts.js",
"host/interface/braille_interface.js",
"host/interface/host_factory.js",
- "host/interface/mathjax_interface.js",
"host/interface/tts_interface.js",
- "speech_rules/base_rule_store.js",
- "speech_rules/math_simple_store.js",
- "speech_rules/math_store.js",
- "speech_rules/mathml_store.js",
- "speech_rules/mathml_store_rules.js",
- "speech_rules/mathml_store_util.js",
- "speech_rules/speech_rule.js",
- "speech_rules/speech_rule_engine.js",
- "speech_rules/speech_rule_evaluator.js",
- "speech_rules/speech_rule_functions.js",
- "speech_rules/speech_rule_store.js",
- "speech_rules/store_util.js",
"walkers/abstract_node_walker.js",
"walkers/abstract_selection_walker.js",
"walkers/abstract_shifter.js",
@@ -204,7 +187,6 @@ chromevox_modules = [
"walkers/column_walker.js",
"walkers/group_walker.js",
"walkers/layout_line_walker.js",
- "walkers/math_shifter.js",
"walkers/object_walker.js",
"walkers/row_walker.js",
"walkers/sentence_walker.js",
@@ -249,6 +231,7 @@ group("chromevox") {
":chromevox_background_script",
":chromevox_content_script",
":chromevox_kbexplorer_script",
+ ":chromevox_log_script",
":chromevox_min_content_script",
":chromevox_options_script",
":chromevox_panel_script",
@@ -261,6 +244,7 @@ group("chromevox") {
chromevox_background_script_loader_file = "cvox2/background/loader.js"
chromevox_content_script_loader_file = "chromevox/injected/loader.js"
chromevox_kbexplorer_loader_file = "chromevox/background/kbexplorer_loader.js"
+chromevox_log_loader_file = "cvox2/background/log_loader.js"
chromevox_min_content_script_loader_file = "cvox2/injected/loader.js"
chromevox_options_script_loader_file = "chromevox/background/options_loader.js"
chromevox_panel_script_loader_file = "cvox2/background/panel_loader.js"
@@ -303,36 +287,6 @@ run_jsbundler("chromevox_copied_files") {
"chromevox/background/keymaps/experimental.json",
"chromevox/background/keymaps/flat_keymap.json",
"chromevox/background/keymaps/next_keymap.json",
- "chromevox/background/mathmaps/functions/algebra.json",
- "chromevox/background/mathmaps/functions/elementary.json",
- "chromevox/background/mathmaps/functions/hyperbolic.json",
- "chromevox/background/mathmaps/functions/trigonometry.json",
- "chromevox/background/mathmaps/symbols/greek-capital.json",
- "chromevox/background/mathmaps/symbols/greek-mathfonts.json",
- "chromevox/background/mathmaps/symbols/greek-scripts.json",
- "chromevox/background/mathmaps/symbols/greek-small.json",
- "chromevox/background/mathmaps/symbols/greek-symbols.json",
- "chromevox/background/mathmaps/symbols/hebrew_letters.json",
- "chromevox/background/mathmaps/symbols/latin-lower-double-accent.json",
- "chromevox/background/mathmaps/symbols/latin-lower-normal.json",
- "chromevox/background/mathmaps/symbols/latin-lower-phonetic.json",
- "chromevox/background/mathmaps/symbols/latin-lower-single-accent.json",
- "chromevox/background/mathmaps/symbols/latin-mathfonts.json",
- "chromevox/background/mathmaps/symbols/latin-rest.json",
- "chromevox/background/mathmaps/symbols/latin-upper-double-accent.json",
- "chromevox/background/mathmaps/symbols/latin-upper-normal.json",
- "chromevox/background/mathmaps/symbols/latin-upper-single-accent.json",
- "chromevox/background/mathmaps/symbols/math_angles.json",
- "chromevox/background/mathmaps/symbols/math_arrows.json",
- "chromevox/background/mathmaps/symbols/math_characters.json",
- "chromevox/background/mathmaps/symbols/math_delimiters.json",
- "chromevox/background/mathmaps/symbols/math_digits.json",
- "chromevox/background/mathmaps/symbols/math_geometry.json",
- "chromevox/background/mathmaps/symbols/math_harpoons.json",
- "chromevox/background/mathmaps/symbols/math_non_characters.json",
- "chromevox/background/mathmaps/symbols/math_symbols.json",
- "chromevox/background/mathmaps/symbols/math_whitespace.json",
- "chromevox/background/mathmaps/symbols/other_stars.json",
"chromevox/background/options.css",
"chromevox/background/options.html",
"chromevox/background/unchecked.png",
@@ -344,6 +298,8 @@ run_jsbundler("chromevox_copied_files") {
"cvox2/background/earcons/skim.wav",
"cvox2/background/earcons/small_room_2.wav",
"cvox2/background/earcons/static.wav",
+ "cvox2/background/log.css",
+ "cvox2/background/log.html",
"cvox2/background/panel.css",
"cvox2/background/panel.html",
"images/chromevox-128.png",
@@ -364,6 +320,7 @@ run_jsbundler("chromevox_copied_files") {
chromevox_background_script_loader_file,
chromevox_content_script_loader_file,
chromevox_kbexplorer_loader_file,
+ chromevox_log_loader_file,
chromevox_min_content_script_loader_file,
chromevox_options_script_loader_file,
chromevox_panel_script_loader_file,
@@ -480,6 +437,13 @@ if (chromevox_compress_js) {
output_file = "$chromevox_out_dir/chromeVoxKbExplorerScript.js"
}
+ compress_js("chromevox_log_script") {
+ sources = [
+ chromevox_log_loader_file,
+ ]
+ output_file = "$chromevox_out_dir/chromeVoxLogScript.js"
+ }
+
compress_js("chromevox_options_script") {
sources = [
chromevox_options_script_loader_file,
@@ -599,7 +563,6 @@ action("chromevox_test_messages_js") {
chromevox_test_modules = [
"host/testing/earcons.js",
"host/testing/host.js",
- "host/testing/mathjax.js",
"host/testing/tts.js",
"testing/spoken_list_builder.js",
"testing/test_msgs.js",
@@ -640,7 +603,6 @@ js2gtest("chromevox_unitjs_tests") {
"common/editable_text_test.unitjs",
"common/find_util_test.unitjs",
"common/key_sequence_test.unitjs",
- "common/math_semantic_tree_test.unitjs",
"common/page_selection_test.unitjs",
"common/selection_util_test.unitjs",
"common/spannable_test.unitjs",
@@ -650,7 +612,6 @@ js2gtest("chromevox_unitjs_tests") {
"walkers/character_walker_test.unitjs",
"walkers/group_walker_test.unitjs",
"walkers/layout_line_walker_test.unitjs",
- "walkers/math_shifter_test.unitjs",
"walkers/object_walker_test.unitjs",
"walkers/sentence_walker_test.unitjs",
"walkers/structural_line_walker_test.unitjs",
@@ -683,6 +644,7 @@ js2gtest("chromevox_extjs_tests") {
"cvox2/background/editing_test.extjs",
"cvox2/background/i_search_test.extjs",
"cvox2/background/live_regions_test.extjs",
+ "cvox2/background/log_store_test.extjs",
"cvox2/background/output_test.extjs",
"cvox2/background/panel_test.extjs",
"cvox2/background/recovery_strategy_test.extjs",
@@ -698,3 +660,36 @@ js2gtest("chromevox_extjs_tests") {
]
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
}
+
+js_library("tree_walker") {
+ sources = [
+ "cvox2/background/tree_walker.js",
+ ]
+ deps = [
+ ":automation_predicate",
+ ":constants",
+ ]
+ externs_list = [
+ "$externs_path/automation.js",
+ "$externs_path/chrome_extensions.js",
+ ]
+}
+
+js_library("automation_predicate") {
+ sources = [
+ "cvox2/background/automation_predicate.js",
+ ]
+ deps = [
+ ":constants",
+ ]
+ externs_list = [
+ "$externs_path/automation.js",
+ "$externs_path/chrome_extensions.js",
+ ]
+}
+
+js_library("constants") {
+ sources = [
+ "cvox2/background/constants.js",
+ ]
+}