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

Side by Side Diff: sky/engine/core/loader/EmptyClients.h

Issue 640143004: Remove context menus. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/events/RelatedEvent.idl ('k') | sky/engine/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 14 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/events/RelatedEvent.idl ('k') | sky/engine/core/loader/EmptyClients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698