code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Earcons library that uses the HTML5 Audio element to play back
* auditory cues.
*
*/
goog.provide('cvox.ClassicEarcons');
goog.require('cvox.Abstract... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/classic_earcons.js | JavaScript | unknown | 1,884 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Bridge that sends earcon messages from content scripts or
* other pages to the main background page.
*
*/
goog.provide('cvox.ChromeEarcons');
goog.re... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/earcons.js | JavaScript | unknown | 1,551 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Bridge to aid in communication between a Chrome
* background page and content script.
*
* It automatically figures out where it's being run and initiali... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/extension_bridge.js | JavaScript | unknown | 9,709 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Chrome-specific implementation of methods that differ
* depending on the host platform.
*
*/
goog.provide('cvox.ChromeHost');
goog.require('cvox.Abstr... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js | JavaScript | unknown | 6,016 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Implementation of ChromeVox's bridge to MathJax.
*
*/
goog.provide('cvox.ChromeMathJax');
goog.require('cvox.AbstractMathJax');
goog.require('cvox.ApiI... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/mathjax.js | JavaScript | unknown | 7,024 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Bridge that sends TTS messages from content scripts or
* other pages to the main background page.
*
*/
goog.provide('cvox.ChromeTts');
goog.require('c... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/tts.js | JavaScript | unknown | 3,896 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Sends Text-To-Speech commands to Chrome's native TTS
* extension API.
*
*/
goog.provide('cvox.TtsBackground');
goog.require('PanelCommand');
goog.requ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/tts_background.js | JavaScript | unknown | 21,278 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A base class for Tts living on Chrome platforms.
*
*/
goog.provide('cvox.ChromeTtsBase');
goog.require('cvox.AbstractTts');
/**
* @constructor
* @e... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/chrome/tts_base.js | JavaScript | unknown | 782 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Base class for implementing earcons.
*
* When adding earcons, please add them to getEarconName and getEarconId.
*
*/
goog.provide('cvox.AbstractEarcon... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/abstract_earcons.js | JavaScript | unknown | 2,259 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Abstract interface to methods that differ depending on the
* host platform.
*
*/
goog.provide('cvox.AbstractHost');
goog.require('cvox.ChromeVoxEventW... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/abstract_host.js | JavaScript | unknown | 4,040 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Implentation of ChromeVox's bridge to MathJax.
*
*/
goog.provide('cvox.AbstractMathJax');
goog.require('cvox.MathJaxInterface');
/**
* Creates a new... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/abstract_mathjax.js | JavaScript | unknown | 2,722 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Base class for Text-to-Speech engines that actually transform
* text to speech.
*
*/
goog.provide('cvox.AbstractTts');
goog.require('Msgs');
goog.requ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/abstract_tts.js | JavaScript | unknown | 15,027 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Defines a Braille interface.
*
* All Braille engines in ChromeVox conform to this interface.
*
*/
goog.provide('cvox.BrailleInterface');
goog.require... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/braille_interface.js | JavaScript | unknown | 709 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A host factory. This factory allows us to decouple the
* cvox.Host|Tts|... creatation from the main ChromeVox code.
*/
goog.provide('cvox.HostFactory'... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/host_factory.js | JavaScript | unknown | 1,875 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Interface of ChromeVox's bridge to MathJax.
*
*/
goog.provide('cvox.MathJaxInterface');
/**
* @interface
*/
cvox.MathJaxInterface = function() { };
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/mathjax_interface.js | JavaScript | unknown | 2,208 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Defines a Tts interface.
*
* All TTS engines in ChromeVox conform to the this interface.
*
*/
goog.provide('cvox.QueueMode');
goog.provide('cvox.TtsCa... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/interface/tts_interface.js | JavaScript | unknown | 3,451 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Testing implementation for earcons.
*
*/
goog.provide('cvox.TestEarcons');
goog.require('cvox.AbstractEarcons');
goog.require('cvox.HostFactory');
/**... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/testing/earcons.js | JavaScript | unknown | 566 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Testing implementation of host.js.
*
*/
goog.provide('cvox.TestHost');
goog.require('cvox.AbstractHost');
goog.require('cvox.HostFactory');
/**
* @co... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/testing/host.js | JavaScript | unknown | 547 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Testing stub for MathJax.
*
*/
goog.provide('cvox.TestMathJax');
goog.require('cvox.AbstractMathJax');
goog.require('cvox.HostFactory');
/**
* @cons... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/testing/mathjax.js | JavaScript | unknown | 1,218 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Testing implementation of TTS.
*
*/
goog.provide('cvox.TestTts');
goog.require('cvox.AbstractTts');
goog.require('cvox.DomUtil');
goog.require('cvox.Ho... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/host/testing/tts.js | JavaScript | unknown | 4,076 |
{
"automation": {
"desktop": true
},
"background": {
"page": "cvox2/background/background.html"
},
"content_scripts": [ {
"all_frames": true,
"exclude_globs": [ "devtools://*" ],
"run_at": "document_start",
"js": [ "chromevox/injected/shadydom_loader.js", "chromeVoxChr... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/manifest.json.jinja2 | Jinja | unknown | 1,417 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Base class for all speech rule stores.
*
* The base rule store implements some basic functionality that is common to
* most speech rule stores.
*/
goo... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/base_rule_store.js | JavaScript | unknown | 12,637 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Rule stores for the basic components of math expressions:
* Unicode symbols and functions.
*
* The idea of these stores is to provide a more effic... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/math_simple_store.js | JavaScript | unknown | 5,474 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Rule store for math syntax tree nodes.
*/
goog.provide('cvox.MathStore');
goog.require('cvox.AbstractTts');
goog.require('cvox.BaseRuleStore');
goog.req... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/math_store.js | JavaScript | unknown | 8,408 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Speech rule store for mathml and mathjax trees.
*/
goog.provide('cvox.MathmlStore');
goog.require('cvox.MathStore');
/**
* Rule initialization.
* @c... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/mathml_store.js | JavaScript | unknown | 1,253 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Speech rules for mathml and mathjax nodes.
*/
goog.provide('cvox.MathmlStoreRules');
goog.require('cvox.MathStore');
goog.require('cvox.MathmlStore');
g... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/mathml_store_rules.js | JavaScript | unknown | 31,363 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Utility functions for mathml and mathjax rule store.
*/
goog.provide('cvox.MathmlStoreUtil');
goog.require('cvox.MathUtil');
goog.require('cvox.Traverse... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/mathml_store_util.js | JavaScript | unknown | 5,125 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview An interface definition of a speech rule.
*
* A speech rule is a data structure along with supporting methods that
* stipulates how to transform a tree ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/speech_rule.js | JavaScript | unknown | 10,624 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Implementation of the speech rule engine.
*
* The speech rule engine chooses and applies speech rules. Rules are chosen
* from a set of rule stores wrt.... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/speech_rule_engine.js | JavaScript | unknown | 11,921 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Interface definition for a class which evaluates speech rules.
*
* A speech rule evaluator knows how to generate a description given a node and
* a spee... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/speech_rule_evaluator.js | JavaScript | unknown | 760 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Classes for custom functions for the speech rule engine.
*
*/
goog.provide('cvox.SpeechRuleFunctions');
goog.provide('cvox.SpeechRuleFunctions.ContextFu... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/speech_rule_functions.js | JavaScript | unknown | 3,418 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Base interface for all speech rule stores.
*
* A speech rule store exposes the minimal set of methods a speech rule
* author needs for a particular mark... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/speech_rule_store.js | JavaScript | unknown | 2,492 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview General utility functions for rule stores.
*/
goog.provide('cvox.StoreUtil');
/**
* Count list of nodes and concatenate this with the context string.
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/speech_rules/store_util.js | JavaScript | unknown | 870 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN_INCLUDE([
'//chrome/browser/resources/chromeos/accessibility/common/testing/' +
'assert_additions.js'
]);
GEN_INCLUDE([
'//chrome/browser/resources/chromeos/a... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/testing/chromevox_unittest_base.js | JavaScript | unknown | 6,820 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview The spoken list builder. Used in test cases.
*/
goog.provide('cvox.SpokenListBuilder');
goog.require('cvox.QueueMode');
/**
* Builds a spoken list.
*... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/testing/spoken_list_builder.js | JavaScript | unknown | 1,518 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Testing stub for messages.
*/
goog.provide('TestMsgs');
goog.require('Msgs');
goog.require('TestMessages');
/**
* @constructor
*/
TestMsgs = functio... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/testing/test_msgs.js | JavaScript | unknown | 1,542 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
goog.provide('cvox.ChromeVoxTester');
goog.require('TestMsgs');
goog.require('cvox.AbstractEarcons');
goog.require('cvox.BrailleInterface');
goog.require('cvox.ChromeVoxEventW... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/testing/tester.js | JavaScript | unknown | 3,946 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A base class for walkers that have a concept of lowest-level
* node. Base classes must override the stopNodeDescent method to define
* what a lowest-leve... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/abstract_node_walker.js | JavaScript | unknown | 3,254 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview An abstract class for walking at the sub-element level.
* For example, walking at the sentence, word, or character level.
* This class is an adapter arou... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/abstract_selection_walker.js | JavaScript | unknown | 5,058 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview An interface for an ordered collection of walkers, called a
* shifter.
*/
goog.provide('cvox.AbstractShifter');
goog.require('cvox.AbstractWalker');
g... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/abstract_shifter.js | JavaScript | unknown | 4,445 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview An interface (and partial implementation) for the basic
* traversal through some piece of the dom.
* For each different ordered (either in dom or by any ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/abstract_walker.js | JavaScript | unknown | 7,866 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A JavaScript class for walking the leaf nodes of the dom.
* This is a bare class that tries to limit dependencies. It should only be used
* when traversa... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/bare_object_walker.js | JavaScript | unknown | 919 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking one character at a time.
*/
goog.provide('cvox.CharacterWalker');
goog.require('cvox.AbstractSelectionWalker');
goog.require('cvox.... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/character_walker.js | JavaScript | unknown | 1,068 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking columns.
*/
goog.provide('cvox.ColumnWalker');
goog.require('cvox.TableWalker');
/**
* @constructor
* @extends {cvox.TableWalke... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/column_walker.js | JavaScript | unknown | 670 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking "groups". Groups, intuitively, are logical
* collections of dom elements. See AbstractNodeWalker and the
* stopNodeDescent() method h... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/group_walker.js | JavaScript | unknown | 1,348 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A JavaScript class for walking lines consisting of one or more
* clickable nodes.
*/
goog.provide('cvox.LayoutLineWalker');
goog.require('cvox.Abstrac... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/layout_line_walker.js | JavaScript | unknown | 7,083 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking mathml expressions.
*/
goog.provide('cvox.MathShifter');
goog.require('cvox.AbstractShifter');
goog.require('cvox.BrailleUtil');
goo... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/math_shifter.js | JavaScript | unknown | 4,168 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A JavaScript class for walking the leaf nodes of the dom.
*/
goog.provide('cvox.ObjectWalker');
goog.require('cvox.AbstractNodeWalker');
goog.require('... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/object_walker.js | JavaScript | unknown | 1,268 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking rows.
*/
goog.provide('cvox.RowWalker');
goog.require('cvox.TableWalker');
/**
* @constructor
* @extends {cvox.TableWalker}
*/... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/row_walker.js | JavaScript | unknown | 649 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A JavaScript class for walking sentences.
*/
goog.provide('cvox.SentenceWalker');
goog.require('cvox.AbstractSelectionWalker');
goog.require('cvox.Trav... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/sentence_walker.js | JavaScript | unknown | 731 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A JavaScript class for walking lines.
*/
goog.provide('cvox.StructuralLineWalker');
goog.require('cvox.AbstractSelectionWalker');
goog.require('cvox.Br... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/structural_line_walker.js | JavaScript | unknown | 2,157 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Walkers to traverse a table.
*/
goog.provide('cvox.TableShifter');
goog.require('cvox.AbstractShifter');
goog.require('cvox.ColumnWalker');
goog.requir... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/table_shifter.js | JavaScript | unknown | 3,508 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking tables.
* NOTE: This class has a very different interface than the other walkers.
* This means it does not lend itself easily to e.g.... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/table_walker.js | JavaScript | unknown | 12,778 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN_INCLUDE(['//ui/accessibility/extensions/chromevoxclassic/testing/chromevox_unittest_base.js']);
/**
* Base class for walker test fixtures.
* @constructor
* @extends {Ch... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/walker_unittest_base.js | JavaScript | unknown | 7,980 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking one word at a time.
*/
goog.provide('cvox.WordWalker');
goog.require('cvox.AbstractSelectionWalker');
goog.require('cvox.TraverseCo... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/chromevoxclassic/walkers/word_walker.js | JavaScript | unknown | 705 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var stream = null;
var ui = null;
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
console.log('Got message');
console.log(request);
if (request... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/color_contrast_companion/background.js | JavaScript | unknown | 2,558 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var DEFAULT_SCHEME = 3;
var MAX_SCHEME = 5;
function $(id) {
return document.getElementById(id);
}
function getEnabled() {
var result = localStorage['enabled'];
if (res... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/color_contrast_companion/common.js | JavaScript | unknown | 2,359 |
<head>
<title>
Color Contrast Companion
</title>
<style>
.logo {
float: left;
}
h1 {
padding-top: 24px;
}
body, div, p {
font-family: system-ui, sans-serif;
font-size: 14pt;
line-height: 1.5;
}
p {
margin: 24px 0;
}
body {
backgroun... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/color_contrast_companion/help.html | HTML | unknown | 4,454 |
<head>
<style>
#top_panel {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
height: 96px;
display: flex;
}
#img_panel {
cursor: crosshair;
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
top: 96px;
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/color_contrast_companion/ui.html | HTML | unknown | 2,887 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var maxScale = 32;
var scale = 4;
var fgtoggle = true;
var fgcolor = null;
var bgcolor = null;
var srcImage = null;
var imageData = null;
var prevScale = 1;
let close = docum... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/color_contrast_companion/ui.js | JavaScript | unknown | 7,713 |
/* Copyright 2015 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
/* main controls */
th, td {
text-align: center;
}
table {
margin: 0 auto;
}
table input {
margin-left: 5px;
}
table input[type="button"] {
margin-left: 10px;
}
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/res/setup.css | CSS | unknown | 2,173 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
importScripts('./common.js', './cvd_type.js', './storage.js');
Storage.initialize();
class Background {
constructor() {
this.init_();
}
/**
* @param {function(ch... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/background.js | JavaScript | unknown | 3,030 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(wnwen): Move most of these functions to their own page rather than
// common, which should be shared with content script.
class Common {
/**
* TODO(wnwen): Re... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/common.js | JavaScript | unknown | 1,107 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class CVD {
constructor() {
/** @private {number} */
this.curDelta = 0;
/** @private {number} */
this.curSeverity = 0;
/** @private {!CvdType} */
this... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/cvd.js | JavaScript | unknown | 11,957 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @enum {string} */
const CvdType = {
PROTANOMALY: 'PROTANOMALY',
DEUTERANOMALY: 'DEUTERANOMALY',
TRITANOMALY: 'TRITANOMALY',
};
/** @typedef {!CvdType|Storage.INVALID... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/cvd_type.js | JavaScript | unknown | 647 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** Class that represents a 3x3 matrix. */
class Matrix3x3 {
/** @private */
constructor() {
/** @private {!Array<!Array<number>>} */
this.data_ = [[0, 0, 0], [0, 0... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/matrix.js | JavaScript | unknown | 3,947 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN_INCLUDE(['matrix.js']);
GEN_INCLUDE(['../../webstore_extension_test_base.js']);
/** Test fixture for matrix.js. */
Matrix3x3UnitTest = class extends WebstoreExtensionTest... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/matrix_test.js | JavaScript | unknown | 2,966 |
<!doctype html>
<html>
<head>
<!-- TODO(wnwen): Investigate using widgets from ui/webui/resources -->
<link rel="stylesheet" type="text/css" href="../res/setup.css">
<style type="text/css">
* {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
</style>
<script type="text/javascript" src="common.js"></sc... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/popup.html | HTML | unknown | 3,260 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class Popup {
constructor() {
this.site;
/**
* Save previous state of setup parameters for use in the event of a
* canceled setup.
* @type {{type: !Cv... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/popup.js | JavaScript | unknown | 13,526 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Class to handle both storing values using the chrome.storage API, and
* fetching/caching values that have been stored that way.
*/
class Storage {
/** @private */
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/storage.js | JavaScript | unknown | 8,422 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN_INCLUDE(['cvd_type.js', 'storage.js']);
GEN_INCLUDE([
'../../webstore_extension_test_base.js',
'//chrome/browser/resources/chromeos/accessibility/common/testing/' ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/colorenhancer/src/storage_test.js | JavaScript | unknown | 9,677 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class Background {
constructor() {
this.init_();
}
/**
* @param {function(chrome.tabs.Tab)} tabCallback A function that performs
* some action on each tab.... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/background.js | JavaScript | unknown | 2,853 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function $(id) {
return document.getElementById(id);
}
function siteFromUrl(url) {
return new URL(url).hostname;
}
function isDisallowedUrl(url) {
return url.startsWith... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/common.js | JavaScript | unknown | 361 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class HighContrast {
constructor() {
/** @type {string} */
this.mode;
/** @type {boolean} */
this.enabled = false;
/** @type {string} */
this.scheme =... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/highcontrast.js | JavaScript | unknown | 13,534 |
<!doctype html>
<html>
<head>
<style type="text/css">
html {
border-radius: 6px;
}
body {
width: 18em;
padding: 0.75em;
border-radius: 6px;
}
* {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
#title {
outline: none;
}
.kb {
font-weight: normal;
font-style: italic;
font-size: 10pt;
}
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/popup.html | HTML | unknown | 2,131 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class Popup {
constructor() {
/** @type {string} */
this.site;
/** @type {string} */
this.key1;
/** @type {string} */
this.key2;
this.init();
... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/popup.js | JavaScript | unknown | 4,442 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @enum {number} */
const SchemeType = {
NORMAL: 0,
INCREASED_CONTRAST: 1,
GRAYSCALE: 2,
INVERTED_COLOR: 3,
INVERTED_GRAYSCALE: 4,
YELLOW_ON_BLACK: 5,
};
/**
* ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/storage.js | JavaScript | unknown | 5,344 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN_INCLUDE(['storage.js']);
GEN_INCLUDE([
'../webstore_extension_test_base.js',
'//chrome/browser/resources/chromeos/accessibility/common/testing/' +
'callbac... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/highcontrast/storage_test.js | JavaScript | unknown | 4,750 |
/* Copyright 2014 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
var ariaDescribedAt = '';
var longDesc = '';
/**
* This is called when the extension is first loaded, so that it can be
* immediately used in all already-open tabs. It's... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/longdesc/background.js | JavaScript | unknown | 2,178 |
/* Copyright 2014 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
body[showlongdescborders] img[longdesc] {
border: 8px groove #99f;
}
| Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/longdesc/border.css | CSS | unknown | 219 |
/* Copyright 2014 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
var borderColor;
var borderStyle;
var borderWidth;
chrome.storage.onChanged.addListener(function(changes, namespace) {
if (changes.addBorder.newValue) {
addBorders();... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/longdesc/lastRightClick.js | JavaScript | unknown | 1,886 |
<!doctype html>
<html>
<body>
<h1 i18n-content="longdesc_options"></h1>
<br>
<label>
<input type="checkbox" id="border">
<span i18n-content="longdesc_add_border_checkbox"></span>
</label>
<script src="options.js"></script>
</body>
</html>
<label for="onjump_anim" i18n-content="caret_browsing_animation... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/longdesc/options.html | HTML | unknown | 331 |
/* Copyright 2014 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
// Saves options to chrome.storage
function save_options() {
var border = document.getElementById('border').checked;
chrome.storage.sync.set({
addBorder: border
},... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/longdesc/options.js | JavaScript | unknown | 1,302 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** Generic parts of the test fixture for webstore extension tests. */
WebstoreExtensionTest = class extends testing.Test {
/** @override */
testGenCppIncludes() {
GEN(... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/testing/webstore_extension_test_base.js | JavaScript | unknown | 528 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** Generic parts of the test fixture for webstore extension tests. */
WebstoreExtensionTest = class extends testing.Test {
/** @override */
testGenCppIncludes() {
GEN(... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/extensions/webstore_extension_test_base.js | JavaScript | unknown | 528 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_action_data_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<ax::mojom::AXActionDataDataView, ui::AXActionData>::Read(
ax:... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_action_data_mojom_traits.cc | C++ | unknown | 1,642 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_ACTION_DATA_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_ACTION_DATA_MOJOM_TRAITS_H_
#include "ui/accessibility/ax_action_data.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_action_data_mojom_traits.h | C++ | unknown | 2,787 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_action_data_mojom_traits.h"
#include "base/strings/utf_string_conversions.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_action_data_mojom_traits_unittest.cc | C++ | unknown | 2,116 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_assistant_structure_mojom_traits.h"
#include "mojo/public/cpp/base/string16_mojom_traits.h"
#include "ui/gfx/geometry/mojom/geometry_mojom_... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_assistant_structure_mojom_traits.cc | C++ | unknown | 1,968 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_ASSISTANT_STRUCTURE_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_ASSISTANT_STRUCTURE_MOJOM_TRAITS_H_
#include <memory>
#include "third_... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_assistant_structure_mojom_traits.h | C++ | unknown | 3,147 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_event_intent_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<ax::mojom::EventIntentDataView, ui::AXEventIntent>::Read(
ax... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_intent_mojom_traits.cc | C++ | unknown | 600 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_TRAITS_H_
#include "ui/accessibility/ax_event_intent.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_intent_mojom_traits.h | C++ | unknown | 1,089 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_event_intent_mojom_traits.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_intent_mojom_traits_unittest.cc | C++ | unknown | 1,772 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_event_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<ax::mojom::AXEventDataView, ui::AXEvent>::Read(
ax::mojom::AXEventD... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_mojom_traits.cc | C++ | unknown | 642 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_EVENT_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_EVENT_MOJOM_TRAITS_H_
#include <vector>
#include "ui/accessibility/ax_event.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_mojom_traits.h | C++ | unknown | 1,338 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_event_mojom_traits.h"
#include <vector>
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gmock/include/gmock/gmock-m... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_event_mojom_traits_unittest.cc | C++ | unknown | 1,988 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_mode_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<ax::mojom::AXModeDataView, ui::AXMode>::Read(
ax::mojom::AXModeDataV... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_mode_mojom_traits.cc | C++ | unknown | 792 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_MODE_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_MODE_MOJOM_TRAITS_H_
#include "ui/accessibility/ax_mode.h"
#include "ui/accessibility/... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_mode_mojom_traits.h | C++ | unknown | 762 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_mode_mojom_traits.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/access... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_mode_mojom_traits_unittest.cc | C++ | unknown | 711 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accessibility/mojom/ax_node_data_mojom_traits.h"
#include "base/containers/flat_map.h"
#include "ui/accessibility/mojom/ax_relative_bounds.mojom-shared.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/accessibility/mojom/ax_node_data_mojom_traits.cc | C++ | unknown | 4,088 |