| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "ContextMenuClientImpl.h" | 32 #include "ContextMenuClientImpl.h" |
| 33 | 33 |
| 34 #include "CSSPropertyNames.h" | 34 #include "CSSPropertyNames.h" |
| 35 #include "HTMLFormElement.h" | |
| 36 #include "HTMLInputElement.h" | |
| 37 #include "HTMLMediaElement.h" | |
| 38 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
| 39 #include "HTMLPlugInImageElement.h" | |
| 40 #include "MediaError.h" | |
| 41 #include "WebContextMenuData.h" | 36 #include "WebContextMenuData.h" |
| 42 #include "WebDataSourceImpl.h" | 37 #include "WebDataSourceImpl.h" |
| 43 #include "WebFormElement.h" | 38 #include "WebFormElement.h" |
| 44 #include "WebFrameImpl.h" | 39 #include "WebFrameImpl.h" |
| 45 #include "WebMenuItemInfo.h" | 40 #include "WebMenuItemInfo.h" |
| 46 #include "WebPlugin.h" | 41 #include "WebPlugin.h" |
| 47 #include "WebPluginContainerImpl.h" | 42 #include "WebPluginContainerImpl.h" |
| 48 #include "WebSearchableFormData.h" | 43 #include "WebSearchableFormData.h" |
| 49 #include "WebSpellCheckClient.h" | 44 #include "WebSpellCheckClient.h" |
| 50 #include "WebViewClient.h" | 45 #include "WebViewClient.h" |
| 51 #include "WebViewImpl.h" | 46 #include "WebViewImpl.h" |
| 52 #include "core/css/CSSStyleDeclaration.h" | 47 #include "core/css/CSSStyleDeclaration.h" |
| 53 #include "core/dom/Document.h" | 48 #include "core/dom/Document.h" |
| 54 #include "core/dom/DocumentMarkerController.h" | 49 #include "core/dom/DocumentMarkerController.h" |
| 55 #include "core/dom/ExceptionCodePlaceholder.h" | 50 #include "core/dom/ExceptionCodePlaceholder.h" |
| 56 #include "core/editing/Editor.h" | 51 #include "core/editing/Editor.h" |
| 57 #include "core/history/HistoryItem.h" | 52 #include "core/history/HistoryItem.h" |
| 53 #include "core/html/HTMLFormElement.h" |
| 54 #include "core/html/HTMLInputElement.h" |
| 55 #include "core/html/HTMLMediaElement.h" |
| 56 #include "core/html/HTMLPlugInImageElement.h" |
| 57 #include "core/html/MediaError.h" |
| 58 #include "core/loader/DocumentLoader.h" | 58 #include "core/loader/DocumentLoader.h" |
| 59 #include "core/loader/FrameLoader.h" | 59 #include "core/loader/FrameLoader.h" |
| 60 #include "core/page/ContextMenuController.h" | 60 #include "core/page/ContextMenuController.h" |
| 61 #include "core/page/EventHandler.h" | 61 #include "core/page/EventHandler.h" |
| 62 #include "core/page/FrameView.h" | 62 #include "core/page/FrameView.h" |
| 63 #include "core/page/Page.h" | 63 #include "core/page/Page.h" |
| 64 #include "core/page/Settings.h" | 64 #include "core/page/Settings.h" |
| 65 #include "core/platform/ContextMenu.h" | 65 #include "core/platform/ContextMenu.h" |
| 66 #include "core/platform/KURL.h" | 66 #include "core/platform/KURL.h" |
| 67 #include "core/platform/Widget.h" | 67 #include "core/platform/Widget.h" |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 outputItems[i] = subItems[i]; | 410 outputItems[i] = subItems[i]; |
| 411 subMenuItems.swap(outputItems); | 411 subMenuItems.swap(outputItems); |
| 412 } | 412 } |
| 413 | 413 |
| 414 void ContextMenuClientImpl::populateCustomMenuItems(WebCore::ContextMenu* defaul
tMenu, WebContextMenuData* data) | 414 void ContextMenuClientImpl::populateCustomMenuItems(WebCore::ContextMenu* defaul
tMenu, WebContextMenuData* data) |
| 415 { | 415 { |
| 416 populateSubMenuItems(defaultMenu->items(), data->customItems); | 416 populateSubMenuItems(defaultMenu->items(), data->customItems); |
| 417 } | 417 } |
| 418 | 418 |
| 419 } // namespace WebKit | 419 } // namespace WebKit |
| OLD | NEW |