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

Side by Side Diff: components/arc/tts/arc_tts_service.h

Issue 2180263002: Host side implementation of ARC tts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 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 COMPONENTS_ARC_TTS_ARC_TTS_SERVICE_H_
6 #define COMPONENTS_ARC_TTS_ARC_TTS_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "components/arc/arc_service.h"
10 #include "components/arc/common/tts.mojom.h"
11 #include "components/arc/instance_holder.h"
12 #include "mojo/public/cpp/bindings/binding.h"
13
14 namespace arc {
15
16 class ArcBridgeService;
17
18 class ArcTtsService : public ArcService,
19 public InstanceHolder<mojom::TtsInstance>::Observer,
20 public mojom::TtsHost {
21 public:
22 explicit ArcTtsService(ArcBridgeService* bridge_service);
23 ~ArcTtsService() override;
24
25 // InstanceHolder<mojom::TtsInstance>::Observer overrides:
26 void OnInstanceReady() override;
27
28 // TtsHost overrides:
29 void OnTtsEvent(uint32_t utterance_id,
30 mojom::TtsEventType event_type) override;
31
32 private:
33 mojo::Binding<mojom::TtsHost> binding_;
34
35 DISALLOW_COPY_AND_ASSIGN(ArcTtsService);
36 };
37
38 } // namespace arc
39
40 #endif // COMPONENTS_ARC_TTS_ARC_TTS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698