| 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 29 matching lines...) Expand all Loading... |
| 40 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); } | 40 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); } |
| 41 ~WebSpeechGrammar() { reset(); } | 41 ~WebSpeechGrammar() { reset(); } |
| 42 | 42 |
| 43 BLINK_EXPORT WebURL src() const; | 43 BLINK_EXPORT WebURL src() const; |
| 44 BLINK_EXPORT float weight() const; | 44 BLINK_EXPORT float weight() const; |
| 45 | 45 |
| 46 BLINK_EXPORT void reset(); | 46 BLINK_EXPORT void reset(); |
| 47 BLINK_EXPORT void assign(const WebSpeechGrammar&); | 47 BLINK_EXPORT void assign(const WebSpeechGrammar&); |
| 48 | 48 |
| 49 #if BLINK_IMPLEMENTATION | 49 #if BLINK_IMPLEMENTATION |
| 50 explicit WebSpeechGrammar(SpeechGrammar*); | |
| 51 WebSpeechGrammar& operator=(SpeechGrammar*); | 50 WebSpeechGrammar& operator=(SpeechGrammar*); |
| 52 #endif | 51 #endif |
| 53 | 52 |
| 54 private: | 53 private: |
| 55 WebPrivatePtr<SpeechGrammar> m_private; | 54 WebPrivatePtr<SpeechGrammar> m_private; |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace blink | 57 } // namespace blink |
| 59 | 58 |
| 60 #endif // WebSpeechGrammar_h | 59 #endif // WebSpeechGrammar_h |
| OLD | NEW |