| 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/loader/FrameLoaderClient.h" | 33 #include "core/loader/FrameLoaderClient.h" |
| 34 #include "core/page/ChromeClient.h" | 34 #include "core/page/ChromeClient.h" |
| 35 #include "core/page/ContextMenuClient.h" | |
| 36 #include "core/page/EditorClient.h" | 35 #include "core/page/EditorClient.h" |
| 37 #include "core/page/FocusType.h" | 36 #include "core/page/FocusType.h" |
| 38 #include "core/page/Page.h" | 37 #include "core/page/Page.h" |
| 39 #include "core/page/SpellCheckerClient.h" | 38 #include "core/page/SpellCheckerClient.h" |
| 40 #include "platform/geometry/FloatRect.h" | 39 #include "platform/geometry/FloatRect.h" |
| 41 #include "platform/network/ResourceError.h" | 40 #include "platform/network/ResourceError.h" |
| 42 #include "platform/text/TextCheckerClient.h" | 41 #include "platform/text/TextCheckerClient.h" |
| 43 #include "public/platform/WebScreenInfo.h" | 42 #include "public/platform/WebScreenInfo.h" |
| 44 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
| 45 #include <v8.h> | 44 #include <v8.h> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 181 |
| 183 virtual void respondToChangedContents() OVERRIDE { } | 182 virtual void respondToChangedContents() OVERRIDE { } |
| 184 virtual void respondToChangedSelection(LocalFrame*, SelectionType) OVERRIDE
{ } | 183 virtual void respondToChangedSelection(LocalFrame*, SelectionType) OVERRIDE
{ } |
| 185 | 184 |
| 186 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE { ret
urn defaultValue; } | 185 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE { ret
urn defaultValue; } |
| 187 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE { retur
n defaultValue; } | 186 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE { retur
n defaultValue; } |
| 188 | 187 |
| 189 virtual bool handleKeyboardEvent() OVERRIDE { return false; } | 188 virtual bool handleKeyboardEvent() OVERRIDE { return false; } |
| 190 }; | 189 }; |
| 191 | 190 |
| 192 class EmptyContextMenuClient FINAL : public ContextMenuClient { | |
| 193 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; | |
| 194 public: | |
| 195 EmptyContextMenuClient() { } | |
| 196 virtual ~EmptyContextMenuClient() { } | |
| 197 virtual void showContextMenu(const ContextMenu*) OVERRIDE { } | |
| 198 virtual void clearContextMenu() OVERRIDE { } | |
| 199 }; | |
| 200 | |
| 201 void fillWithEmptyClients(Page::PageClients&); | 191 void fillWithEmptyClients(Page::PageClients&); |
| 202 | 192 |
| 203 } | 193 } |
| 204 | 194 |
| 205 #endif // EmptyClients_h | 195 #endif // EmptyClients_h |
| OLD | NEW |