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

Side by Side Diff: Source/web/WebSpeechGrammar.cpp

Issue 315133004: Enable Oilpan by default in modules/speech/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unused Dictionary support for SpeechRecognitionError + fix Speech*Event create() types. Created 6 years, 6 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
OLDNEW
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
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 PassRefPtrWillBeRawPtr<WebCore::SpeechG rammar>& value) 44 WebSpeechGrammar::WebSpeechGrammar(const WebCore::SpeechGrammar* value)
tkent 2014/06/09 01:28:46 This is not a mechanical change. The argument typ
sof 2014/06/09 12:24:32 This is a good issue to bring up as we remove tran
tkent 2014/06/10 03:19:14 I understand your point. But it's not the topic o
45 : m_private(value) 45 : m_private(const_cast<WebCore::SpeechGrammar*>(value))
46 { 46 {
47 } 47 }
48 48
49 WebSpeechGrammar& WebSpeechGrammar::operator=(const PassRefPtrWillBeRawPtr<WebCo re::SpeechGrammar>& value) 49 WebSpeechGrammar& WebSpeechGrammar::operator=(const WebCore::SpeechGrammar* valu e)
50 { 50 {
51 m_private = value; 51 m_private = const_cast<WebCore::SpeechGrammar*>(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698