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

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

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase past r181245 conflict 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) 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 25 matching lines...) Expand all
36 #include "core/page/ChromeClient.h" 36 #include "core/page/ChromeClient.h"
37 #include "core/page/ContextMenuClient.h" 37 #include "core/page/ContextMenuClient.h"
38 #include "core/page/DragClient.h" 38 #include "core/page/DragClient.h"
39 #include "core/page/EditorClient.h" 39 #include "core/page/EditorClient.h"
40 #include "core/page/FocusType.h" 40 #include "core/page/FocusType.h"
41 #include "core/page/Page.h" 41 #include "core/page/Page.h"
42 #include "core/page/SpellCheckerClient.h" 42 #include "core/page/SpellCheckerClient.h"
43 #include "core/page/StorageClient.h" 43 #include "core/page/StorageClient.h"
44 #include "platform/DragImage.h" 44 #include "platform/DragImage.h"
45 #include "platform/geometry/FloatRect.h" 45 #include "platform/geometry/FloatRect.h"
46 #include "platform/heap/Handle.h"
46 #include "platform/network/ResourceError.h" 47 #include "platform/network/ResourceError.h"
47 #include "platform/text/TextCheckerClient.h" 48 #include "platform/text/TextCheckerClient.h"
48 #include "public/platform/WebScreenInfo.h" 49 #include "public/platform/WebScreenInfo.h"
49 #include "wtf/Forward.h" 50 #include "wtf/Forward.h"
50 #include <v8.h> 51 #include <v8.h>
51 52
52 /* 53 /*
53 This file holds empty Client stubs for use by WebCore. 54 This file holds empty Client stubs for use by WebCore.
54 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u se in parsing or executing JavaScript. 55 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u se in parsing or executing JavaScript.
55 This tree depends heavily on Clients (usually provided by WebKit classes). 56 This tree depends heavily on Clients (usually provided by WebKit classes).
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual bool canRunBeforeUnloadConfirmPanel() OVERRIDE { return false; } 110 virtual bool canRunBeforeUnloadConfirmPanel() OVERRIDE { return false; }
110 virtual bool runBeforeUnloadConfirmPanel(const String&, LocalFrame*) OVERRID E { return true; } 111 virtual bool runBeforeUnloadConfirmPanel(const String&, LocalFrame*) OVERRID E { return true; }
111 112
112 virtual void closeWindowSoon() OVERRIDE { } 113 virtual void closeWindowSoon() OVERRIDE { }
113 114
114 virtual void runJavaScriptAlert(LocalFrame*, const String&) OVERRIDE { } 115 virtual void runJavaScriptAlert(LocalFrame*, const String&) OVERRIDE { }
115 virtual bool runJavaScriptConfirm(LocalFrame*, const String&) OVERRIDE { ret urn false; } 116 virtual bool runJavaScriptConfirm(LocalFrame*, const String&) OVERRIDE { ret urn false; }
116 virtual bool runJavaScriptPrompt(LocalFrame*, const String&, const String&, String&) OVERRIDE { return false; } 117 virtual bool runJavaScriptPrompt(LocalFrame*, const String&, const String&, String&) OVERRIDE { return false; }
117 118
118 virtual bool hasOpenedPopup() const OVERRIDE { return false; } 119 virtual bool hasOpenedPopup() const OVERRIDE { return false; }
119 virtual PassRefPtr<PopupMenu> createPopupMenu(LocalFrame&, PopupMenuClient*) const OVERRIDE; 120 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup MenuClient*) const OVERRIDE;
120 virtual void setPagePopupDriver(PagePopupDriver*) OVERRIDE { } 121 virtual void setPagePopupDriver(PagePopupDriver*) OVERRIDE { }
121 virtual void resetPagePopupDriver() OVERRIDE { } 122 virtual void resetPagePopupDriver() OVERRIDE { }
122 123
123 virtual void setStatusbarText(const String&) OVERRIDE { } 124 virtual void setStatusbarText(const String&) OVERRIDE { }
124 125
125 virtual bool tabsToLinks() OVERRIDE { return false; } 126 virtual bool tabsToLinks() OVERRIDE { return false; }
126 127
127 virtual IntRect windowResizerRect() const OVERRIDE { return IntRect(); } 128 virtual IntRect windowResizerRect() const OVERRIDE { return IntRect(); }
128 129
129 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE { } 130 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE { }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual String doNotTrackValue() OVERRIDE { return String(); } 219 virtual String doNotTrackValue() OVERRIDE { return String(); }
219 220
220 virtual void transitionToCommittedForNewPage() OVERRIDE { } 221 virtual void transitionToCommittedForNewPage() OVERRIDE { }
221 222
222 virtual bool navigateBackForward(int offset) const OVERRIDE { return false; } 223 virtual bool navigateBackForward(int offset) const OVERRIDE { return false; }
223 virtual void didDisplayInsecureContent() OVERRIDE { } 224 virtual void didDisplayInsecureContent() OVERRIDE { }
224 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) OVERRIDE { } 225 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) OVERRIDE { }
225 virtual void didDetectXSS(const KURL&, bool) OVERRIDE { } 226 virtual void didDetectXSS(const KURL&, bool) OVERRIDE { }
226 virtual void didDispatchPingLoader(const KURL&) OVERRIDE { } 227 virtual void didDispatchPingLoader(const KURL&) OVERRIDE { }
227 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String >&) OVERRIDE { } 228 virtual void selectorMatchChanged(const Vector<String>&, const Vector<String >&) OVERRIDE { }
228 virtual PassRefPtr<LocalFrame> createFrame(const KURL&, const AtomicString&, const Referrer&, HTMLFrameOwnerElement*) OVERRIDE; 229 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const KURL&, const At omicString&, const Referrer&, HTMLFrameOwnerElement*) OVERRIDE;
229 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, con st Vector<String>&, const Vector<String>&, const String&, bool, DetachedPluginPo licy) OVERRIDE; 230 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, con st Vector<String>&, const Vector<String>&, const String&, bool, DetachedPluginPo licy) OVERRIDE;
230 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const OV ERRIDE { return false; } 231 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const OV ERRIDE { return false; }
231 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, const KURL&, const Vector<String>&, const Vector<String>&) OVERRIDE; 232 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, const KURL&, const Vector<String>&, const Vector<String>&) OVERRIDE;
232 233
233 virtual ObjectContentType objectContentType(const KURL&, const String&, bool ) OVERRIDE { return ObjectContentType(); } 234 virtual ObjectContentType objectContentType(const KURL&, const String&, bool ) OVERRIDE { return ObjectContentType(); }
234 235
235 virtual void dispatchDidClearWindowObjectInMainWorld() OVERRIDE { } 236 virtual void dispatchDidClearWindowObjectInMainWorld() OVERRIDE { }
236 virtual void documentElementAvailable() OVERRIDE { } 237 virtual void documentElementAvailable() OVERRIDE { }
237 238
238 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE { } 239 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE { }
239 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE { } 240 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE { }
240 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE { return false; } 241 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE { return false; }
241 242
242 virtual blink::WebCookieJar* cookieJar() const OVERRIDE { return 0; } 243 virtual blink::WebCookieJar* cookieJar() const OVERRIDE { return 0; }
243 244
244 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE; 245 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE;
245 246
246 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi der() OVERRIDE; 247 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi der() OVERRIDE;
247 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos t(blink::WebApplicationCacheHostClient*) OVERRIDE; 248 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos t(blink::WebApplicationCacheHostClient*) OVERRIDE;
248 }; 249 };
249 250
250 class EmptyTextCheckerClient : public TextCheckerClient { 251 class EmptyTextCheckerClient : public TextCheckerClient {
251 public: 252 public:
252 ~EmptyTextCheckerClient() { } 253 ~EmptyTextCheckerClient() { }
253 254
254 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; } 255 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; }
255 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { } 256 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { }
256 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); } 257 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); }
257 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int *, int*) OVERRIDE { } 258 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int *, int*) OVERRIDE { }
258 virtual void requestCheckingOfString(PassRefPtr<TextCheckingRequest>) OVERRI DE; 259 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ est>) OVERRIDE;
259 }; 260 };
260 261
261 class EmptySpellCheckerClient : public SpellCheckerClient { 262 class EmptySpellCheckerClient : public SpellCheckerClient {
262 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED; 263 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED;
263 public: 264 public:
264 EmptySpellCheckerClient() { } 265 EmptySpellCheckerClient() { }
265 virtual ~EmptySpellCheckerClient() { } 266 virtual ~EmptySpellCheckerClient() { }
266 267
267 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; } 268 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; }
268 virtual void toggleContinuousSpellChecking() OVERRIDE { } 269 virtual void toggleContinuousSpellChecking() OVERRIDE { }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 public: 333 public:
333 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E; 334 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E;
334 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; } 335 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; }
335 }; 336 };
336 337
337 void fillWithEmptyClients(Page::PageClients&); 338 void fillWithEmptyClients(Page::PageClients&);
338 339
339 } 340 }
340 341
341 #endif // EmptyClients_h 342 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698