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

Side by Side Diff: third_party/WebKit/Source/core/page/DOMWindowPagePopup.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 23 matching lines...) Expand all
34 #include "core/page/PagePopupController.h" 34 #include "core/page/PagePopupController.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 DOMWindowPagePopup::DOMWindowPagePopup(PagePopup& popup, PagePopupClient* popupC lient) 38 DOMWindowPagePopup::DOMWindowPagePopup(PagePopup& popup, PagePopupClient* popupC lient)
39 : m_controller(PagePopupController::create(popup, popupClient)) 39 : m_controller(PagePopupController::create(popup, popupClient))
40 { 40 {
41 ASSERT(popupClient); 41 ASSERT(popupClient);
42 } 42 }
43 43
44 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPagePopup);
45
46 const char* DOMWindowPagePopup::supplementName() 44 const char* DOMWindowPagePopup::supplementName()
47 { 45 {
48 return "DOMWindowPagePopup"; 46 return "DOMWindowPagePopup";
49 } 47 }
50 48
51 PagePopupController* DOMWindowPagePopup::pagePopupController(DOMWindow& window) 49 PagePopupController* DOMWindowPagePopup::pagePopupController(DOMWindow& window)
52 { 50 {
53 DOMWindowPagePopup* supplement = static_cast<DOMWindowPagePopup*>(from(&toLo calDOMWindow(window), supplementName())); 51 DOMWindowPagePopup* supplement = static_cast<DOMWindowPagePopup*>(from(&toLo calDOMWindow(window), supplementName()));
54 ASSERT(supplement); 52 ASSERT(supplement);
55 return supplement->m_controller.get(); 53 return supplement->m_controller.get();
56 } 54 }
57 55
58 void DOMWindowPagePopup::install(LocalDOMWindow& window, PagePopup& popup, PageP opupClient* popupClient) 56 void DOMWindowPagePopup::install(LocalDOMWindow& window, PagePopup& popup, PageP opupClient* popupClient)
59 { 57 {
60 ASSERT(popupClient); 58 ASSERT(popupClient);
61 provideTo(window, supplementName(), adoptPtrWillBeNoop(new DOMWindowPagePopu p(popup, popupClient))); 59 provideTo(window, supplementName(), (new DOMWindowPagePopup(popup, popupClie nt)));
62 } 60 }
63 61
64 void DOMWindowPagePopup::uninstall(LocalDOMWindow& window) 62 void DOMWindowPagePopup::uninstall(LocalDOMWindow& window)
65 { 63 {
66 pagePopupController(window)->clearPagePopupClient(); 64 pagePopupController(window)->clearPagePopupClient();
67 window.removeSupplement(supplementName()); 65 window.removeSupplement(supplementName());
68 } 66 }
69 67
70 DEFINE_TRACE(DOMWindowPagePopup) 68 DEFINE_TRACE(DOMWindowPagePopup)
71 { 69 {
72 visitor->trace(m_controller); 70 visitor->trace(m_controller);
73 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); 71 HeapSupplement<LocalDOMWindow>::trace(visitor);
74 } 72 }
75 73
76 } // namespace blink 74 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698