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

Side by Side Diff: chrome/browser/chromeos/dbus/speech_synthesizer_client.cc

Issue 8400034: chromeos: Add a stub implementation for SensorsSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/dbus/speech_synthesizer_client.h ('k') | chrome/chrome_browser.gypi » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/dbus/speech_synthesizer_client.h" 5 #include "chrome/browser/chromeos/dbus/speech_synthesizer_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/system/runtime_environment.h" 9 #include "chrome/browser/chromeos/system/runtime_environment.h"
10 #include "dbus/bus.h" 10 #include "dbus/bus.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void SetSpeakProperties(const std::string& props) OVERRIDE {} 128 virtual void SetSpeakProperties(const std::string& props) OVERRIDE {}
129 virtual void StopSpeaking() OVERRIDE {} 129 virtual void StopSpeaking() OVERRIDE {}
130 virtual void IsSpeaking(IsSpeakingCallback callback) OVERRIDE { 130 virtual void IsSpeaking(IsSpeakingCallback callback) OVERRIDE {
131 callback.Run(false); 131 callback.Run(false);
132 } 132 }
133 133
134 private: 134 private:
135 DISALLOW_COPY_AND_ASSIGN(SpeechSynthesizerClientStubImpl); 135 DISALLOW_COPY_AND_ASSIGN(SpeechSynthesizerClientStubImpl);
136 }; 136 };
137 137
138 SpeechSynthesizerClient::SpeechSynthesizerClient() {
139 }
140
141 SpeechSynthesizerClient::~SpeechSynthesizerClient() {
142 }
143
138 // static 144 // static
139 SpeechSynthesizerClient* SpeechSynthesizerClient::Create(dbus::Bus* bus) { 145 SpeechSynthesizerClient* SpeechSynthesizerClient::Create(dbus::Bus* bus) {
140 if (system::runtime_environment::IsRunningOnChromeOS()) { 146 if (system::runtime_environment::IsRunningOnChromeOS()) {
141 return new SpeechSynthesizerClientImpl(bus); 147 return new SpeechSynthesizerClientImpl(bus);
142 } else { 148 } else {
143 return new SpeechSynthesizerClientStubImpl(); 149 return new SpeechSynthesizerClientStubImpl();
144 } 150 }
145 } 151 }
146 152
147 } // namespace chromeos 153 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/speech_synthesizer_client.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698