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

Side by Side Diff: Source/modules/speech/DOMWindowSpeechSynthesis.cpp

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() Created 6 years, 3 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/frame/LocalFrame.h" 35 #include "core/frame/LocalFrame.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 DOMWindowSpeechSynthesis::DOMWindowSpeechSynthesis(LocalDOMWindow& window) 40 DOMWindowSpeechSynthesis::DOMWindowSpeechSynthesis(LocalDOMWindow& window)
41 : DOMWindowProperty(window.frame()) 41 : DOMWindowProperty(window.frame())
42 { 42 {
43 } 43 }
44 44
45 DOMWindowSpeechSynthesis::~DOMWindowSpeechSynthesis() 45 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowSpeechSynthesis);
46 {
47 }
48 46
49 const char* DOMWindowSpeechSynthesis::supplementName() 47 const char* DOMWindowSpeechSynthesis::supplementName()
50 { 48 {
51 return "DOMWindowSpeechSynthesis"; 49 return "DOMWindowSpeechSynthesis";
52 } 50 }
53 51
54 // static 52 // static
55 DOMWindowSpeechSynthesis& DOMWindowSpeechSynthesis::from(LocalDOMWindow& window) 53 DOMWindowSpeechSynthesis& DOMWindowSpeechSynthesis::from(LocalDOMWindow& window)
56 { 54 {
57 DOMWindowSpeechSynthesis* supplement = static_cast<DOMWindowSpeechSynthesis* >(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName())); 55 DOMWindowSpeechSynthesis* supplement = static_cast<DOMWindowSpeechSynthesis* >(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName()));
(...skipping 14 matching lines...) Expand all
72 { 70 {
73 if (!m_speechSynthesis && frame()) 71 if (!m_speechSynthesis && frame())
74 m_speechSynthesis = SpeechSynthesis::create(frame()->domWindow()->execut ionContext()); 72 m_speechSynthesis = SpeechSynthesis::create(frame()->domWindow()->execut ionContext());
75 return m_speechSynthesis.get(); 73 return m_speechSynthesis.get();
76 } 74 }
77 75
78 void DOMWindowSpeechSynthesis::trace(Visitor* visitor) 76 void DOMWindowSpeechSynthesis::trace(Visitor* visitor)
79 { 77 {
80 visitor->trace(m_speechSynthesis); 78 visitor->trace(m_speechSynthesis);
81 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); 79 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor);
80 DOMWindowProperty::trace(visitor);
82 } 81 }
83 82
84 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698