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

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

Issue 1291903003: Oilpan: Move ChromeClient classes into Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a raw reference in InspectorOverlayImpl.cpp. Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutTestHelper.cpp ('k') | Source/core/loader/EmptyClients.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 since Images are not tied to a page). 58 since Images are not tied to a page).
59 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo ut this file. 59 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo ut this file.
60 60
61 Ideally, whenever you change a Client class, you should add a stub here. 61 Ideally, whenever you change a Client class, you should add a stub here.
62 Brittle, yes. Unfortunate, yes. Hopefully temporary. 62 Brittle, yes. Unfortunate, yes. Hopefully temporary.
63 */ 63 */
64 64
65 namespace blink { 65 namespace blink {
66 66
67 class CORE_EXPORT EmptyChromeClient : public ChromeClient { 67 class CORE_EXPORT EmptyChromeClient : public ChromeClient {
68 WTF_MAKE_FAST_ALLOCATED(EmptyChromeClient);
69 public: 68 public:
69 static PassOwnPtrWillBeRawPtr<EmptyChromeClient> create() { return adoptPtrW illBeNoop(new EmptyChromeClient); }
70
70 ~EmptyChromeClient() override {} 71 ~EmptyChromeClient() override {}
71 void chromeDestroyed() override {} 72 void chromeDestroyed() override {}
72 73
73 void* webView() const override { return nullptr; } 74 void* webView() const override { return nullptr; }
74 void setWindowRect(const IntRect&) override {} 75 void setWindowRect(const IntRect&) override {}
75 IntRect windowRect() override { return IntRect(); } 76 IntRect windowRect() override { return IntRect(); }
76 77
77 IntRect pageRect() override { return IntRect(); } 78 IntRect pageRect() override { return IntRect(); }
78 79
79 void focus() override {} 80 void focus() override {}
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 ~EmptyDragClient() override {} 320 ~EmptyDragClient() override {}
320 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes tinationActionNone; } 321 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes tinationActionNone; }
321 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {} 322 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {}
322 }; 323 };
323 324
324 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 325 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
325 326
326 } // namespace blink 327 } // namespace blink
327 328
328 #endif // EmptyClients_h 329 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTestHelper.cpp ('k') | Source/core/loader/EmptyClients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698