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

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

Issue 2180263002: Host side implementation of ARC tts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Override 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 #include "components/arc/tts/arc_tts_service.h"
6
7 #include "base/logging.h"
8 #include "components/arc/arc_bridge_service.h"
9
10 namespace arc {
11
12 ArcTtsService::ArcTtsService(ArcBridgeService* bridge_service)
13 : ArcService(bridge_service) {
14 arc_bridge_service()->tts()->AddObserver(this);
15 }
16
17 ArcTtsService::~ArcTtsService() {
18 arc_bridge_service()->tts()->RemoveObserver(this);
19 }
20
21 void ArcTtsService::OnInstanceReady() {
22 mojom::TtsInstance* tts_instance = arc_bridge_service()->tts()->instance();
23 if (!tts_instance) {
24 LOG(ERROR) << "OnTtsInstanceReady called, "
25 << "but no tts instance found";
26 return;
27 }
28 }
29
30 } // namespace arc
OLDNEW
« components/arc/tts/arc_tts_service.h ('K') | « components/arc/tts/arc_tts_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698