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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java

Issue 2808383004: Refactor and send voice interaction structure (Closed)
Patch Set: fix window build Created 3 years, 8 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index e2eebabac8082e7b55b7c1250e9cf4cf6da5d887..ee90f83385f7319444f5435bd7196348b6c1b457 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -33,7 +33,6 @@ import org.chromium.content_public.browser.SmartClipCallback;
import org.chromium.content_public.browser.WebContents;
import org.chromium.content_public.browser.WebContentsObserver;
import org.chromium.ui.OverscrollRefreshHandler;
-import org.chromium.ui.accessibility.AXTextStyle;
import org.chromium.ui.base.EventForwarder;
import org.chromium.ui.base.WindowAndroid;
@@ -463,15 +462,12 @@ import java.util.UUID;
@CalledByNative
private static AccessibilitySnapshotNode createAccessibilitySnapshotNode(int parentRelativeLeft,
int parentRelativeTop, int width, int height, boolean isRootNode, String text,
- int color, int bgcolor, float size, int textStyle, String className) {
+ int color, int bgcolor, float size, boolean bold, boolean italic, boolean underline,
+ boolean lineThrough, String className) {
AccessibilitySnapshotNode node = new AccessibilitySnapshotNode(text, className);
// if size is smaller than 0, then style information does not exist.
if (size >= 0.0) {
- boolean bold = (textStyle & AXTextStyle.text_style_bold) > 0;
- boolean italic = (textStyle & AXTextStyle.text_style_italic) > 0;
- boolean underline = (textStyle & AXTextStyle.text_style_underline) > 0;
- boolean lineThrough = (textStyle & AXTextStyle.text_style_line_through) > 0;
node.setStyle(color, bgcolor, size, bold, italic, underline, lineThrough);
}
node.setLocationInfo(parentRelativeLeft, parentRelativeTop, width, height, isRootNode);
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698