| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 23 matching lines...) Expand all Loading... |
| 34 void WebSpeechGrammar::reset() | 34 void WebSpeechGrammar::reset() |
| 35 { | 35 { |
| 36 m_private.reset(); | 36 m_private.reset(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void WebSpeechGrammar::assign(const WebSpeechGrammar& other) | 39 void WebSpeechGrammar::assign(const WebSpeechGrammar& other) |
| 40 { | 40 { |
| 41 m_private = other.m_private; | 41 m_private = other.m_private; |
| 42 } | 42 } |
| 43 | 43 |
| 44 WebSpeechGrammar::WebSpeechGrammar(const PassRefPtr<WebCore::SpeechGrammar>& val
ue) | 44 WebSpeechGrammar::WebSpeechGrammar(const PassRefPtrWillBeRawPtr<WebCore::SpeechG
rammar>& value) |
| 45 : m_private(value) | 45 : m_private(value) |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 WebSpeechGrammar& WebSpeechGrammar::operator=(const WTF::PassRefPtr<WebCore::Spe
echGrammar>& value) | 49 WebSpeechGrammar& WebSpeechGrammar::operator=(const PassRefPtrWillBeRawPtr<WebCo
re::SpeechGrammar>& value) |
| 50 { | 50 { |
| 51 m_private = value; | 51 m_private = value; |
| 52 return *this; | 52 return *this; |
| 53 } | 53 } |
| 54 | 54 |
| 55 WebURL WebSpeechGrammar::src() const | 55 WebURL WebSpeechGrammar::src() const |
| 56 { | 56 { |
| 57 BLINK_ASSERT(m_private.get()); | 57 BLINK_ASSERT(m_private.get()); |
| 58 return m_private->src(); | 58 return m_private->src(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 float WebSpeechGrammar::weight() const | 61 float WebSpeechGrammar::weight() const |
| 62 { | 62 { |
| 63 BLINK_ASSERT(m_private.get()); | 63 BLINK_ASSERT(m_private.get()); |
| 64 return m_private->weight(); | 64 return m_private->weight(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| OLD | NEW |