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

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

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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_impl.h ('k') | chrome/browser/speech/tts_linux.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 #include "chrome/browser/speech/tts_controller_impl.h" 5 #include "chrome/browser/speech/tts_controller_impl.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/values.h" 12 #include "base/values.h"
13 #include "build/build_config.h"
11 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/speech/tts_platform.h" 15 #include "chrome/browser/speech/tts_platform.h"
13 16
14 namespace { 17 namespace {
15 // A value to be used to indicate that there is no char index available. 18 // A value to be used to indicate that there is no char index available.
16 const int kInvalidCharIndex = -1; 19 const int kInvalidCharIndex = -1;
17 20
18 // Given a language/region code of the form 'fr-FR', returns just the basic 21 // Given a language/region code of the form 'fr-FR', returns just the basic
19 // language portion, e.g. 'fr'. 22 // language portion, e.g. 'fr'.
20 std::string TrimLanguageCode(const std::string& lang) { 23 std::string TrimLanguageCode(const std::string& lang) {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 484 }
482 485
483 void TtsControllerImpl::SetTtsEngineDelegate( 486 void TtsControllerImpl::SetTtsEngineDelegate(
484 TtsEngineDelegate* delegate) { 487 TtsEngineDelegate* delegate) {
485 tts_engine_delegate_ = delegate; 488 tts_engine_delegate_ = delegate;
486 } 489 }
487 490
488 TtsEngineDelegate* TtsControllerImpl::GetTtsEngineDelegate() { 491 TtsEngineDelegate* TtsControllerImpl::GetTtsEngineDelegate() {
489 return tts_engine_delegate_; 492 return tts_engine_delegate_;
490 } 493 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_controller_impl.h ('k') | chrome/browser/speech/tts_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698