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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java

Issue 1137393003: Add style information to the snapshot node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn support Created 5 years, 7 months 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/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java b/content/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java
index 2bb45f742548b64c36cbe8256ae22d2d1a02a382..98466c2b6274576aa883e628e965fa2e710a85ae 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/AccessibilitySnapshotNode.java
@@ -18,13 +18,17 @@ import java.util.ArrayList;
public class AccessibilitySnapshotNode {
public int x, y, scrollX, scrollY, width, height;
+ public int color, bgcolor;
+ public boolean bold, italic, underline, lineThrough;
+ public float textSize;
public String text;
public String className;
public ArrayList<AccessibilitySnapshotNode> children =
new ArrayList<AccessibilitySnapshotNode>();
public AccessibilitySnapshotNode(int x, int y, int scrollX, int scrollY, int width,
- int height, String text, String className) {
+ int height, String text, int color, int bgcolor, float textSize, boolean bold,
+ boolean italic, boolean underline, boolean lineThrough, String className) {
this.x = x;
this.y = y;
this.scrollX = scrollX;
@@ -32,6 +36,13 @@ public class AccessibilitySnapshotNode {
this.width = width;
this.height = height;
this.text = text;
+ this.color = color;
+ this.bgcolor = bgcolor;
+ this.textSize = textSize;
+ this.bold = bold;
+ this.italic = italic;
+ this.underline = underline;
+ this.lineThrough = lineThrough;
this.className = className;
}

Powered by Google App Engine
This is Rietveld 408576698