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

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

Issue 2721503002: Rename all uses of EmptyFrameLoaderClient with EmptyLocalFrameClient. (Closed)
Patch Set: Change V8 headers to user includes and introduce a space between system and user headers. Headers w… Created 3 years, 9 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 11 matching lines...) Expand all
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef EmptyClients_h 29 #ifndef EmptyClients_h
30 #define EmptyClients_h 30 #define EmptyClients_h
31 31
32 #include <memory>
33
32 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/frame/LocalFrameClient.h"
33 #include "core/frame/RemoteFrameClient.h" 36 #include "core/frame/RemoteFrameClient.h"
34 #include "core/loader/FrameLoaderClient.h"
35 #include "core/page/ChromeClient.h" 37 #include "core/page/ChromeClient.h"
36 #include "core/page/ContextMenuClient.h" 38 #include "core/page/ContextMenuClient.h"
37 #include "core/page/EditorClient.h" 39 #include "core/page/EditorClient.h"
38 #include "core/page/Page.h" 40 #include "core/page/Page.h"
39 #include "core/page/SpellCheckerClient.h" 41 #include "core/page/SpellCheckerClient.h"
40 #include "platform/DragImage.h" 42 #include "platform/DragImage.h"
41 #include "platform/WebFrameScheduler.h" 43 #include "platform/WebFrameScheduler.h"
42 #include "platform/geometry/FloatPoint.h" 44 #include "platform/geometry/FloatPoint.h"
43 #include "platform/geometry/FloatRect.h" 45 #include "platform/geometry/FloatRect.h"
44 #include "platform/geometry/IntRect.h" 46 #include "platform/geometry/IntRect.h"
45 #include "platform/heap/Handle.h" 47 #include "platform/heap/Handle.h"
46 #include "platform/network/ResourceError.h" 48 #include "platform/network/ResourceError.h"
47 #include "platform/text/TextCheckerClient.h" 49 #include "platform/text/TextCheckerClient.h"
48 #include "public/platform/WebFocusType.h" 50 #include "public/platform/WebFocusType.h"
49 #include "public/platform/WebScreenInfo.h" 51 #include "public/platform/WebScreenInfo.h"
52 #include "v8/include/v8.h"
50 #include "wtf/Forward.h" 53 #include "wtf/Forward.h"
51 #include <memory>
52 #include <v8.h>
53 54
54 /* 55 /*
55 This file holds empty Client stubs for use by WebCore. 56 This file holds empty Client stubs for use by WebCore.
56 57
57 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for 58 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for
58 use in parsing or executing JavaScript. This tree depends heavily on Clients 59 use in parsing or executing JavaScript. This tree depends heavily on Clients
59 (usually provided by WebKit classes). 60 (usually provided by WebKit classes).
60 61
61 This file was first created for SVGImage as it had no way to access the current 62 This file was first created for SVGImage as it had no way to access the current
62 Page (nor should it, since Images are not tied to a page). See 63 Page (nor should it, since Images are not tied to a page). See
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 return nullptr; 229 return nullptr;
229 } 230 }
230 231
231 void registerPopupOpeningObserver(PopupOpeningObserver*) override {} 232 void registerPopupOpeningObserver(PopupOpeningObserver*) override {}
232 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {} 233 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override {}
233 234
234 std::unique_ptr<WebFrameScheduler> createFrameScheduler( 235 std::unique_ptr<WebFrameScheduler> createFrameScheduler(
235 BlameContext*) override; 236 BlameContext*) override;
236 }; 237 };
237 238
238 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { 239 class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
239 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); 240 WTF_MAKE_NONCOPYABLE(EmptyLocalFrameClient);
240 241
241 public: 242 public:
242 static EmptyFrameLoaderClient* create() { return new EmptyFrameLoaderClient; } 243 static EmptyLocalFrameClient* create() { return new EmptyLocalFrameClient; }
243 ~EmptyFrameLoaderClient() override {} 244 ~EmptyLocalFrameClient() override {}
244 245
245 bool hasWebView() const override { return true; } // mainly for assertions 246 bool hasWebView() const override { return true; } // mainly for assertions
246 247
247 bool inShadowTree() const override { return false; } 248 bool inShadowTree() const override { return false; }
248 249
249 Frame* opener() const override { return 0; } 250 Frame* opener() const override { return 0; }
250 void setOpener(Frame*) override {} 251 void setOpener(Frame*) override {}
251 252
252 Frame* parent() const override { return 0; } 253 Frame* parent() const override { return 0; }
253 Frame* top() const override { return 0; } 254 Frame* top() const override { return 0; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 WebCookieJar* cookieJar() const override { return 0; } 359 WebCookieJar* cookieJar() const override { return 0; }
359 360
360 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() 361 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider()
361 override; 362 override;
362 bool isControlledByServiceWorker(DocumentLoader&) override { return false; } 363 bool isControlledByServiceWorker(DocumentLoader&) override { return false; }
363 int64_t serviceWorkerID(DocumentLoader&) override { return -1; } 364 int64_t serviceWorkerID(DocumentLoader&) override { return -1; }
364 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( 365 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost(
365 WebApplicationCacheHostClient*) override; 366 WebApplicationCacheHostClient*) override;
366 367
367 protected: 368 protected:
368 EmptyFrameLoaderClient() {} 369 EmptyLocalFrameClient() {}
369 }; 370 };
370 371
371 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { 372 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient {
372 DISALLOW_NEW(); 373 DISALLOW_NEW();
373 374
374 public: 375 public:
375 ~EmptyTextCheckerClient() {} 376 ~EmptyTextCheckerClient() {}
376 377
377 void checkSpellingOfString(const String&, int*, int*) override {} 378 void checkSpellingOfString(const String&, int*, int*) override {}
378 void requestCheckingOfString(TextCheckingRequest*) override; 379 void requestCheckingOfString(TextCheckingRequest*) override;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 Frame* nextSibling() const override { return nullptr; } 466 Frame* nextSibling() const override { return nullptr; }
466 Frame* firstChild() const override { return nullptr; } 467 Frame* firstChild() const override { return nullptr; }
467 void frameFocused() const override {} 468 void frameFocused() const override {}
468 }; 469 };
469 470
470 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 471 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
471 472
472 } // namespace blink 473 } // namespace blink
473 474
474 #endif // EmptyClients_h 475 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698