| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 { | 82 { |
| 83 contextMenuCleared(); | 83 contextMenuCleared(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 virtual void populateContextMenu(ContextMenu* menu) | 86 virtual void populateContextMenu(ContextMenu* menu) |
| 87 { | 87 { |
| 88 for (size_t i = 0; i < m_items.size(); ++i) | 88 for (size_t i = 0; i < m_items.size(); ++i) |
| 89 menu->appendItem(m_items[i]); | 89 menu->appendItem(m_items[i]); |
| 90 } | 90 } |
| 91 | 91 |
| 92 virtual void contextMenuItemSelected(ContextMenuItem* item) | 92 virtual void contextMenuItemSelected(const ContextMenuItem* item) |
| 93 { | 93 { |
| 94 if (m_frontendHost) { | 94 if (m_frontendHost) { |
| 95 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGes
ture); | 95 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGes
ture); |
| 96 int itemNumber = item->action() - ContextMenuItemBaseCustomTag; | 96 int itemNumber = item->action() - ContextMenuItemBaseCustomTag; |
| 97 | 97 |
| 98 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel
ected"); | 98 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel
ected"); |
| 99 function.appendArgument(itemNumber); | 99 function.appendArgument(itemNumber); |
| 100 function.call(); | 100 function.call(); |
| 101 } | 101 } |
| 102 } | 102 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 { | 325 { |
| 326 return false; | 326 return false; |
| 327 } | 327 } |
| 328 | 328 |
| 329 String InspectorFrontendHost::hiddenPanels() | 329 String InspectorFrontendHost::hiddenPanels() |
| 330 { | 330 { |
| 331 return ""; | 331 return ""; |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace WebCore | 334 } // namespace WebCore |
| OLD | NEW |