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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 1888773003: Merge DragClientImpl into core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing file. Created 4 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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace blink { 44 namespace blink {
45 45
46 void fillWithEmptyClients(Page::PageClients& pageClients) 46 void fillWithEmptyClients(Page::PageClients& pageClients)
47 { 47 {
48 DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, (EmptyChromeClient::cre ate())); 48 DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, (EmptyChromeClient::cre ate()));
49 pageClients.chromeClient = &dummyChromeClient; 49 pageClients.chromeClient = &dummyChromeClient;
50 50
51 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ()); 51 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ());
52 pageClients.contextMenuClient = &dummyContextMenuClient; 52 pageClients.contextMenuClient = &dummyContextMenuClient;
53 53
54 DEFINE_STATIC_LOCAL(EmptyDragClient, dummyDragClient, ());
55 pageClients.dragClient = &dummyDragClient;
56
57 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ()); 54 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ());
58 pageClients.editorClient = &dummyEditorClient; 55 pageClients.editorClient = &dummyEditorClient;
59 56
60 DEFINE_STATIC_LOCAL(EmptySpellCheckerClient, dummySpellCheckerClient, ()); 57 DEFINE_STATIC_LOCAL(EmptySpellCheckerClient, dummySpellCheckerClient, ());
61 pageClients.spellCheckerClient = &dummySpellCheckerClient; 58 pageClients.spellCheckerClient = &dummySpellCheckerClient;
62 } 59 }
63 60
64 class EmptyPopupMenu : public PopupMenu { 61 class EmptyPopupMenu : public PopupMenu {
65 public: 62 public:
66 void show() override { } 63 void show() override { }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 { 171 {
175 return nullptr; 172 return nullptr;
176 } 173 }
177 174
178 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*) 175 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*)
179 { 176 {
180 return nullptr; 177 return nullptr;
181 } 178 }
182 179
183 } // namespace blink 180 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698