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

Side by Side Diff: Source/core/speech/SpeechInputResult.h

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 10 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 | « Source/core/plugins/DOMPluginArray.cpp ('k') | Source/core/speech/SpeechInputResult.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 21 matching lines...) Expand all
32 #include "heap/Handle.h" 32 #include "heap/Handle.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 // This class holds one speech recognition result including the text and other r elated 39 // This class holds one speech recognition result including the text and other r elated
40 // fields, as received from the embedder. 40 // fields, as received from the embedder.
41 class SpeechInputResult : public RefCountedWillBeGarbageCollectedFinalized<Speec hInputResult>, public ScriptWrappable { 41 class SpeechInputResult : public RefCountedWillBeGarbageCollectedFinalized<Speec hInputResult>, public ScriptWrappable {
42 DECLARE_GC_INFO;
43 public: 42 public:
44 static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const SpeechInputRes ult& source); 43 static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const SpeechInputRes ult& source);
45 static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const String& uttera nce, double confidence); 44 static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const String& uttera nce, double confidence);
46 45
47 double confidence() const; 46 double confidence() const;
48 const String& utterance() const; 47 const String& utterance() const;
49 48
50 void trace(Visitor *) { } 49 void trace(Visitor *) { }
51 50
52 private: 51 private:
53 SpeechInputResult(const String& utterance, double confidence); 52 SpeechInputResult(const String& utterance, double confidence);
54 53
55 String m_utterance; 54 String m_utterance;
56 double m_confidence; 55 double m_confidence;
57 }; 56 };
58 57
59 typedef WillBeHeapVector<RefPtrWillBeMember<SpeechInputResult> > SpeechInputResu ltArray; 58 typedef WillBeHeapVector<RefPtrWillBeMember<SpeechInputResult> > SpeechInputResu ltArray;
60 59
61 } // namespace WebCore 60 } // namespace WebCore
62 61
63 #endif // ENABLE(INPUT_SPEECH) 62 #endif // ENABLE(INPUT_SPEECH)
64 63
65 #endif // SpeechInputResult_h 64 #endif // SpeechInputResult_h
OLDNEW
« no previous file with comments | « Source/core/plugins/DOMPluginArray.cpp ('k') | Source/core/speech/SpeechInputResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698