| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 "ContextMenuItem.h" | 27 #include "ContextMenuItem.h" |
| 28 | 28 |
| 29 #include "ContextMenu.h" | 29 #include "ContextMenu.h" |
| 30 | 30 |
| 31 #include "CString.h" | |
| 32 | |
| 33 namespace WebCore { | 31 namespace WebCore { |
| 34 | 32 |
| 35 // This is a stub implementation of WebKit's ContextMenu class that does | 33 // This is a stub implementation of WebKit's ContextMenu class that does |
| 36 // nothing. | 34 // nothing. |
| 37 | 35 |
| 38 ContextMenuItem::ContextMenuItem(LPMENUITEMINFO item) | 36 ContextMenuItem::ContextMenuItem(PlatformMenuItemDescription item) |
| 39 { | 37 { |
| 40 } | 38 } |
| 41 | 39 |
| 42 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) | 40 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu) |
| 43 { | 41 { |
| 44 } | 42 } |
| 45 | 43 |
| 46 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction act
ion, const String& title, ContextMenu* subMenu) | 44 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction act
ion, const String& title, ContextMenu* subMenu) |
| 47 { | 45 { |
| 48 } | 46 } |
| 49 | 47 |
| 50 ContextMenuItem::~ContextMenuItem() | 48 ContextMenuItem::~ContextMenuItem() |
| 51 { | 49 { |
| 52 } | 50 } |
| 53 | 51 |
| 54 LPMENUITEMINFO ContextMenuItem::releasePlatformDescription() | 52 PlatformMenuItemDescription ContextMenuItem::releasePlatformDescription() |
| 55 { | 53 { |
| 56 return 0; | 54 return 0; |
| 57 } | 55 } |
| 58 | 56 |
| 59 ContextMenuItemType ContextMenuItem::type() const | 57 ContextMenuItemType ContextMenuItem::type() const |
| 60 { | 58 { |
| 61 return ContextMenuItemType(); | 59 return ContextMenuItemType(); |
| 62 } | 60 } |
| 63 | 61 |
| 64 ContextMenuAction ContextMenuItem::action() const | 62 ContextMenuAction ContextMenuItem::action() const |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void ContextMenuItem::setEnabled(bool enabled) | 97 void ContextMenuItem::setEnabled(bool enabled) |
| 100 { | 98 { |
| 101 } | 99 } |
| 102 | 100 |
| 103 bool ContextMenuItem::enabled() const | 101 bool ContextMenuItem::enabled() const |
| 104 { | 102 { |
| 105 return false; | 103 return false; |
| 106 } | 104 } |
| 107 | 105 |
| 108 } | 106 } |
| OLD | NEW |