Commit 3b4de370 authored by Muyuan Li's avatar Muyuan Li Committed by Commit Bot

fix scale issue in voice interaction context.

BUG=b:64029031
TEST=None

Change-Id: I3b14f8f6f2fc3867548578937334a288b33e06ed
Reviewed-on: https://chromium-review.googlesource.com/597169Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarLuis Hector Chavez <lhchavez@chromium.org>
Commit-Queue: Muyuan Li <muyuanli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491536}
parent f536c4c8
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#include "ui/accessibility/platform/ax_snapshot_node_android_platform.h" #include "ui/accessibility/platform/ax_snapshot_node_android_platform.h"
#include "ui/aura/window.h" #include "ui/aura/window.h"
#include "ui/compositor/dip_util.h"
#include "ui/snapshot/snapshot.h" #include "ui/snapshot/snapshot.h"
#include "ui/wm/public/activation_client.h" #include "ui/wm/public/activation_client.h"
#include "url/gurl.h" #include "url/gurl.h"
...@@ -173,10 +174,11 @@ void ArcVoiceInteractionArcHomeService::GetVoiceInteractionStructure( ...@@ -173,10 +174,11 @@ void ArcVoiceInteractionArcHomeService::GetVoiceInteractionStructure(
return; return;
} }
web_contents->RequestAXTreeSnapshot( web_contents->RequestAXTreeSnapshot(base::Bind(
base::Bind(&RequestVoiceInteractionStructureCallback, callback, &RequestVoiceInteractionStructureCallback, callback,
browser->window()->GetBounds(), ui::ConvertRectToPixel(browser->window()->GetNativeWindow()->layer(),
web_contents->GetLastCommittedURL().spec())); browser->window()->GetBounds()),
web_contents->GetLastCommittedURL().spec()));
} }
void ArcVoiceInteractionArcHomeService::OnVoiceInteractionOobeSetupComplete() { void ArcVoiceInteractionArcHomeService::OnVoiceInteractionOobeSetupComplete() {
......
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