From dd6f87ca7a1db66ad422b457372b871a9d984709 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Mon, 14 Oct 2019 05:20:47 +0000 Subject: [PATCH] Trivial: Update doc references to ax_enums.idl to reflect move to .mojom. The ax_enums file has moved from .idl to .mojom. This change fixes all current outdates references to old .idl filename. R=aboxhall,dmazzoni,dtseng Change-Id: I31069ebfec2a37432a9c868c5758734b8b32d1c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1855062 Reviewed-by: David Tseng Commit-Queue: Chris Hall Cr-Commit-Position: refs/heads/master@{#705468} --- .../chromeos/chromevox/chromevox/background/kbexplorer.js | 4 ++-- docs/accessibility/overview.md | 4 ++-- extensions/common/api/automation.idl | 2 +- ui/accessibility/ax_action_data.h | 2 +- .../chromevoxclassic/cvox2/background/background.js | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js index ee35c60f18dfd1..f99f3e17151c0b 100644 --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js @@ -199,8 +199,8 @@ cvox.KbExplorer.onBrailleKeyEvent = function(evt) { /** * Handles accessibility gestures from the touch screen. - * @param {string} gesture The gesture to handle, based on the ax::mojom::Gesture enum - * defined in ui/accessibility/ax_enums.idl + * @param {string} gesture The gesture to handle, based on the + * ax::mojom::Gesture enum defined in ui/accessibility/ax_enums.mojom */ cvox.KbExplorer.onAccessibilityGesture = function(gesture) { cvox.KbExplorer.maybeClose_(); diff --git a/docs/accessibility/overview.md b/docs/accessibility/overview.md index 380f2a81f867eb..d11a2f0807f1d0 100644 --- a/docs/accessibility/overview.md +++ b/docs/accessibility/overview.md @@ -505,7 +505,7 @@ gives extension JavaScript access to the accessibility tree, events, and actions. This API is implemented in C++ by [AutomationInternalCustomBindings], which is renderer-side code, and in JavaScript by the [automation API]. The API is defined by [automation.idl], which must be kept synchronized with -[ax_enums.idl]. +[ax_enums.mojom]. [AccessibilityHostMsg_EventParams]: https://cs.chromium.org/chromium/src/content/common/accessibility_messages.h?sq=package:chromium&l=75 [AutomationInternalCustomBindings]: https://cs.chromium.org/chromium/src/extensions/renderer/api/automation/automation_internal_custom_bindings.h @@ -530,6 +530,6 @@ is defined by [automation.idl], which must be kept synchronized with [WebAXObject]: https://cs.chromium.org/chromium/src/third_party/blink/public/web/web_ax_object.h [automation API]: https://cs.chromium.org/chromium/src/chrome/renderer/resources/extensions/automation [automation.idl]: https://cs.chromium.org/chromium/src/extensions/common/api/automation.idl -[ax_enums.idl]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_enums.idl +[ax_enums.mojom]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_enums.mojom [chrome.automation API]: https://developer.chrome.com/extensions/automation [webui-js]: https://cs.chromium.org/chromium/src/ui/webui/resources/js/cr/ui/ diff --git a/extensions/common/api/automation.idl b/extensions/common/api/automation.idl index 4f07a25dc800a3..ae0274536e2df0 100644 --- a/extensions/common/api/automation.idl +++ b/extensions/common/api/automation.idl @@ -8,7 +8,7 @@ // used to programmatically interact with a page by examining names, roles, and // states, listening for events, and performing actions on nodes. [nocompile] namespace automation { - // Keep the following enums in sync with 'ui/accessibility/ax_enums.idl'. + // Keep the following enums in sync with 'ui/accessibility/ax_enums.mojom'. // They are kept here purely for extension docs generation. // Possible events fired on an $(ref:automation.AutomationNode). diff --git a/ui/accessibility/ax_action_data.h b/ui/accessibility/ax_action_data.h index 56ec21d2c2c696..366855e3f32332 100644 --- a/ui/accessibility/ax_action_data.h +++ b/ui/accessibility/ax_action_data.h @@ -25,7 +25,7 @@ struct AX_EXPORT AXActionData { // This is a simple serializable struct. All member variables should be // public and copyable. - // See the ax::mojom::Action enums in ax_enums.idl for explanations of which + // See the ax::mojom::Action enums in ax_enums.mojom for explanations of which // parameters apply. // The action to take. diff --git a/ui/accessibility/extensions/chromevoxclassic/cvox2/background/background.js b/ui/accessibility/extensions/chromevoxclassic/cvox2/background/background.js index 596486da4fdecd..8652cb751a6877 100644 --- a/ui/accessibility/extensions/chromevoxclassic/cvox2/background/background.js +++ b/ui/accessibility/extensions/chromevoxclassic/cvox2/background/background.js @@ -167,7 +167,7 @@ Background.ISSUE_URL = 'https://code.google.com/p/chromium/issues/entry?' + 'description='; /** - * Map from gesture names (AXGesture defined in ui/accessibility/ax_enums.idl) + * Map from gesture names (AXGesture defined in ui/accessibility/ax_enums.mojom) * to commands when in Classic mode. * @type {Object} * @const @@ -183,7 +183,7 @@ Background.GESTURE_CLASSIC_COMMAND_MAP = { }; /** - * Map from gesture names (AXGesture defined in ui/accessibility/ax_enums.idl) + * Map from gesture names (AXGesture defined in ui/accessibility/ax_enums.mojom) * to commands when in Classic mode. * @type {Object} * @const @@ -1143,7 +1143,7 @@ Background.prototype = { /** * Handles accessibility gestures from the touch screen. * @param {string} gesture The gesture to handle, based on the AXGesture enum - * defined in ui/accessibility/ax_enums.idl + * defined in ui/accessibility/ax_enums.mojom * @private */ onAccessibilityGesture_: function(gesture) { @@ -1164,7 +1164,7 @@ Background.prototype = { * Handles accessibility gestures from the touch screen when in CLASSIC * mode, by forwarding a command to the content script. * @param {string} gesture The gesture to handle, based on the AXGesture enum - * defined in ui/accessibility/ax_enums.idl + * defined in ui/accessibility/ax_enums.mojom * @return {boolean} True if this gesture was handled. * @private */