Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CHROME_BROWSER_CHROMEOS_ARC_ARC_TTS_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_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, | |
|
hidehiko
2016/08/02 03:56:20
Could you add brief comment about what is the resp
David Tseng
2016/08/02 16:32:18
Done.
| |
| 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 // mojom::TtsHost overrides: | |
| 29 void OnTtsEvent(uint32_t id, | |
| 30 mojom::TtsEventType event_type, | |
| 31 uint32_t char_index, | |
| 32 const mojo::String& error_msg) override; | |
| 33 | |
| 34 private: | |
| 35 mojo::Binding<mojom::TtsHost> binding_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(ArcTtsService); | |
| 38 }; | |
| 39 | |
| 40 } // namespace arc | |
| 41 | |
| 42 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_TTS_SERVICE_H_ | |
| OLD | NEW |