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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/ContextMenuClientImpl.h ('k') | Source/web/DOMUtilitiesPrivate.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "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 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)
88 { 88 {
89 if (frame) { 89 if (frame) {
90 DocumentLoader* dl = frame->loader().documentLoader(); 90 DocumentLoader* dl = frame->loader().documentLoader();
91 if (dl) { 91 if (dl) {
92 WebDataSource* ds = WebDataSourceImpl::fromDocumentLoader(dl); 92 WebDataSource* ds = WebDataSourceImpl::fromDocumentLoader(dl);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 for (size_t i = 0; i < subItems.size(); ++i) 414 for (size_t i = 0; i < subItems.size(); ++i)
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 blink
OLDNEW
« no previous file with comments | « Source/web/ContextMenuClientImpl.h ('k') | Source/web/DOMUtilitiesPrivate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698