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

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

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/ContextFeaturesClientImpl.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "core/page/ContextMenuController.h" 62 #include "core/page/ContextMenuController.h"
63 #include "core/page/EventHandler.h" 63 #include "core/page/EventHandler.h"
64 #include "core/frame/FrameView.h" 64 #include "core/frame/FrameView.h"
65 #include "core/page/Page.h" 65 #include "core/page/Page.h"
66 #include "core/page/Settings.h" 66 #include "core/page/Settings.h"
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 "platform/weborigin/KURL.h"
72 #include "public/platform/WebPoint.h" 73 #include "public/platform/WebPoint.h"
73 #include "public/platform/WebString.h" 74 #include "public/platform/WebString.h"
74 #include "public/platform/WebURL.h" 75 #include "public/platform/WebURL.h"
75 #include "public/platform/WebURLResponse.h" 76 #include "public/platform/WebURLResponse.h"
76 #include "public/platform/WebVector.h" 77 #include "public/platform/WebVector.h"
77 #include "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 blink { 82 namespace blink {
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
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 blink 424 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ContextFeaturesClientImpl.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698