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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_api_mac.mm

Issue 10831025: mac: Remove now-unneeded includes of cocoa_protocols.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "base/mac/cocoa_protocols.h"
8 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
9 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
10 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
11 #include "base/values.h" 10 #include "base/values.h"
12 #include "chrome/browser/extensions/extension_function.h" 11 #include "chrome/browser/extensions/extension_function.h"
13 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" 12 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h"
14 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h" 13 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h"
15 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h" 14 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h"
16 15
17 #import <Cocoa/Cocoa.h> 16 #import <Cocoa/Cocoa.h>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 - (void)speechSynthesizer:(NSSpeechSynthesizer*)sender 200 - (void)speechSynthesizer:(NSSpeechSynthesizer*)sender
202 didEncounterErrorAtIndex:(NSUInteger)character_index 201 didEncounterErrorAtIndex:(NSUInteger)character_index
203 ofString:(NSString*)string 202 ofString:(NSString*)string
204 message:(NSString*)message { 203 message:(NSString*)message {
205 std::string message_utf8 = base::SysNSStringToUTF8(message); 204 std::string message_utf8 = base::SysNSStringToUTF8(message);
206 ttsImplMac_->OnSpeechEvent(sender, TTS_EVENT_ERROR, character_index, 205 ttsImplMac_->OnSpeechEvent(sender, TTS_EVENT_ERROR, character_index,
207 message_utf8); 206 message_utf8);
208 } 207 }
209 208
210 @end 209 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698