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 15 matching lines...) Expand all Loading... |
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 "CSSStyleDeclaration.h" | 35 #include "CSSStyleDeclaration.h" |
36 #include "ContextMenu.h" | |
37 #include "ContextMenuController.h" | 36 #include "ContextMenuController.h" |
38 #include "Document.h" | 37 #include "Document.h" |
39 #include "DocumentLoader.h" | 38 #include "DocumentLoader.h" |
40 #include "DocumentMarkerController.h" | 39 #include "DocumentMarkerController.h" |
41 #include "Editor.h" | 40 #include "Editor.h" |
42 #include "EventHandler.h" | 41 #include "EventHandler.h" |
43 #include "ExceptionCodePlaceholder.h" | 42 #include "ExceptionCodePlaceholder.h" |
44 #include "FrameLoader.h" | 43 #include "FrameLoader.h" |
45 #include "FrameView.h" | 44 #include "FrameView.h" |
46 #include "HTMLFormElement.h" | 45 #include "HTMLFormElement.h" |
47 #include "HTMLInputElement.h" | 46 #include "HTMLInputElement.h" |
48 #include "HTMLMediaElement.h" | 47 #include "HTMLMediaElement.h" |
49 #include "HTMLNames.h" | 48 #include "HTMLNames.h" |
50 #include "HTMLPlugInImageElement.h" | 49 #include "HTMLPlugInImageElement.h" |
51 #include "HistoryItem.h" | 50 #include "HistoryItem.h" |
52 #include "HitTestResult.h" | 51 #include "HitTestResult.h" |
53 #include "KURL.h" | |
54 #include "MediaError.h" | 52 #include "MediaError.h" |
55 #include "Page.h" | 53 #include "Page.h" |
56 #include "RenderWidget.h" | 54 #include "RenderWidget.h" |
57 #include "Settings.h" | 55 #include "Settings.h" |
58 #include "WebContextMenuData.h" | 56 #include "WebContextMenuData.h" |
59 #include "WebDataSourceImpl.h" | 57 #include "WebDataSourceImpl.h" |
60 #include "WebFormElement.h" | 58 #include "WebFormElement.h" |
61 #include "WebFrameImpl.h" | 59 #include "WebFrameImpl.h" |
62 #include "WebMenuItemInfo.h" | 60 #include "WebMenuItemInfo.h" |
63 #include "WebPlugin.h" | 61 #include "WebPlugin.h" |
64 #include "WebPluginContainerImpl.h" | 62 #include "WebPluginContainerImpl.h" |
65 #include "WebSearchableFormData.h" | 63 #include "WebSearchableFormData.h" |
66 #include "WebSpellCheckClient.h" | 64 #include "WebSpellCheckClient.h" |
67 #include "WebViewClient.h" | 65 #include "WebViewClient.h" |
68 #include "WebViewImpl.h" | 66 #include "WebViewImpl.h" |
69 #include "Widget.h" | 67 #include "core/platform/ContextMenu.h" |
| 68 #include "core/platform/KURL.h" |
| 69 #include "core/platform/Widget.h" |
70 #include "core/platform/text/TextBreakIterator.h" | 70 #include "core/platform/text/TextBreakIterator.h" |
71 #include <public/WebPoint.h> | 71 #include <public/WebPoint.h> |
72 #include <public/WebString.h> | 72 #include <public/WebString.h> |
73 #include <public/WebURL.h> | 73 #include <public/WebURL.h> |
74 #include <public/WebURLResponse.h> | 74 #include <public/WebURLResponse.h> |
75 #include <public/WebVector.h> | 75 #include <public/WebVector.h> |
76 #include <wtf/text/WTFString.h> | 76 #include <wtf/text/WTFString.h> |
77 | 77 |
78 using namespace WebCore; | 78 using namespace WebCore; |
79 | 79 |
(...skipping 330 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 |