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

Side by Side Diff: Source/WebCore/page/ContextMenuClient.h

Issue 14185003: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/loader/EmptyClients.cpp ('k') | Source/WebCore/page/ContextMenuController.h » ('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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef ContextMenuClient_h 26 #ifndef ContextMenuClient_h
27 #define ContextMenuClient_h 27 #define ContextMenuClient_h
28 28
29 #if ENABLE(CONTEXT_MENUS) 29 #if ENABLE(CONTEXT_MENUS)
30 30
31 #include "ContextMenu.h" 31 #include "ContextMenu.h"
32 #include "PlatformMenuDescription.h"
33 #include <wtf/Forward.h> 32 #include <wtf/Forward.h>
34 #include <wtf/PassOwnPtr.h> 33 #include <wtf/PassOwnPtr.h>
35 34
36 namespace WebCore { 35 namespace WebCore {
37 class ContextMenuItem; 36 class ContextMenuItem;
38 class Frame; 37 class Frame;
39 class HitTestResult; 38 class HitTestResult;
40 class KURL; 39 class KURL;
41 40
42 class ContextMenuClient { 41 class ContextMenuClient {
43 public: 42 public:
44 virtual ~ContextMenuClient() { } 43 virtual ~ContextMenuClient() { }
45 virtual void contextMenuDestroyed() = 0; 44 virtual void contextMenuDestroyed() = 0;
46 45
47 #if USE(CROSS_PLATFORM_CONTEXT_MENUS)
48 virtual PassOwnPtr<ContextMenu> customizeMenu(PassOwnPtr<ContextMenu>) = 0; 46 virtual PassOwnPtr<ContextMenu> customizeMenu(PassOwnPtr<ContextMenu>) = 0;
49 #else
50 virtual PlatformMenuDescription getCustomMenuFromDefaultItems(ContextMen u*) = 0;
51 #endif
52 47
53 virtual void contextMenuItemSelected(ContextMenuItem*, const ContextMenu *) = 0; 48 virtual void contextMenuItemSelected(const ContextMenuItem*, const Conte xtMenu*) = 0;
54 49
55 virtual void downloadURL(const KURL& url) = 0; 50 virtual void downloadURL(const KURL& url) = 0;
56 virtual void searchWithGoogle(const Frame*) = 0; 51 virtual void searchWithGoogle(const Frame*) = 0;
57 virtual void lookUpInDictionary(Frame*) = 0; 52 virtual void lookUpInDictionary(Frame*) = 0;
58 virtual bool isSpeaking() = 0; 53 virtual bool isSpeaking() = 0;
59 virtual void speak(const String&) = 0; 54 virtual void speak(const String&) = 0;
60 virtual void stopSpeaking() = 0; 55 virtual void stopSpeaking() = 0;
61 56
62 #if USE(ACCESSIBILITY_CONTEXT_MENUS) 57 #if USE(ACCESSIBILITY_CONTEXT_MENUS)
63 virtual void showContextMenu() = 0; 58 virtual void showContextMenu() = 0;
64 #endif 59 #endif
65 }; 60 };
66 } 61 }
67 62
68 #endif // ENABLE(CONTEXT_MENUS) 63 #endif // ENABLE(CONTEXT_MENUS)
69 #endif 64 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/loader/EmptyClients.cpp ('k') | Source/WebCore/page/ContextMenuController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698