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

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 commet 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
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 struct AXViewStructure {
22 gfx::Rect rect;
23 base::string16 text;
24 float text_size;
25 int32_t color;
26 int32_t bgcolor;
27 bool bold;
28 bool italic;
29 bool underline;
30 bool line_through;
31
32 bool has_selection;
33 int32_t start_selection;
34 int32_t end_selection;
35
36 std::string class_name;
37 std::vector<std::unique_ptr<AXViewStructure>> children;
38
39 AXViewStructure();
40 ~AXViewStructure();
41 DISALLOW_COPY_AND_ASSIGN(AXViewStructure);
42 };
43
44 void GetAXViewStructure(
45 WebContents* web_contents,
46 const base::Callback<void(const std::unique_ptr<AXViewStructure>)>&
47 callback);
48
49 } // namespace android
50
51 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_VOICE_INTERACTION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698