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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (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, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo ut this file. 61 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo ut this file.
62 62
63 Ideally, whenever you change a Client class, you should add a stub here. 63 Ideally, whenever you change a Client class, you should add a stub here.
64 Brittle, yes. Unfortunate, yes. Hopefully temporary. 64 Brittle, yes. Unfortunate, yes. Hopefully temporary.
65 */ 65 */
66 66
67 namespace blink { 67 namespace blink {
68 68
69 class CORE_EXPORT EmptyChromeClient : public ChromeClient { 69 class CORE_EXPORT EmptyChromeClient : public ChromeClient {
70 public: 70 public:
71 static PassOwnPtrWillBeRawPtr<EmptyChromeClient> create() { return adoptPtrW illBeNoop(new EmptyChromeClient); } 71 static RawPtr<EmptyChromeClient> create() { return adoptPtrWillBeNoop(new Em ptyChromeClient); }
72 72
73 ~EmptyChromeClient() override {} 73 ~EmptyChromeClient() override {}
74 void chromeDestroyed() override {} 74 void chromeDestroyed() override {}
75 75
76 void* webView() const override { return nullptr; } 76 void* webView() const override { return nullptr; }
77 void setWindowRect(const IntRect&) override {} 77 void setWindowRect(const IntRect&) override {}
78 IntRect windowRect() override { return IntRect(); } 78 IntRect windowRect() override { return IntRect(); }
79 79
80 IntRect pageRect() override { return IntRect(); } 80 IntRect pageRect() override { return IntRect(); }
81 81
(...skipping 30 matching lines...) Expand all
112 bool canOpenBeforeUnloadConfirmPanel() override { return false; } 112 bool canOpenBeforeUnloadConfirmPanel() override { return false; }
113 bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool) override { retu rn true; } 113 bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool) override { retu rn true; }
114 114
115 void closeWindowSoon() override {} 115 void closeWindowSoon() override {}
116 116
117 bool openJavaScriptAlertDelegate(LocalFrame*, const String&) override { retu rn false; } 117 bool openJavaScriptAlertDelegate(LocalFrame*, const String&) override { retu rn false; }
118 bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) override { re turn false; } 118 bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) override { re turn false; }
119 bool openJavaScriptPromptDelegate(LocalFrame*, const String&, const String&, String&) override { return false; } 119 bool openJavaScriptPromptDelegate(LocalFrame*, const String&, const String&, String&) override { return false; }
120 120
121 bool hasOpenedPopup() const override { return false; } 121 bool hasOpenedPopup() const override { return false; }
122 PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectEleme nt&) override; 122 RawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectElement&) override;
123 DOMWindow* pagePopupWindowForTesting() const override { return nullptr; } 123 DOMWindow* pagePopupWindowForTesting() const override { return nullptr; }
124 124
125 void setStatusbarText(const String&) override {} 125 void setStatusbarText(const String&) override {}
126 126
127 bool tabsToLinks() override { return false; } 127 bool tabsToLinks() override { return false; }
128 128
129 IntRect windowResizerRect() const override { return IntRect(); } 129 IntRect windowResizerRect() const override { return IntRect(); }
130 130
131 void invalidateRect(const IntRect&) override {} 131 void invalidateRect(const IntRect&) override {}
132 void scheduleAnimation(Widget*) override {} 132 void scheduleAnimation(Widget*) override {}
133 133
134 IntRect viewportToScreen(const IntRect& r, const Widget*) const override { r eturn r; } 134 IntRect viewportToScreen(const IntRect& r, const Widget*) const override { r eturn r; }
135 float windowToViewportScalar(const float s) const override { return s; } 135 float windowToViewportScalar(const float s) const override { return s; }
136 WebScreenInfo screenInfo() const override { return WebScreenInfo(); } 136 WebScreenInfo screenInfo() const override { return WebScreenInfo(); }
137 void contentsSizeChanged(LocalFrame*, const IntSize&) const override {} 137 void contentsSizeChanged(LocalFrame*, const IntSize&) const override {}
138 138
139 void showMouseOverURL(const HitTestResult&) override {} 139 void showMouseOverURL(const HitTestResult&) override {}
140 140
141 void setToolTip(const String&, TextDirection) override {} 141 void setToolTip(const String&, TextDirection) override {}
142 142
143 void printDelegate(LocalFrame*) override {} 143 void printDelegate(LocalFrame*) override {}
144 144
145 void enumerateChosenDirectory(FileChooser*) override {} 145 void enumerateChosenDirectory(FileChooser*) override {}
146 146
147 PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChoo serClient*, const Color&) override; 147 RawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChooserClient*, cons t Color&) override;
148 PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserC lient*, const DateTimeChooserParameters&) override; 148 RawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, const Da teTimeChooserParameters&) override;
149 void openTextDataListChooser(HTMLInputElement&) override; 149 void openTextDataListChooser(HTMLInputElement&) override;
150 150
151 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; 151 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override;
152 152
153 void setCursor(const Cursor&, LocalFrame* localRoot) override {} 153 void setCursor(const Cursor&, LocalFrame* localRoot) override {}
154 Cursor lastSetCursorForTesting() const override { return pointerCursor(); } 154 Cursor lastSetCursorForTesting() const override { return pointerCursor(); }
155 155
156 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override {} 156 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override {}
157 157
158 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope rties) override {} 158 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope rties) override {}
159 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co nst override { return WebEventListenerProperties::Nothing; } 159 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co nst override { return WebEventListenerProperties::Nothing; }
160 void setHaveScrollEventHandlers(bool) override {} 160 void setHaveScrollEventHandlers(bool) override {}
161 bool haveScrollEventHandlers() const override { return false; } 161 bool haveScrollEventHandlers() const override { return false; }
162 162
163 void setTouchAction(TouchAction) override {} 163 void setTouchAction(TouchAction) override {}
164 164
165 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem ent>>&, LocalFrame*) override {} 165 void didAssociateFormControls(const HeapVector<Member<Element>>&, LocalFrame *) override {}
166 166
167 void annotatedRegionsChanged() override {} 167 void annotatedRegionsChanged() override {}
168 String acceptLanguages() override; 168 String acceptLanguages() override;
169 169
170 void registerPopupOpeningObserver(PopupOpeningObserver*) override {} 170 void registerPopupOpeningObserver(PopupOpeningObserver*) override {}
171 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {} 171 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {}
172 172
173 PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) override; 173 PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) override;
174 }; 174 };
175 175
176 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { 176 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient {
177 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); 177 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient);
178 USING_FAST_MALLOC_WILL_BE_REMOVED(EmptyFrameLoaderClient);
179 public: 178 public:
180 static PassOwnPtrWillBeRawPtr<EmptyFrameLoaderClient> create() { return adop tPtrWillBeNoop(new EmptyFrameLoaderClient); } 179 static RawPtr<EmptyFrameLoaderClient> create() { return adoptPtrWillBeNoop(n ew EmptyFrameLoaderClient); }
181 ~EmptyFrameLoaderClient() override {} 180 ~EmptyFrameLoaderClient() override {}
182 181
183 bool hasWebView() const override { return true; } // mainly for assertions 182 bool hasWebView() const override { return true; } // mainly for assertions
184 183
185 bool inShadowTree() const override { return false; } 184 bool inShadowTree() const override { return false; }
186 185
187 Frame* opener() const override { return 0; } 186 Frame* opener() const override { return 0; }
188 void setOpener(Frame*) override {} 187 void setOpener(Frame*) override {}
189 188
190 Frame* parent() const override { return 0; } 189 Frame* parent() const override { return 0; }
(...skipping 29 matching lines...) Expand all
220 219
221 void dispatchWillSendSubmitEvent(HTMLFormElement*) override; 220 void dispatchWillSendSubmitEvent(HTMLFormElement*) override;
222 void dispatchWillSubmitForm(HTMLFormElement*) override; 221 void dispatchWillSubmitForm(HTMLFormElement*) override;
223 222
224 void didStartLoading(LoadStartType) override {} 223 void didStartLoading(LoadStartType) override {}
225 void progressEstimateChanged(double) override {} 224 void progressEstimateChanged(double) override {}
226 void didStopLoading() override {} 225 void didStopLoading() override {}
227 226
228 void loadURLExternally(const ResourceRequest&, NavigationPolicy, const Strin g&, bool) override {} 227 void loadURLExternally(const ResourceRequest&, NavigationPolicy, const Strin g&, bool) override {}
229 228
230 PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) override; 229 RawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const ResourceReque st&, const SubstituteData&) override;
231 230
232 String userAgent() override { return ""; } 231 String userAgent() override { return ""; }
233 232
234 String doNotTrackValue() override { return String(); } 233 String doNotTrackValue() override { return String(); }
235 234
236 void transitionToCommittedForNewPage() override {} 235 void transitionToCommittedForNewPage() override {}
237 236
238 bool navigateBackForward(int offset) const override { return false; } 237 bool navigateBackForward(int offset) const override { return false; }
239 void didDisplayInsecureContent() override {} 238 void didDisplayInsecureContent() override {}
240 void didRunInsecureContent(SecurityOrigin*, const KURL&) override {} 239 void didRunInsecureContent(SecurityOrigin*, const KURL&) override {}
241 void didDetectXSS(const KURL&, bool) override {} 240 void didDetectXSS(const KURL&, bool) override {}
242 void didDispatchPingLoader(const KURL&) override {} 241 void didDispatchPingLoader(const KURL&) override {}
243 void didDisplayContentWithCertificateErrors(const KURL&, const CString&, con st WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) override {} 242 void didDisplayContentWithCertificateErrors(const KURL&, const CString&, con st WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) override {}
244 void didRunContentWithCertificateErrors(const KURL&, const CString&, const W ebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) override {} 243 void didRunContentWithCertificateErrors(const KURL&, const CString&, const W ebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) override {}
245 void selectorMatchChanged(const Vector<String>&, const Vector<String>&) over ride {} 244 void selectorMatchChanged(const Vector<String>&, const Vector<String>&) over ride {}
246 PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadRequest&, cons t AtomicString&, HTMLFrameOwnerElement*) override; 245 RawPtr<LocalFrame> createFrame(const FrameLoadRequest&, const AtomicString&, HTMLFrameOwnerElement*) override;
247 PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool, DetachedPlug inPolicy) override; 246 RawPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<St ring>&, const Vector<String>&, const String&, bool, DetachedPluginPolicy) overri de;
248 bool canCreatePluginWithoutRenderer(const String& mimeType) const override { return false; } 247 bool canCreatePluginWithoutRenderer(const String& mimeType) const override { return false; }
249 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const Web URL&, WebMediaPlayerClient*) override; 248 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const Web URL&, WebMediaPlayerClient*) override;
250 PassOwnPtr<WebMediaSession> createWebMediaSession() override; 249 PassOwnPtr<WebMediaSession> createWebMediaSession() override;
251 250
252 ObjectContentType getObjectContentType(const KURL&, const String&, bool) ove rride { return ObjectContentType(); } 251 ObjectContentType getObjectContentType(const KURL&, const String&, bool) ove rride { return ObjectContentType(); }
253 252
254 void didCreateNewDocument() override {} 253 void didCreateNewDocument() override {}
255 void dispatchDidClearWindowObjectInMainWorld() override {} 254 void dispatchDidClearWindowObjectInMainWorld() override {}
256 void documentElementAvailable() override {} 255 void documentElementAvailable() override {}
257 void runScriptsAtDocumentElementAvailable() override {} 256 void runScriptsAtDocumentElementAvailable() override {}
(...skipping 18 matching lines...) Expand all
276 EmptyFrameLoaderClient() {} 275 EmptyFrameLoaderClient() {}
277 }; 276 };
278 277
279 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { 278 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient {
280 DISALLOW_NEW(); 279 DISALLOW_NEW();
281 public: 280 public:
282 ~EmptyTextCheckerClient() { } 281 ~EmptyTextCheckerClient() { }
283 282
284 void checkSpellingOfString(const String&, int*, int*) override {} 283 void checkSpellingOfString(const String&, int*, int*) override {}
285 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*) override {} 284 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*) override {}
286 void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequest>) ov erride; 285 void requestCheckingOfString(RawPtr<TextCheckingRequest>) override;
287 }; 286 };
288 287
289 class EmptySpellCheckerClient : public SpellCheckerClient { 288 class EmptySpellCheckerClient : public SpellCheckerClient {
290 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC heckerClient); 289 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC heckerClient);
291 public: 290 public:
292 EmptySpellCheckerClient() {} 291 EmptySpellCheckerClient() {}
293 ~EmptySpellCheckerClient() override {} 292 ~EmptySpellCheckerClient() override {}
294 293
295 bool isContinuousSpellCheckingEnabled() override { return false; } 294 bool isContinuousSpellCheckingEnabled() override { return false; }
296 void toggleContinuousSpellChecking() override {} 295 void toggleContinuousSpellChecking() override {}
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 ~EmptyDragClient() override {} 335 ~EmptyDragClient() override {}
337 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes tinationActionNone; } 336 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes tinationActionNone; }
338 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {} 337 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {}
339 }; 338 };
340 339
341 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 340 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
342 341
343 } // namespace blink 342 } // namespace blink
344 343
345 #endif // EmptyClients_h 344 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698