Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: content/browser/accessibility/browser_accessibility_manager.cc

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)
Patch Set: Clarified maxSize Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_manager.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager.cc b/content/browser/accessibility/browser_accessibility_manager.cc
index c8ede0dc6c0bcbe98f485135925885c18aa9f561..15e4bd22f23fab3640189a5a700969005ac26524 100644
--- a/content/browser/accessibility/browser_accessibility_manager.cc
+++ b/content/browser/accessibility/browser_accessibility_manager.cc
@@ -604,6 +604,19 @@ void BrowserAccessibilityManager::DoDefaultAction(
delegate_->AccessibilityPerformAction(action_data);
}
+void BrowserAccessibilityManager::GetImageData(
+ const BrowserAccessibility& node,
+ const gfx::Size& max_size) {
+ if (!delegate_)
+ return;
+
+ ui::AXActionData action_data;
+ action_data.action = ui::AX_ACTION_GET_IMAGE_DATA;
+ action_data.target_node_id = node.GetId();
+ action_data.target_rect = gfx::Rect(gfx::Point(), max_size);
+ delegate_->AccessibilityPerformAction(action_data);
+}
+
void BrowserAccessibilityManager::Increment(
const BrowserAccessibility& node) {
if (!delegate_)
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.h ('k') | content/renderer/accessibility/blink_ax_tree_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698