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

Side by Side Diff: content/public/browser/voice_interaction_helper.h

Issue 2768093005: Send voice interaction structure from cros to Arc. (Closed)
Patch Set: address review comments 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/voice_interaction_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_VOICE_INTERACTION_HELPER_H_
6 #define CONTENT_PUBLIC_BROWSER_VOICE_INTERACTION_HELPER_H_
7
8 #include <stdint.h>
9
10 #include <memory>
11 #include <vector>
12
13 #include "base/callback.h"
14 #include "base/strings/string16.h"
15 #include "ui/gfx/geometry/rect.h"
16
17 namespace content {
18
19 class WebContents;
20
21 // An intermediate representation of the Accessibility snapshot
22 // for voice interaction. The field names are kept consistent
23 // with AccessibilitySnapshotNode.java.
24 struct AXViewStructure {
25 AXViewStructure();
26 ~AXViewStructure();
27
28 gfx::Rect rect;
29 base::string16 text;
30 float text_size;
31 int32_t color;
32 int32_t bgcolor;
33 bool bold;
34 bool italic;
35 bool underline;
36 bool line_through;
37
38 bool has_selection;
39 int32_t start_selection;
40 int32_t end_selection;
41
42 std::string class_name;
43 std::vector<std::unique_ptr<AXViewStructure>> children;
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(AXViewStructure);
47 };
48
49 void GetAXViewStructure(
Avi (use Gerrit) 2017/04/04 20:11:01 I don't understand this file. It's named "voice i
Muyuan 2017/04/04 20:43:49 The idea is to share the code between Android Chro
50 WebContents* web_contents,
51 const base::Callback<void(std::unique_ptr<AXViewStructure>)>& callback);
52
53 } // namespace android
54
55 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_VOICE_INTERACTION_HELPER_H_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/voice_interaction_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698