| 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 14 matching lines...) Expand all Loading... |
| 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 "core/editing/UndoStep.h" | 32 #include "core/editing/UndoStep.h" |
| 33 #include "core/inspector/InspectorClient.h" | 33 #include "core/inspector/InspectorClient.h" |
| 34 #include "core/loader/FrameLoaderClient.h" | 34 #include "core/loader/FrameLoaderClient.h" |
| 35 #include "core/page/BackForwardClient.h" | |
| 36 #include "core/page/ChromeClient.h" | 35 #include "core/page/ChromeClient.h" |
| 37 #include "core/page/ContextMenuClient.h" | 36 #include "core/page/ContextMenuClient.h" |
| 38 #include "core/page/DragClient.h" | 37 #include "core/page/DragClient.h" |
| 39 #include "core/page/EditorClient.h" | 38 #include "core/page/EditorClient.h" |
| 40 #include "core/page/FocusType.h" | 39 #include "core/page/FocusType.h" |
| 41 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
| 42 #include "core/page/SpellCheckerClient.h" | 41 #include "core/page/SpellCheckerClient.h" |
| 43 #include "core/page/StorageClient.h" | 42 #include "core/page/StorageClient.h" |
| 44 #include "platform/DragImage.h" | 43 #include "platform/DragImage.h" |
| 45 #include "platform/geometry/FloatRect.h" | 44 #include "platform/geometry/FloatRect.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 class EmptyInspectorClient final : public InspectorClient { | 317 class EmptyInspectorClient final : public InspectorClient { |
| 319 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; | 318 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; |
| 320 public: | 319 public: |
| 321 EmptyInspectorClient() { } | 320 EmptyInspectorClient() { } |
| 322 virtual ~EmptyInspectorClient() { } | 321 virtual ~EmptyInspectorClient() { } |
| 323 | 322 |
| 324 virtual void highlight() override { } | 323 virtual void highlight() override { } |
| 325 virtual void hideHighlight() override { } | 324 virtual void hideHighlight() override { } |
| 326 }; | 325 }; |
| 327 | 326 |
| 328 class EmptyBackForwardClient final : public BackForwardClient { | |
| 329 public: | |
| 330 virtual int backListCount() override { return 0; } | |
| 331 virtual int forwardListCount() override { return 0; } | |
| 332 virtual int backForwardListCount() override { return 0; } | |
| 333 }; | |
| 334 | |
| 335 class EmptyStorageClient final : public StorageClient { | 327 class EmptyStorageClient final : public StorageClient { |
| 336 public: | 328 public: |
| 337 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid
e; | 329 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid
e; |
| 338 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret
urn false; } | 330 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret
urn false; } |
| 339 }; | 331 }; |
| 340 | 332 |
| 341 void fillWithEmptyClients(Page::PageClients&); | 333 void fillWithEmptyClients(Page::PageClients&); |
| 342 | 334 |
| 343 } | 335 } |
| 344 | 336 |
| 345 #endif // EmptyClients_h | 337 #endif // EmptyClients_h |
| OLD | NEW |