OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |