Commit e2398c2c authored by Anastasia Helfinstein's avatar Anastasia Helfinstein Committed by Commit Bot

[Switch Access] Rename preference class for consistency

This is a pure refactor with no functional change.

TBR=akihiroota@chromium.org

AX-Relnotes: n/a.
Bug: None.
Change-Id: Ic729688e78abc23769b56f6aceb0aff4201e40c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2444433Reviewed-by: default avatarAnastasia Helfinstein <anastasi@google.com>
Commit-Queue: Anastasia Helfinstein <anastasi@google.com>
Cr-Commit-Position: refs/heads/master@{#813274}
parent 65a4bf00
...@@ -72,7 +72,7 @@ run_jsbundler("switch_access_copied_files") { ...@@ -72,7 +72,7 @@ run_jsbundler("switch_access_copied_files") {
"nodes/switch_access_node.js", "nodes/switch_access_node.js",
"nodes/tab_node.js", "nodes/tab_node.js",
"nodes/window_node.js", "nodes/window_node.js",
"preferences.js", "preference_manager.js",
"switch_access.js", "switch_access.js",
"switch_access_constants.js", "switch_access_constants.js",
"switch_access_predicate.js", "switch_access_predicate.js",
...@@ -147,7 +147,7 @@ js_type_check("closure_compile") { ...@@ -147,7 +147,7 @@ js_type_check("closure_compile") {
":metrics", ":metrics",
":modal_dialog_node", ":modal_dialog_node",
":navigation_manager", ":navigation_manager",
":preferences", ":preference_manager",
":slider_node", ":slider_node",
":switch_access", ":switch_access",
":switch_access_constants", ":switch_access_constants",
...@@ -361,7 +361,7 @@ js_library("basic_node") { ...@@ -361,7 +361,7 @@ js_library("basic_node") {
] ]
} }
js_library("preferences") { js_library("preference_manager") {
deps = [ ":switch_access_constants" ] deps = [ ":switch_access_constants" ]
externs_list = [ "$externs_path/settings_private.js" ] externs_list = [ "$externs_path/settings_private.js" ]
} }
...@@ -383,7 +383,7 @@ js_library("switch_access") { ...@@ -383,7 +383,7 @@ js_library("switch_access") {
":commands", ":commands",
":menu_manager", ":menu_manager",
":navigation_manager", ":navigation_manager",
":preferences", ":preference_manager",
":switch_access_constants", ":switch_access_constants",
"../common:constants", "../common:constants",
"../common:tree_walker", "../common:tree_walker",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/** /**
* Class to manage user preferences. * Class to manage user preferences.
*/ */
class SwitchAccessPreferences { class PreferenceManager {
/** @private */ /** @private */
constructor() { constructor() {
/** /**
...@@ -21,7 +21,7 @@ class SwitchAccessPreferences { ...@@ -21,7 +21,7 @@ class SwitchAccessPreferences {
// =============== Static Methods ============== // =============== Static Methods ==============
static initialize() { static initialize() {
SwitchAccessPreferences.instance = new SwitchAccessPreferences(); PreferenceManager.instance = new PreferenceManager();
} }
// =============== Private Methods ============== // =============== Private Methods ==============
......
...@@ -17,7 +17,7 @@ class SwitchAccess { ...@@ -17,7 +17,7 @@ class SwitchAccess {
Commands.initialize(); Commands.initialize();
KeyboardRootNode.startWatchingVisibility(); KeyboardRootNode.startWatchingVisibility();
SwitchAccessPreferences.initialize(); PreferenceManager.initialize();
}); });
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"switch_access/nodes/slider_node.js", "switch_access/nodes/slider_node.js",
"switch_access/nodes/tab_node.js", "switch_access/nodes/tab_node.js",
"switch_access/nodes/window_node.js", "switch_access/nodes/window_node.js",
"switch_access/preferences.js", "switch_access/preference_manager.js",
"switch_access/switch_access.js", "switch_access/switch_access.js",
"switch_access/switch_access_constants.js", "switch_access/switch_access_constants.js",
"switch_access/switch_access_predicate.js", "switch_access/switch_access_predicate.js",
......
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