| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "public/platform/WebSpeechSynthesisVoice.h" | 27 #include "public/platform/WebSpeechSynthesisVoice.h" |
| 28 | 28 |
| 29 #include "platform/speech/PlatformSpeechSynthesisVoice.h" | 29 #include "platform/speech/PlatformSpeechSynthesisVoice.h" |
| 30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 WebSpeechSynthesisVoice::WebSpeechSynthesisVoice() | 34 WebSpeechSynthesisVoice::WebSpeechSynthesisVoice() |
| 35 : m_private(blink::PlatformSpeechSynthesisVoice::create()) | 35 : m_private(PlatformSpeechSynthesisVoice::create()) |
| 36 { | 36 { |
| 37 } | 37 } |
| 38 | 38 |
| 39 void WebSpeechSynthesisVoice::assign(const WebSpeechSynthesisVoice& other) | 39 void WebSpeechSynthesisVoice::assign(const WebSpeechSynthesisVoice& other) |
| 40 { | 40 { |
| 41 m_private = other.m_private; | 41 m_private = other.m_private; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void WebSpeechSynthesisVoice::reset() | 44 void WebSpeechSynthesisVoice::reset() |
| 45 { | 45 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 void WebSpeechSynthesisVoice::setIsLocalService(bool isLocalService) | 64 void WebSpeechSynthesisVoice::setIsLocalService(bool isLocalService) |
| 65 { | 65 { |
| 66 m_private->setLocalService(isLocalService); | 66 m_private->setLocalService(isLocalService); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void WebSpeechSynthesisVoice::setIsDefault(bool isDefault) | 69 void WebSpeechSynthesisVoice::setIsDefault(bool isDefault) |
| 70 { | 70 { |
| 71 m_private->setIsDefault(isDefault); | 71 m_private->setIsDefault(isDefault); |
| 72 } | 72 } |
| 73 | 73 |
| 74 WebSpeechSynthesisVoice::operator blink::PlatformSpeechSynthesisVoice*() const | 74 WebSpeechSynthesisVoice::operator PlatformSpeechSynthesisVoice*() const |
| 75 { | 75 { |
| 76 return m_private.get(); | 76 return m_private.get(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |