Commit 5a7eae1a authored by Eriko Kurimoto's avatar Eriko Kurimoto Committed by Commit Bot

Log Page created with ChromeVox+O>W

This is the window to show ChromeVox log history.
In this patch, the page is created without any contents.

Bug: 874349
Change-Id: I6782686f82a8eeab6d85f9c8cc6686564615b1ce
Reviewed-on: https://chromium-review.googlesource.com/1175586Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Reviewed-by: default avatarYuki Awano <yawano@chromium.org>
Commit-Queue: Eriko Kurimoto <elkurin@google.com>
Cr-Commit-Position: refs/heads/master@{#585765}
parent bab2befc
...@@ -139,6 +139,7 @@ chromevox_modules = [ ...@@ -139,6 +139,7 @@ chromevox_modules = [
"cvox2/background/i_search.js", "cvox2/background/i_search.js",
"cvox2/background/keyboard_handler.js", "cvox2/background/keyboard_handler.js",
"cvox2/background/live_regions.js", "cvox2/background/live_regions.js",
"cvox2/background/log.js",
"cvox2/background/math_handler.js", "cvox2/background/math_handler.js",
"cvox2/background/media_automation_handler.js", "cvox2/background/media_automation_handler.js",
"cvox2/background/next_earcons.js", "cvox2/background/next_earcons.js",
...@@ -229,6 +230,7 @@ group("chromevox") { ...@@ -229,6 +230,7 @@ group("chromevox") {
":chromevox_background_script", ":chromevox_background_script",
":chromevox_content_script", ":chromevox_content_script",
":chromevox_kbexplorer_script", ":chromevox_kbexplorer_script",
":chromevox_log_script",
":chromevox_min_content_script", ":chromevox_min_content_script",
":chromevox_options_script", ":chromevox_options_script",
":chromevox_panel_script", ":chromevox_panel_script",
...@@ -241,6 +243,7 @@ group("chromevox") { ...@@ -241,6 +243,7 @@ group("chromevox") {
chromevox_background_script_loader_file = "cvox2/background/loader.js" chromevox_background_script_loader_file = "cvox2/background/loader.js"
chromevox_content_script_loader_file = "chromevox/injected/loader.js" chromevox_content_script_loader_file = "chromevox/injected/loader.js"
chromevox_kbexplorer_loader_file = "chromevox/background/kbexplorer_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_min_content_script_loader_file = "cvox2/injected/loader.js"
chromevox_options_script_loader_file = "chromevox/background/options_loader.js" chromevox_options_script_loader_file = "chromevox/background/options_loader.js"
chromevox_panel_script_loader_file = "cvox2/background/panel_loader.js" chromevox_panel_script_loader_file = "cvox2/background/panel_loader.js"
...@@ -294,6 +297,8 @@ run_jsbundler("chromevox_copied_files") { ...@@ -294,6 +297,8 @@ run_jsbundler("chromevox_copied_files") {
"cvox2/background/earcons/skim.wav", "cvox2/background/earcons/skim.wav",
"cvox2/background/earcons/small_room_2.wav", "cvox2/background/earcons/small_room_2.wav",
"cvox2/background/earcons/static.wav", "cvox2/background/earcons/static.wav",
"cvox2/background/log.css",
"cvox2/background/log.html",
"cvox2/background/panel.css", "cvox2/background/panel.css",
"cvox2/background/panel.html", "cvox2/background/panel.html",
"images/chromevox-128.png", "images/chromevox-128.png",
...@@ -314,6 +319,7 @@ run_jsbundler("chromevox_copied_files") { ...@@ -314,6 +319,7 @@ run_jsbundler("chromevox_copied_files") {
chromevox_background_script_loader_file, chromevox_background_script_loader_file,
chromevox_content_script_loader_file, chromevox_content_script_loader_file,
chromevox_kbexplorer_loader_file, chromevox_kbexplorer_loader_file,
chromevox_log_loader_file,
chromevox_min_content_script_loader_file, chromevox_min_content_script_loader_file,
chromevox_options_script_loader_file, chromevox_options_script_loader_file,
chromevox_panel_script_loader_file, chromevox_panel_script_loader_file,
...@@ -430,6 +436,13 @@ if (chromevox_compress_js) { ...@@ -430,6 +436,13 @@ if (chromevox_compress_js) {
output_file = "$chromevox_out_dir/chromeVoxKbExplorerScript.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") { compress_js("chromevox_options_script") {
sources = [ sources = [
chromevox_options_script_loader_file, chromevox_options_script_loader_file,
......
...@@ -585,6 +585,15 @@ ...@@ -585,6 +585,15 @@
} }
} }
}, },
{
"command": "showLogPage",
"sequence": {
"cvoxModifier": true,
"keys": {
"keyCode": [79, 87]
}
}
},
{ {
"command": "help", "command": "help",
"sequence": { "sequence": {
......
...@@ -105,6 +105,15 @@ CommandHandler.onCommand = function(command) { ...@@ -105,6 +105,15 @@ CommandHandler.onCommand = function(command) {
}; };
chrome.windows.create(explorerPage); chrome.windows.create(explorerPage);
break; break;
case 'showLogPage':
chrome.commandLinePrivate.hasSwitch(
'enable-chromevox-developer-option', function(enable) {
if (enable) {
var logPage = {url: 'cvox2/background/log.html', type: 'panel'};
chrome.windows.create(logPage);
}
});
break;
case 'decreaseTtsRate': case 'decreaseTtsRate':
CommandHandler.increaseOrDecreaseSpeechProperty_( CommandHandler.increaseOrDecreaseSpeechProperty_(
cvox.AbstractTts.RATE, false); cvox.AbstractTts.RATE, false);
......
/* Copyright 2018 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. */
<!-- Copyright 2018 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. -->
<html>
<head>
<title class="i18n" msg="log_title">chromevox-log</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="log.css">
<script type="text/javascript" src="../../chromeVoxLogScript.js"></script>
</head>
<body>
<h1>ChromeVox Log</h1>
</body>
</html>
// Copyright 2018 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 ChromeVox log page.
*
*/
goog.provide('cvox.LogPage');
/**
* Class to manage the log page.
* @constructor
*/
cvox.LogPage = function() {};
// Copyright 2018 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 Loads the log script.
*/
goog.require('cvox.LogPage');
...@@ -589,6 +589,9 @@ ...@@ -589,6 +589,9 @@
<message desc="The title of ChromeVox Learn Mode page. The keyboard explorer voices the name of each key when the user presses it." name="IDS_CHROMEVOX_KBEXPLORER_TITLE"> <message desc="The title of ChromeVox Learn Mode page. The keyboard explorer voices the name of each key when the user presses it." name="IDS_CHROMEVOX_KBEXPLORER_TITLE">
ChromeVox Learn Mode ChromeVox Learn Mode
</message> </message>
<message desc="The title of ChromeVox Log page." name="IDS_CHROMEVOX_LOG_TITLE">
ChromeVox Log
</message>
<message desc="The instructions for ChromeVox Learn Mode. The keyboard explorer voices the name of each key when the user presses it. * These instructions describe how to use the keyboard explorer." name="IDS_CHROMEVOX_KBEXPLORER_INSTRUCTIONS"> <message desc="The instructions for ChromeVox Learn Mode. The keyboard explorer voices the name of each key when the user presses it. * These instructions describe how to use the keyboard explorer." name="IDS_CHROMEVOX_KBEXPLORER_INSTRUCTIONS">
Press any key to learn its name. Ctrl+W will close learn mode. Press any key to learn its name. Ctrl+W will close learn mode.
</message> </message>
......
...@@ -70,6 +70,11 @@ _CHROME_EXTERNS = ( ...@@ -70,6 +70,11 @@ _CHROME_EXTERNS = (
_CHROME_EXTENSIONS_EXTERNS = ( _CHROME_EXTENSIONS_EXTERNS = (
ChromeRootPath('third_party/closure_compiler/externs/chrome_extensions.js')) ChromeRootPath('third_party/closure_compiler/externs/chrome_extensions.js'))
# CommandLinePrivate externs file.
_COMMANDLINE_PRIVATE_EXTERNS = (
ChromeRootPath(
'third_party/closure_compiler/externs/command_line_private.js'))
# Externs common to many ChromeVox scripts. # Externs common to many ChromeVox scripts.
_COMMON_EXTERNS = [ _COMMON_EXTERNS = [
...@@ -82,6 +87,7 @@ _COMMON_EXTERNS = [ ...@@ -82,6 +87,7 @@ _COMMON_EXTERNS = [
_AUTOMATION_EXTERNS, _AUTOMATION_EXTERNS,
_CHROME_EXTERNS, _CHROME_EXTERNS,
_CHROME_EXTENSIONS_EXTERNS, _CHROME_EXTENSIONS_EXTERNS,
_COMMANDLINE_PRIVATE_EXTERNS,
_METRICS_PRIVATE_EXTERNS, _METRICS_PRIVATE_EXTERNS,
_SETTINGS_PRIVATE_EXTERNS,] _SETTINGS_PRIVATE_EXTERNS,]
...@@ -89,6 +95,7 @@ _COMMON_EXTERNS = [ ...@@ -89,6 +95,7 @@ _COMMON_EXTERNS = [
_TOP_LEVEL_SCRIPTS = [ _TOP_LEVEL_SCRIPTS = [
[[CVoxPath('chromevox/background/kbexplorer_loader.js')], _COMMON_EXTERNS], [[CVoxPath('chromevox/background/kbexplorer_loader.js')], _COMMON_EXTERNS],
[[CVoxPath('chromevox/background/options_loader.js')], _COMMON_EXTERNS], [[CVoxPath('chromevox/background/options_loader.js')], _COMMON_EXTERNS],
[[CVoxPath('cvox2/background/log_loader.js')], _COMMON_EXTERNS],
[[CVoxPath('chromevox/injected/loader.js')], _COMMON_EXTERNS], [[CVoxPath('chromevox/injected/loader.js')], _COMMON_EXTERNS],
[[CVoxPath('cvox2/background/loader.js')], _COMMON_EXTERNS], [[CVoxPath('cvox2/background/loader.js')], _COMMON_EXTERNS],
[[CVoxPath('cvox2/background/panel_loader.js')], _COMMON_EXTERNS], [[CVoxPath('cvox2/background/panel_loader.js')], _COMMON_EXTERNS],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment