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

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

Issue 454103003: Cleanup namespace usage in public/web/Web[N-Z]*.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 13 matching lines...) Expand all
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 blink { 33 namespace blink {
34
34 class SpeechGrammar; 35 class SpeechGrammar;
35 }
36
37 namespace blink {
38 36
39 class WebSpeechGrammar { 37 class WebSpeechGrammar {
40 public: 38 public:
41 WebSpeechGrammar() { } 39 WebSpeechGrammar() { }
42 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); } 40 WebSpeechGrammar(const WebSpeechGrammar& grammar) { assign(grammar); }
43 ~WebSpeechGrammar() { reset(); } 41 ~WebSpeechGrammar() { reset(); }
44 42
45 BLINK_EXPORT WebURL src() const; 43 BLINK_EXPORT WebURL src() const;
46 BLINK_EXPORT float weight() const; 44 BLINK_EXPORT float weight() const;
47 45
48 BLINK_EXPORT void reset(); 46 BLINK_EXPORT void reset();
49 BLINK_EXPORT void assign(const WebSpeechGrammar&); 47 BLINK_EXPORT void assign(const WebSpeechGrammar&);
50 48
51 #if BLINK_IMPLEMENTATION 49 #if BLINK_IMPLEMENTATION
52 explicit WebSpeechGrammar(blink::SpeechGrammar*); 50 explicit WebSpeechGrammar(SpeechGrammar*);
53 WebSpeechGrammar& operator=(blink::SpeechGrammar*); 51 WebSpeechGrammar& operator=(SpeechGrammar*);
54 #endif 52 #endif
55 53
56 private: 54 private:
57 WebPrivatePtr<blink::SpeechGrammar> m_private; 55 WebPrivatePtr<SpeechGrammar> m_private;
58 }; 56 };
59 57
60 } // namespace blink 58 } // namespace blink
61 59
62 #endif // WebSpeechGrammar_h 60 #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