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

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

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebSocket.h ('k') | public/web/WebSpeechRecognitionHandle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebSpeechGrammar_h 26 #ifndef WebSpeechGrammar_h
27 #define WebSpeechGrammar_h 27 #define WebSpeechGrammar_h
28 28
29 #include "../platform/WebCommon.h" 29 #include "../platform/WebCommon.h"
30 #include "../platform/WebPrivatePtr.h" 30 #include "../platform/WebPrivatePtr.h"
31 #include "../platform/WebURL.h" 31 #include "../platform/WebURL.h"
32 32
33 namespace WebCore { 33 namespace blink {
34 class SpeechGrammar; 34 class SpeechGrammar;
35 } 35 }
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class WebSpeechGrammar { 39 class WebSpeechGrammar {
40 public: 40 public:
41 WebSpeechGrammar() { } 41 WebSpeechGrammar() { }
42 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); } 42 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); }
43 ~WebSpeechGrammar() { reset(); } 43 ~WebSpeechGrammar() { reset(); }
44 44
45 BLINK_EXPORT WebURL src() const; 45 BLINK_EXPORT WebURL src() const;
46 BLINK_EXPORT float weight() const; 46 BLINK_EXPORT float weight() const;
47 47
48 BLINK_EXPORT void reset(); 48 BLINK_EXPORT void reset();
49 BLINK_EXPORT void assign(const WebSpeechGrammar&); 49 BLINK_EXPORT void assign(const WebSpeechGrammar&);
50 50
51 #if BLINK_IMPLEMENTATION 51 #if BLINK_IMPLEMENTATION
52 explicit WebSpeechGrammar(WebCore::SpeechGrammar*); 52 explicit WebSpeechGrammar(blink::SpeechGrammar*);
53 WebSpeechGrammar& operator=(WebCore::SpeechGrammar*); 53 WebSpeechGrammar& operator=(blink::SpeechGrammar*);
54 #endif 54 #endif
55 55
56 private: 56 private:
57 WebPrivatePtr<WebCore::SpeechGrammar> m_private; 57 WebPrivatePtr<blink::SpeechGrammar> m_private;
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // WebSpeechGrammar_h 62 #endif // WebSpeechGrammar_h
OLDNEW
« no previous file with comments | « public/web/WebSocket.h ('k') | public/web/WebSpeechRecognitionHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698