Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

Issue 2805733003: Rewrite references to "wtf/" to "platform/wtf/" in web. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "core/loader/DocumentLoader.h" 54 #include "core/loader/DocumentLoader.h"
55 #include "core/loader/FrameLoader.h" 55 #include "core/loader/FrameLoader.h"
56 #include "core/loader/HistoryItem.h" 56 #include "core/loader/HistoryItem.h"
57 #include "core/page/ContextMenuController.h" 57 #include "core/page/ContextMenuController.h"
58 #include "core/page/Page.h" 58 #include "core/page/Page.h"
59 #include "platform/ContextMenu.h" 59 #include "platform/ContextMenu.h"
60 #include "platform/FrameViewBase.h" 60 #include "platform/FrameViewBase.h"
61 #include "platform/exported/WrappedResourceResponse.h" 61 #include "platform/exported/WrappedResourceResponse.h"
62 #include "platform/text/TextBreakIterator.h" 62 #include "platform/text/TextBreakIterator.h"
63 #include "platform/weborigin/KURL.h" 63 #include "platform/weborigin/KURL.h"
64 #include "platform/wtf/text/WTFString.h"
64 #include "public/platform/WebPoint.h" 65 #include "public/platform/WebPoint.h"
65 #include "public/platform/WebString.h" 66 #include "public/platform/WebString.h"
66 #include "public/platform/WebURL.h" 67 #include "public/platform/WebURL.h"
67 #include "public/platform/WebURLResponse.h" 68 #include "public/platform/WebURLResponse.h"
68 #include "public/platform/WebVector.h" 69 #include "public/platform/WebVector.h"
69 #include "public/web/WebContextMenuData.h" 70 #include "public/web/WebContextMenuData.h"
70 #include "public/web/WebFormElement.h" 71 #include "public/web/WebFormElement.h"
71 #include "public/web/WebFrameClient.h" 72 #include "public/web/WebFrameClient.h"
72 #include "public/web/WebMenuItemInfo.h" 73 #include "public/web/WebMenuItemInfo.h"
73 #include "public/web/WebPlugin.h" 74 #include "public/web/WebPlugin.h"
74 #include "public/web/WebSearchableFormData.h" 75 #include "public/web/WebSearchableFormData.h"
75 #include "public/web/WebTextCheckClient.h" 76 #include "public/web/WebTextCheckClient.h"
76 #include "public/web/WebViewClient.h" 77 #include "public/web/WebViewClient.h"
77 #include "web/ContextMenuAllowedScope.h" 78 #include "web/ContextMenuAllowedScope.h"
78 #include "web/WebDataSourceImpl.h" 79 #include "web/WebDataSourceImpl.h"
79 #include "web/WebLocalFrameImpl.h" 80 #include "web/WebLocalFrameImpl.h"
80 #include "web/WebPluginContainerImpl.h" 81 #include "web/WebPluginContainerImpl.h"
81 #include "web/WebViewImpl.h" 82 #include "web/WebViewImpl.h"
82 #include "wtf/text/WTFString.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) {
90 if (frame) { 90 if (frame) {
91 DocumentLoader* dl = frame->loader().documentLoader(); 91 DocumentLoader* dl = frame->loader().documentLoader();
92 if (dl) { 92 if (dl) {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 subMenuItems.swap(outputItems); 450 subMenuItems.swap(outputItems);
451 } 451 }
452 452
453 void ContextMenuClientImpl::populateCustomMenuItems( 453 void ContextMenuClientImpl::populateCustomMenuItems(
454 const ContextMenu* defaultMenu, 454 const ContextMenu* defaultMenu,
455 WebContextMenuData* data) { 455 WebContextMenuData* data) {
456 populateSubMenuItems(defaultMenu->items(), data->customItems); 456 populateSubMenuItems(defaultMenu->items(), data->customItems);
457 } 457 }
458 458
459 } // namespace blink 459 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ContextMenuAllowedScope.h ('k') | third_party/WebKit/Source/web/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698