| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple 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 |
| 11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
| 12 * | 12 * |
| 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
| 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
| 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 #include "config.h" | 26 #include "config.h" |
| 27 #include "ContextMenu.h" | 27 #include "ContextMenu.h" |
| 28 | 28 |
| 29 #include "CString.h" | |
| 30 #include "Document.h" | |
| 31 #include "Frame.h" | |
| 32 #include "FrameView.h" | |
| 33 #include "Node.h" | |
| 34 | |
| 35 namespace WebCore { | 29 namespace WebCore { |
| 36 | 30 |
| 37 // This is a stub implementation of WebKit's ContextMenu class that does | 31 // This is a stub implementation of WebKit's ContextMenu class that does |
| 38 // nothing. | 32 // nothing. |
| 39 | 33 |
| 40 ContextMenu::ContextMenu(const HitTestResult& result) | 34 ContextMenu::ContextMenu(const HitTestResult& result) |
| 41 : m_hitTestResult(result) | 35 : m_hitTestResult(result) |
| 42 , m_platformDescription(0) | 36 , m_platformDescription(0) |
| 43 { | 37 { |
| 44 } | 38 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 59 } | 53 } |
| 60 | 54 |
| 61 void ContextMenu::insertItem(unsigned int position, ContextMenuItem& item) | 55 void ContextMenu::insertItem(unsigned int position, ContextMenuItem& item) |
| 62 { | 56 { |
| 63 } | 57 } |
| 64 | 58 |
| 65 void ContextMenu::appendItem(ContextMenuItem& item) | 59 void ContextMenu::appendItem(ContextMenuItem& item) |
| 66 { | 60 { |
| 67 } | 61 } |
| 68 | 62 |
| 69 static ContextMenuItem* contextMenuItemByIdOrPosition(HMENU menu, unsigned id, B
OOL byPosition) | |
| 70 { | |
| 71 return 0; | |
| 72 } | |
| 73 | |
| 74 ContextMenuItem* ContextMenu::itemWithAction(unsigned action) | 63 ContextMenuItem* ContextMenu::itemWithAction(unsigned action) |
| 75 { | 64 { |
| 76 return 0; | 65 return 0; |
| 77 } | 66 } |
| 78 | 67 |
| 79 ContextMenuItem* ContextMenu::itemAtIndex(unsigned index, const PlatformMenuDesc
ription platformDescription) | 68 ContextMenuItem* ContextMenu::itemAtIndex(unsigned index, const PlatformMenuDesc
ription platformDescription) |
| 80 { | 69 { |
| 81 return 0; | 70 return 0; |
| 82 } | 71 } |
| 83 | 72 |
| 84 void ContextMenu::setPlatformDescription(HMENU menu) | 73 void ContextMenu::setPlatformDescription(PlatformMenuDescription menu) |
| 85 { | 74 { |
| 86 } | 75 } |
| 87 | 76 |
| 88 HMENU ContextMenu::platformDescription() const | 77 PlatformMenuDescription ContextMenu::platformDescription() const |
| 89 { | 78 { |
| 90 return m_platformDescription; | 79 return m_platformDescription; |
| 91 } | 80 } |
| 92 | 81 |
| 93 HMENU ContextMenu::releasePlatformDescription() | 82 PlatformMenuDescription ContextMenu::releasePlatformDescription() |
| 94 { | 83 { |
| 95 return 0; | 84 return 0; |
| 96 } | 85 } |
| 97 | 86 |
| 98 } | 87 } |
| OLD | NEW |