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

Side by Side Diff: Source/modules/speech/SpeechRecognitionEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 30 matching lines...) Expand all
41 DISALLOW_ALLOCATION(); 41 DISALLOW_ALLOCATION();
42 public: 42 public:
43 SpeechRecognitionEventInit(); 43 SpeechRecognitionEventInit();
44 44
45 unsigned long resultIndex; 45 unsigned long resultIndex;
46 RefPtrWillBeRawPtr<SpeechRecognitionResultList> results; 46 RefPtrWillBeRawPtr<SpeechRecognitionResultList> results;
47 }; 47 };
48 48
49 class SpeechRecognitionEvent FINAL : public Event { 49 class SpeechRecognitionEvent FINAL : public Event {
50 public: 50 public:
51 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create(); 51 static PassRefPtr<SpeechRecognitionEvent> create();
52 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create(const AtomicStr ing&, const SpeechRecognitionEventInit&); 52 static PassRefPtr<SpeechRecognitionEvent> create(const AtomicString&, const SpeechRecognitionEventInit&);
53 virtual ~SpeechRecognitionEvent(); 53 virtual ~SpeechRecognitionEvent();
54 54
55 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts); 55 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts);
56 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>); 56 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>);
57 57
58 unsigned long resultIndex() const { return m_resultIndex; } 58 unsigned long resultIndex() const { return m_resultIndex; }
59 SpeechRecognitionResultList* results() const { return m_results.get(); } 59 SpeechRecognitionResultList* results() const { return m_results.get(); }
60 60
61 // These two methods are here to satisfy the specification which requires th ese attrubutes to exist. 61 // These two methods are here to satisfy the specification which requires th ese attrubutes to exist.
62 Document* interpretation() { return 0; } 62 Document* interpretation() { return 0; }
63 Document* emma() { return 0; } 63 Document* emma() { return 0; }
64 64
65 // Event 65 // Event
66 virtual const AtomicString& interfaceName() const OVERRIDE; 66 virtual const AtomicString& interfaceName() const OVERRIDE;
67 67
68 virtual void trace(Visitor*) OVERRIDE; 68 virtual void trace(Visitor*) OVERRIDE;
69 69
70 private: 70 private:
71 SpeechRecognitionEvent(); 71 SpeechRecognitionEvent();
72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); 72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &);
73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); 73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results);
74 74
75 unsigned long m_resultIndex; 75 unsigned long m_resultIndex;
76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; 76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results;
77 }; 77 };
78 78
79 } // namespace WebCore 79 } // namespace WebCore
80 80
81 #endif // SpeechRecognitionEvent_h 81 #endif // SpeechRecognitionEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698