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

Side by Side Diff: Source/core/dom/Node.h

Issue 1285793004: isTrusted is incorrect for events generated by Element.click() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change bool on SimulatedMouseEvent to the enum class introduced everywhere else Created 5 years, 4 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
« no previous file with comments | « LayoutTests/fast/events/event-trusted-expected.txt ('k') | Source/core/dom/Node.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 virtual void handleLocalEvents(Event&); 629 virtual void handleLocalEvents(Event&);
630 630
631 void dispatchSubtreeModifiedEvent(); 631 void dispatchSubtreeModifiedEvent();
632 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde rlyingEvent); 632 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde rlyingEvent);
633 633
634 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 634 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
635 bool dispatchWheelEvent(const PlatformWheelEvent&); 635 bool dispatchWheelEvent(const PlatformWheelEvent&);
636 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = nullptr); 636 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = nullptr);
637 bool dispatchGestureEvent(const PlatformGestureEvent&); 637 bool dispatchGestureEvent(const PlatformGestureEvent&);
638 638
639 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents); 639 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents, SimulatedClickCreationScope = SimulatedClickCreationScop e::FromUserAgent);
640 640
641 void dispatchInputEvent(); 641 void dispatchInputEvent();
642 642
643 // Perform the default action for an event. 643 // Perform the default action for an event.
644 virtual void defaultEventHandler(Event*); 644 virtual void defaultEventHandler(Event*);
645 virtual void willCallDefaultEventHandler(const Event&); 645 virtual void willCallDefaultEventHandler(const Event&);
646 646
647 EventTargetData* eventTargetData() override; 647 EventTargetData* eventTargetData() override;
648 EventTargetData& ensureEventTargetData() override; 648 EventTargetData& ensureEventTargetData() override;
649 649
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 } // namespace blink 899 } // namespace blink
900 900
901 #ifndef NDEBUG 901 #ifndef NDEBUG
902 // Outside the WebCore namespace for ease of invocation from gdb. 902 // Outside the WebCore namespace for ease of invocation from gdb.
903 void showNode(const blink::Node*); 903 void showNode(const blink::Node*);
904 void showTree(const blink::Node*); 904 void showTree(const blink::Node*);
905 void showNodePath(const blink::Node*); 905 void showNodePath(const blink::Node*);
906 #endif 906 #endif
907 907
908 #endif // Node_h 908 #endif // Node_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/event-trusted-expected.txt ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698