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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #include "core/platform/ContextMenu.h" | 67 #include "core/platform/ContextMenu.h" |
68 #include "core/rendering/HitTestResult.h" | 68 #include "core/rendering/HitTestResult.h" |
69 #include "core/rendering/RenderWidget.h" | 69 #include "core/rendering/RenderWidget.h" |
70 #include "platform/Widget.h" | 70 #include "platform/Widget.h" |
71 #include "platform/text/TextBreakIterator.h" | 71 #include "platform/text/TextBreakIterator.h" |
72 #include "public/platform/WebPoint.h" | 72 #include "public/platform/WebPoint.h" |
73 #include "public/platform/WebString.h" | 73 #include "public/platform/WebString.h" |
74 #include "public/platform/WebURL.h" | 74 #include "public/platform/WebURL.h" |
75 #include "public/platform/WebURLResponse.h" | 75 #include "public/platform/WebURLResponse.h" |
76 #include "public/platform/WebVector.h" | 76 #include "public/platform/WebVector.h" |
77 #include "weborigin/KURL.h" | 77 #include "platform/weborigin/KURL.h" |
78 #include "wtf/text/WTFString.h" | 78 #include "wtf/text/WTFString.h" |
79 | 79 |
80 using namespace WebCore; | 80 using namespace WebCore; |
81 | 81 |
82 namespace WebKit { | 82 namespace WebKit { |
83 | 83 |
84 // Figure out the URL of a page or subframe. Returns |page_type| as the type, | 84 // Figure out the URL of a page or subframe. Returns |page_type| as the type, |
85 // which indicates page or subframe, or ContextNodeType::NONE if the URL could n
ot | 85 // which indicates page or subframe, or ContextNodeType::NONE if the URL could n
ot |
86 // be determined for some reason. | 86 // be determined for some reason. |
87 static WebURL urlFromFrame(Frame* frame) | 87 static WebURL urlFromFrame(Frame* frame) |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 outputItems[i] = subItems[i]; | 415 outputItems[i] = subItems[i]; |
416 subMenuItems.swap(outputItems); | 416 subMenuItems.swap(outputItems); |
417 } | 417 } |
418 | 418 |
419 void ContextMenuClientImpl::populateCustomMenuItems(const WebCore::ContextMenu*
defaultMenu, WebContextMenuData* data) | 419 void ContextMenuClientImpl::populateCustomMenuItems(const WebCore::ContextMenu*
defaultMenu, WebContextMenuData* data) |
420 { | 420 { |
421 populateSubMenuItems(defaultMenu->items(), data->customItems); | 421 populateSubMenuItems(defaultMenu->items(), data->customItems); |
422 } | 422 } |
423 | 423 |
424 } // namespace WebKit | 424 } // namespace WebKit |
OLD | NEW |