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

Side by Side Diff: chrome/browser/speech/tts_controller_impl.h

Issue 434083003: Remove the dependency of Extension API from tts_chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the nits Created 6 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
« no previous file with comments | « chrome/browser/speech/tts_controller.h ('k') | chrome/browser/speech/tts_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 const std::string& error_message) OVERRIDE; 36 const std::string& error_message) OVERRIDE;
37 virtual void GetVoices(Profile* profile, 37 virtual void GetVoices(Profile* profile,
38 std::vector<VoiceData>* out_voices) OVERRIDE; 38 std::vector<VoiceData>* out_voices) OVERRIDE;
39 virtual void RetrySpeakingQueuedUtterances() OVERRIDE; 39 virtual void RetrySpeakingQueuedUtterances() OVERRIDE;
40 virtual void VoicesChanged() OVERRIDE; 40 virtual void VoicesChanged() OVERRIDE;
41 virtual void AddVoicesChangedDelegate( 41 virtual void AddVoicesChangedDelegate(
42 VoicesChangedDelegate* delegate) OVERRIDE; 42 VoicesChangedDelegate* delegate) OVERRIDE;
43 virtual void RemoveVoicesChangedDelegate( 43 virtual void RemoveVoicesChangedDelegate(
44 VoicesChangedDelegate* delegate) OVERRIDE; 44 VoicesChangedDelegate* delegate) OVERRIDE;
45 virtual void SetTtsEngineDelegate(TtsEngineDelegate* delegate) OVERRIDE; 45 virtual void SetTtsEngineDelegate(TtsEngineDelegate* delegate) OVERRIDE;
46 virtual TtsEngineDelegate* GetTtsEngineDelegate() OVERRIDE;
46 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) OVERRIDE; 47 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) OVERRIDE;
47 virtual int QueueSize() OVERRIDE; 48 virtual int QueueSize() OVERRIDE;
48 49
49 protected: 50 protected:
50 TtsControllerImpl(); 51 TtsControllerImpl();
51 virtual ~TtsControllerImpl(); 52 virtual ~TtsControllerImpl();
52 53
53 private: 54 private:
54 // Get the platform TTS implementation (or injected mock). 55 // Get the platform TTS implementation (or injected mock).
55 TtsPlatformImpl* GetPlatformImpl(); 56 TtsPlatformImpl* GetPlatformImpl();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // dependency injection. 92 // dependency injection.
92 TtsPlatformImpl* platform_impl_; 93 TtsPlatformImpl* platform_impl_;
93 94
94 // The delegate that processes TTS requests with user-installed extensions. 95 // The delegate that processes TTS requests with user-installed extensions.
95 TtsEngineDelegate* tts_engine_delegate_; 96 TtsEngineDelegate* tts_engine_delegate_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl); 98 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl);
98 }; 99 };
99 100
100 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 101 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_controller.h ('k') | chrome/browser/speech/tts_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698