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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "bindings/core/v8/ExceptionState.h" | 33 #include "bindings/core/v8/ExceptionState.h" |
34 #include "core/CSSPropertyNames.h" | 34 #include "core/CSSPropertyNames.h" |
35 #include "core/HTMLNames.h" | 35 #include "core/HTMLNames.h" |
36 #include "core/InputTypeNames.h" | 36 #include "core/InputTypeNames.h" |
37 #include "core/css/CSSStyleDeclaration.h" | 37 #include "core/css/CSSStyleDeclaration.h" |
38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
39 #include "core/editing/Editor.h" | 39 #include "core/editing/Editor.h" |
40 #include "core/editing/markers/DocumentMarkerController.h" | 40 #include "core/editing/markers/DocumentMarkerController.h" |
41 #include "core/editing/spellcheck/SpellChecker.h" | 41 #include "core/editing/spellcheck/SpellChecker.h" |
| 42 #include "core/exported/WebDataSourceImpl.h" |
42 #include "core/frame/FrameView.h" | 43 #include "core/frame/FrameView.h" |
43 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
44 #include "core/frame/VisualViewport.h" | 45 #include "core/frame/VisualViewport.h" |
45 #include "core/html/HTMLAnchorElement.h" | 46 #include "core/html/HTMLAnchorElement.h" |
46 #include "core/html/HTMLFormElement.h" | 47 #include "core/html/HTMLFormElement.h" |
47 #include "core/html/HTMLImageElement.h" | 48 #include "core/html/HTMLImageElement.h" |
48 #include "core/html/HTMLInputElement.h" | 49 #include "core/html/HTMLInputElement.h" |
49 #include "core/html/HTMLMediaElement.h" | 50 #include "core/html/HTMLMediaElement.h" |
50 #include "core/html/HTMLPlugInElement.h" | 51 #include "core/html/HTMLPlugInElement.h" |
51 #include "core/input/EventHandler.h" | 52 #include "core/input/EventHandler.h" |
(...skipping 17 matching lines...) Expand all Loading... |
69 #include "public/platform/WebVector.h" | 70 #include "public/platform/WebVector.h" |
70 #include "public/web/WebContextMenuData.h" | 71 #include "public/web/WebContextMenuData.h" |
71 #include "public/web/WebFormElement.h" | 72 #include "public/web/WebFormElement.h" |
72 #include "public/web/WebFrameClient.h" | 73 #include "public/web/WebFrameClient.h" |
73 #include "public/web/WebMenuItemInfo.h" | 74 #include "public/web/WebMenuItemInfo.h" |
74 #include "public/web/WebPlugin.h" | 75 #include "public/web/WebPlugin.h" |
75 #include "public/web/WebSearchableFormData.h" | 76 #include "public/web/WebSearchableFormData.h" |
76 #include "public/web/WebTextCheckClient.h" | 77 #include "public/web/WebTextCheckClient.h" |
77 #include "public/web/WebViewClient.h" | 78 #include "public/web/WebViewClient.h" |
78 #include "web/ContextMenuAllowedScope.h" | 79 #include "web/ContextMenuAllowedScope.h" |
79 #include "web/WebDataSourceImpl.h" | |
80 #include "web/WebLocalFrameImpl.h" | 80 #include "web/WebLocalFrameImpl.h" |
81 #include "web/WebPluginContainerImpl.h" | 81 #include "web/WebPluginContainerImpl.h" |
82 #include "web/WebViewImpl.h" | 82 #include "web/WebViewImpl.h" |
83 | 83 |
84 namespace blink { | 84 namespace blink { |
85 | 85 |
86 // Figure out the URL of a page or subframe. Returns |page_type| as the type, | 86 // Figure out the URL of a page or subframe. Returns |page_type| as the type, |
87 // which indicates page or subframe, or ContextNodeType::kNone if the URL could | 87 // which indicates page or subframe, or ContextNodeType::kNone if the URL could |
88 // not be determined for some reason. | 88 // not be determined for some reason. |
89 static WebURL UrlFromFrame(LocalFrame* frame) { | 89 static WebURL UrlFromFrame(LocalFrame* frame) { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 sub_menu_items.Swap(output_items); | 464 sub_menu_items.Swap(output_items); |
465 } | 465 } |
466 | 466 |
467 void ContextMenuClientImpl::PopulateCustomMenuItems( | 467 void ContextMenuClientImpl::PopulateCustomMenuItems( |
468 const ContextMenu* default_menu, | 468 const ContextMenu* default_menu, |
469 WebContextMenuData* data) { | 469 WebContextMenuData* data) { |
470 PopulateSubMenuItems(default_menu->Items(), data->custom_items); | 470 PopulateSubMenuItems(default_menu->Items(), data->custom_items); |
471 } | 471 } |
472 | 472 |
473 } // namespace blink | 473 } // namespace blink |
OLD | NEW |