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

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: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors 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 { }
(...skipping 10 matching lines...) Expand all
249 }; 250 };
250 251
251 class EmptyTextCheckerClient : public TextCheckerClient { 252 class EmptyTextCheckerClient : public TextCheckerClient {
252 public: 253 public:
253 ~EmptyTextCheckerClient() { } 254 ~EmptyTextCheckerClient() { }
254 255
255 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; } 256 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; }
256 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { } 257 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { }
257 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); } 258 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); }
258 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int *, int*) OVERRIDE { } 259 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int *, int*) OVERRIDE { }
259 virtual void requestCheckingOfString(PassRefPtr<TextCheckingRequest>) OVERRI DE; 260 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ est>) OVERRIDE;
260 }; 261 };
261 262
262 class EmptySpellCheckerClient : public SpellCheckerClient { 263 class EmptySpellCheckerClient : public SpellCheckerClient {
263 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED; 264 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); WTF_MAKE_FAST_ALLOCATED;
264 public: 265 public:
265 EmptySpellCheckerClient() { } 266 EmptySpellCheckerClient() { }
266 virtual ~EmptySpellCheckerClient() { } 267 virtual ~EmptySpellCheckerClient() { }
267 268
268 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; } 269 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; }
269 virtual void toggleContinuousSpellChecking() OVERRIDE { } 270 virtual void toggleContinuousSpellChecking() OVERRIDE { }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 public: 334 public:
334 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E; 335 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E;
335 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; } 336 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; }
336 }; 337 };
337 338
338 void fillWithEmptyClients(Page::PageClients&); 339 void fillWithEmptyClients(Page::PageClients&);
339 340
340 } 341 }
341 342
342 #endif // EmptyClients_h 343 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698