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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/EmptyClients.h
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.h b/third_party/WebKit/Source/core/loader/EmptyClients.h
index 4a90fbd3e924842c4aceaa0a9a90509df26f9caf..630ab62feca408bb9f1095e2f5f23f269f64dea3 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.h
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.h
@@ -34,7 +34,6 @@
#include "core/loader/FrameLoaderClient.h"
#include "core/page/ChromeClient.h"
#include "core/page/ContextMenuClient.h"
-#include "core/page/DragClient.h"
#include "core/page/EditorClient.h"
#include "core/page/Page.h"
#include "core/page/SpellCheckerClient.h"
@@ -92,6 +91,9 @@ public:
bool hadFormInteraction() const override { return false; }
+ void startDragging(LocalFrame*, const WebDragData&, WebDragOperationsMask, const WebImage& dragImage, const WebPoint& dragImageOffset) {}
+ bool acceptsLoadDrops() const override { return true; }
+
void setToolbarsVisible(bool) override {}
bool toolbarsVisible() override { return false; }
@@ -326,15 +328,6 @@ public:
void clearContextMenu() override {}
};
-class EmptyDragClient final : public DragClient {
- WTF_MAKE_NONCOPYABLE(EmptyDragClient); USING_FAST_MALLOC(EmptyDragClient);
-public:
- EmptyDragClient() {}
- ~EmptyDragClient() override {}
- DragDestinationAction actionMaskForDrag(DragData*) override { return DragDestinationActionNone; }
- void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {}
-};
-
CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698