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

Side by Side 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 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, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef EmptyClients_h 29 #ifndef EmptyClients_h
30 #define EmptyClients_h 30 #define EmptyClients_h
31 31
32 #include "core/CoreExport.h" 32 #include "core/CoreExport.h"
33 #include "core/editing/commands/UndoStep.h" 33 #include "core/editing/commands/UndoStep.h"
34 #include "core/loader/FrameLoaderClient.h" 34 #include "core/loader/FrameLoaderClient.h"
35 #include "core/page/ChromeClient.h" 35 #include "core/page/ChromeClient.h"
36 #include "core/page/ContextMenuClient.h" 36 #include "core/page/ContextMenuClient.h"
37 #include "core/page/DragClient.h"
38 #include "core/page/EditorClient.h" 37 #include "core/page/EditorClient.h"
39 #include "core/page/Page.h" 38 #include "core/page/Page.h"
40 #include "core/page/SpellCheckerClient.h" 39 #include "core/page/SpellCheckerClient.h"
41 #include "platform/DragImage.h" 40 #include "platform/DragImage.h"
42 #include "platform/geometry/FloatPoint.h" 41 #include "platform/geometry/FloatPoint.h"
43 #include "platform/geometry/FloatRect.h" 42 #include "platform/geometry/FloatRect.h"
44 #include "platform/geometry/IntRect.h" 43 #include "platform/geometry/IntRect.h"
45 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
46 #include "platform/network/ResourceError.h" 45 #include "platform/network/ResourceError.h"
47 #include "platform/text/TextCheckerClient.h" 46 #include "platform/text/TextCheckerClient.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void takeFocus(WebFocusType) override {} 84 void takeFocus(WebFocusType) override {}
86 85
87 void focusedNodeChanged(Node*, Node*) override {} 86 void focusedNodeChanged(Node*, Node*) override {}
88 Page* createWindow(LocalFrame*, const FrameLoadRequest&, const WindowFeature s&, NavigationPolicy, ShouldSetOpener) override { return nullptr; } 87 Page* createWindow(LocalFrame*, const FrameLoadRequest&, const WindowFeature s&, NavigationPolicy, ShouldSetOpener) override { return nullptr; }
89 void show(NavigationPolicy) override {} 88 void show(NavigationPolicy) override {}
90 89
91 void didOverscroll(const FloatSize&, const FloatSize&, const FloatPoint&, co nst FloatSize&) override {} 90 void didOverscroll(const FloatSize&, const FloatSize&, const FloatPoint&, co nst FloatSize&) override {}
92 91
93 bool hadFormInteraction() const override { return false; } 92 bool hadFormInteraction() const override { return false; }
94 93
94 void startDragging(LocalFrame*, const WebDragData&, WebDragOperationsMask, c onst WebImage& dragImage, const WebPoint& dragImageOffset) {}
95 bool acceptsLoadDrops() const override { return true; }
96
95 void setToolbarsVisible(bool) override {} 97 void setToolbarsVisible(bool) override {}
96 bool toolbarsVisible() override { return false; } 98 bool toolbarsVisible() override { return false; }
97 99
98 void setStatusbarVisible(bool) override {} 100 void setStatusbarVisible(bool) override {}
99 bool statusbarVisible() override { return false; } 101 bool statusbarVisible() override { return false; }
100 102
101 void setScrollbarsVisible(bool) override {} 103 void setScrollbarsVisible(bool) override {}
102 bool scrollbarsVisible() override { return false; } 104 bool scrollbarsVisible() override { return false; }
103 105
104 void setMenubarVisible(bool) override {} 106 void setMenubarVisible(bool) override {}
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 321
320 class EmptyContextMenuClient final : public ContextMenuClient { 322 class EmptyContextMenuClient final : public ContextMenuClient {
321 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext MenuClient); 323 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext MenuClient);
322 public: 324 public:
323 EmptyContextMenuClient() {} 325 EmptyContextMenuClient() {}
324 ~EmptyContextMenuClient() override {} 326 ~EmptyContextMenuClient() override {}
325 void showContextMenu(const ContextMenu*) override {} 327 void showContextMenu(const ContextMenu*) override {}
326 void clearContextMenu() override {} 328 void clearContextMenu() override {}
327 }; 329 };
328 330
329 class EmptyDragClient final : public DragClient {
330 WTF_MAKE_NONCOPYABLE(EmptyDragClient); USING_FAST_MALLOC(EmptyDragClient);
331 public:
332 EmptyDragClient() {}
333 ~EmptyDragClient() override {}
334 DragDestinationAction actionMaskForDrag(DragData*) override { return DragDes tinationActionNone; }
335 void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTransfer*, LocalFrame*, bool) override {}
336 };
337
338 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 331 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
339 332
340 } // namespace blink 333 } // namespace blink
341 334
342 #endif // EmptyClients_h 335 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698