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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix tests Created 3 years, 7 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 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef EmptyClients_h 29 #ifndef EmptyClients_h
30 #define EmptyClients_h 30 #define EmptyClients_h
31 31
32 #include <memory> 32 #include <memory>
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/events/MouseEvent.h"
35 #include "core/frame/ContentSettingsClient.h" 36 #include "core/frame/ContentSettingsClient.h"
36 #include "core/frame/LocalFrameClient.h" 37 #include "core/frame/LocalFrameClient.h"
37 #include "core/frame/RemoteFrameClient.h" 38 #include "core/frame/RemoteFrameClient.h"
38 #include "core/page/ChromeClient.h" 39 #include "core/page/ChromeClient.h"
39 #include "core/page/ContextMenuClient.h" 40 #include "core/page/ContextMenuClient.h"
40 #include "core/page/EditorClient.h" 41 #include "core/page/EditorClient.h"
41 #include "core/page/Page.h" 42 #include "core/page/Page.h"
42 #include "core/page/SpellCheckerClient.h" 43 #include "core/page/SpellCheckerClient.h"
43 #include "platform/DragImage.h" 44 #include "platform/DragImage.h"
44 #include "platform/WebFrameScheduler.h" 45 #include "platform/WebFrameScheduler.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 bool HandleKeyboardEvent(LocalFrame*) override { return false; } 441 bool HandleKeyboardEvent(LocalFrame*) override { return false; }
441 }; 442 };
442 443
443 class EmptyContextMenuClient final : public ContextMenuClient { 444 class EmptyContextMenuClient final : public ContextMenuClient {
444 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); 445 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient);
445 USING_FAST_MALLOC(EmptyContextMenuClient); 446 USING_FAST_MALLOC(EmptyContextMenuClient);
446 447
447 public: 448 public:
448 EmptyContextMenuClient() {} 449 EmptyContextMenuClient() {}
449 ~EmptyContextMenuClient() override {} 450 ~EmptyContextMenuClient() override {}
450 bool ShowContextMenu(const ContextMenu*, bool) override { return false; } 451 bool ShowContextMenu(const ContextMenu*,
452 MouseEvent::SyntheticEventType) override {
453 return false;
454 }
451 void ClearContextMenu() override {} 455 void ClearContextMenu() override {}
452 }; 456 };
453 457
454 class CORE_EXPORT EmptyRemoteFrameClient 458 class CORE_EXPORT EmptyRemoteFrameClient
455 : NON_EXPORTED_BASE(public RemoteFrameClient) { 459 : NON_EXPORTED_BASE(public RemoteFrameClient) {
456 WTF_MAKE_NONCOPYABLE(EmptyRemoteFrameClient); 460 WTF_MAKE_NONCOPYABLE(EmptyRemoteFrameClient);
457 461
458 public: 462 public:
459 EmptyRemoteFrameClient(); 463 EmptyRemoteFrameClient();
460 464
(...skipping 22 matching lines...) Expand all
483 Frame* NextSibling() const override { return nullptr; } 487 Frame* NextSibling() const override { return nullptr; }
484 Frame* FirstChild() const override { return nullptr; } 488 Frame* FirstChild() const override { return nullptr; }
485 void FrameFocused() const override {} 489 void FrameFocused() const override {}
486 }; 490 };
487 491
488 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&); 492 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&);
489 493
490 } // namespace blink 494 } // namespace blink
491 495
492 #endif // EmptyClients_h 496 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698