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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.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, 8 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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 #include "public/platform/WebApplicationCacheHost.h" 38 #include "public/platform/WebApplicationCacheHost.h"
39 #include "public/platform/WebMediaPlayer.h" 39 #include "public/platform/WebMediaPlayer.h"
40 #include "public/platform/modules/mediasession/WebMediaSession.h" 40 #include "public/platform/modules/mediasession/WebMediaSession.h"
41 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" 41 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h"
42 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h " 42 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h "
43 43
44 namespace blink { 44 namespace blink {
45 45
46 void fillWithEmptyClients(Page::PageClients& pageClients) 46 void fillWithEmptyClients(Page::PageClients& pageClients)
47 { 47 {
48 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<ChromeClient>, dummyChromeClient, (EmptyChromeClient::create())); 48 DEFINE_STATIC_LOCAL(Persistent<ChromeClient>, dummyChromeClient, (EmptyChrom eClient::create()));
49 pageClients.chromeClient = dummyChromeClient.get(); 49 pageClients.chromeClient = dummyChromeClient.get();
50 50
51 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ()); 51 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ());
52 pageClients.contextMenuClient = &dummyContextMenuClient; 52 pageClients.contextMenuClient = &dummyContextMenuClient;
53 53
54 DEFINE_STATIC_LOCAL(EmptyDragClient, dummyDragClient, ()); 54 DEFINE_STATIC_LOCAL(EmptyDragClient, dummyDragClient, ());
55 pageClients.dragClient = &dummyDragClient; 55 pageClients.dragClient = &dummyDragClient;
56 56
57 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ()); 57 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ());
58 pageClients.editorClient = &dummyEditorClient; 58 pageClients.editorClient = &dummyEditorClient;
(...skipping 21 matching lines...) Expand all
80 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() 80 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner()
81 { 81 {
82 return Platform::current()->currentThread()->getWebTaskRunner(); 82 return Platform::current()->currentThread()->getWebTaskRunner();
83 } 83 }
84 84
85 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() 85 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner()
86 { 86 {
87 return Platform::current()->currentThread()->getWebTaskRunner(); 87 return Platform::current()->currentThread()->getWebTaskRunner();
88 } 88 }
89 89
90 PassRefPtrWillBeRawPtr<PopupMenu> EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) 90 RawPtr<PopupMenu> EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElemen t&)
91 { 91 {
92 return adoptRefWillBeNoop(new EmptyPopupMenu()); 92 return new EmptyPopupMenu();
93 } 93 }
94 94
95 PassOwnPtrWillBeRawPtr<ColorChooser> EmptyChromeClient::openColorChooser(LocalFr ame*, ColorChooserClient*, const Color&) 95 RawPtr<ColorChooser> EmptyChromeClient::openColorChooser(LocalFrame*, ColorChoos erClient*, const Color&)
96 { 96 {
97 return nullptr; 97 return nullptr;
98 } 98 }
99 99
100 PassRefPtrWillBeRawPtr<DateTimeChooser> EmptyChromeClient::openDateTimeChooser(D ateTimeChooserClient*, const DateTimeChooserParameters&) 100 RawPtr<DateTimeChooser> EmptyChromeClient::openDateTimeChooser(DateTimeChooserCl ient*, const DateTimeChooserParameters&)
101 { 101 {
102 return nullptr; 102 return nullptr;
103 } 103 }
104 104
105 void EmptyChromeClient::openTextDataListChooser(HTMLInputElement&) 105 void EmptyChromeClient::openTextDataListChooser(HTMLInputElement&)
106 { 106 {
107 } 107 }
108 108
109 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) 109 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>)
110 { 110 {
(...skipping 20 matching lines...) Expand all
131 } 131 }
132 132
133 void EmptyFrameLoaderClient::dispatchWillSendSubmitEvent(HTMLFormElement*) 133 void EmptyFrameLoaderClient::dispatchWillSendSubmitEvent(HTMLFormElement*)
134 { 134 {
135 } 135 }
136 136
137 void EmptyFrameLoaderClient::dispatchWillSubmitForm(HTMLFormElement*) 137 void EmptyFrameLoaderClient::dispatchWillSubmitForm(HTMLFormElement*)
138 { 138 {
139 } 139 }
140 140
141 PassRefPtrWillBeRawPtr<DocumentLoader> EmptyFrameLoaderClient::createDocumentLoa der(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& sub stituteData) 141 RawPtr<DocumentLoader> EmptyFrameLoaderClient::createDocumentLoader(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& substituteData)
142 { 142 {
143 return DocumentLoader::create(frame, request, substituteData); 143 return DocumentLoader::create(frame, request, substituteData);
144 } 144 }
145 145
146 PassRefPtrWillBeRawPtr<LocalFrame> EmptyFrameLoaderClient::createFrame(const Fra meLoadRequest&, const AtomicString&, HTMLFrameOwnerElement*) 146 RawPtr<LocalFrame> EmptyFrameLoaderClient::createFrame(const FrameLoadRequest&, const AtomicString&, HTMLFrameOwnerElement*)
147 { 147 {
148 return nullptr; 148 return nullptr;
149 } 149 }
150 150
151 PassRefPtrWillBeRawPtr<Widget> EmptyFrameLoaderClient::createPlugin(HTMLPlugInEl ement*, const KURL&, const Vector<String>&, const Vector<String>&, const String& , bool, DetachedPluginPolicy) 151 RawPtr<Widget> EmptyFrameLoaderClient::createPlugin(HTMLPlugInElement*, const KU RL&, const Vector<String>&, const Vector<String>&, const String&, bool, Detached PluginPolicy)
152 { 152 {
153 return nullptr; 153 return nullptr;
154 } 154 }
155 155
156 PassOwnPtr<WebMediaPlayer> EmptyFrameLoaderClient::createWebMediaPlayer(HTMLMedi aElement&, const WebURL&, WebMediaPlayerClient*) 156 PassOwnPtr<WebMediaPlayer> EmptyFrameLoaderClient::createWebMediaPlayer(HTMLMedi aElement&, const WebURL&, WebMediaPlayerClient*)
157 { 157 {
158 return nullptr; 158 return nullptr;
159 } 159 }
160 160
161 PassOwnPtr<WebMediaSession> EmptyFrameLoaderClient::createWebMediaSession() 161 PassOwnPtr<WebMediaSession> EmptyFrameLoaderClient::createWebMediaSession()
162 { 162 {
163 return nullptr; 163 return nullptr;
164 } 164 }
165 165
166 void EmptyTextCheckerClient::requestCheckingOfString(PassRefPtrWillBeRawPtr<Text CheckingRequest>) 166 void EmptyTextCheckerClient::requestCheckingOfString(RawPtr<TextCheckingRequest> )
167 { 167 {
168 } 168 }
169 169
170 void EmptyFrameLoaderClient::didRequestAutocomplete(HTMLFormElement*) 170 void EmptyFrameLoaderClient::didRequestAutocomplete(HTMLFormElement*)
171 { 171 {
172 } 172 }
173 173
174 v8::Local<v8::Value> EmptyFrameLoaderClient::createTestInterface(const AtomicStr ing& name) 174 v8::Local<v8::Value> EmptyFrameLoaderClient::createTestInterface(const AtomicStr ing& name)
175 { 175 {
176 return v8::Local<v8::Value>(); 176 return v8::Local<v8::Value>();
177 } 177 }
178 178
179 PassOwnPtr<WebServiceWorkerProvider> EmptyFrameLoaderClient::createServiceWorker Provider() 179 PassOwnPtr<WebServiceWorkerProvider> EmptyFrameLoaderClient::createServiceWorker Provider()
180 { 180 {
181 return nullptr; 181 return nullptr;
182 } 182 }
183 183
184 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*) 184 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*)
185 { 185 {
186 return nullptr; 186 return nullptr;
187 } 187 }
188 188
189 } // namespace blink 189 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/core/loader/FormSubmission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698