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

Side by Side Diff: public/web/WebSpeechGrammar.h

Issue 623953002: Avoid some explicit WebSpeechRecognitionHandle() conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy vector element assignments of SpeechRecognitionResults Created 6 years, 2 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 29 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698