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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/tts/arc_tts_service.cc
diff --git a/components/arc/tts/arc_tts_service.cc b/components/arc/tts/arc_tts_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..08f55f588da8ee28b641a3ec1a30ef257727f4fc
--- /dev/null
+++ b/components/arc/tts/arc_tts_service.cc
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/arc/tts/arc_tts_service.h"
+
+#include "base/logging.h"
+#include "components/arc/arc_bridge_service.h"
+
+namespace arc {
+
+ArcTtsService::ArcTtsService(ArcBridgeService* bridge_service)
+ : ArcService(bridge_service) {
+ arc_bridge_service()->tts()->AddObserver(this);
+}
+
+ArcTtsService::~ArcTtsService() {
+ arc_bridge_service()->tts()->RemoveObserver(this);
+}
+
+void ArcTtsService::OnInstanceReady() {
+ mojom::TtsInstance* tts_instance = arc_bridge_service()->tts()->instance();
+ if (!tts_instance) {
+ LOG(ERROR) << "OnTtsInstanceReady called, "
+ << "but no tts instance found";
+ return;
+ }
+}
+
+} // namespace arc
« 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