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

Side by Side Diff: Source/core/html/HTMLElement.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 | « Source/core/events/MouseEvent.cpp ('k') | Source/core/html/HTMLElement.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 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 bool spellcheck() const; 63 bool spellcheck() const;
64 void setSpellcheck(bool); 64 void setSpellcheck(bool);
65 65
66 bool translate() const; 66 bool translate() const;
67 void setTranslate(bool); 67 void setTranslate(bool);
68 68
69 const AtomicString& dir(); 69 const AtomicString& dir();
70 void setDir(const AtomicString&); 70 void setDir(const AtomicString&);
71 71
72 void click(); 72 void clickForBindings();
73 73
74 void accessKeyAction(bool sendMouseEvents) override; 74 void accessKeyAction(bool sendMouseEvents) override;
75 75
76 bool ieForbidsInsertHTML() const; 76 bool ieForbidsInsertHTML() const;
77 77
78 virtual HTMLFormElement* formOwner() const { return nullptr; } 78 virtual HTMLFormElement* formOwner() const { return nullptr; }
79 79
80 HTMLFormElement* findFormAncestor() const; 80 HTMLFormElement* findFormAncestor() const;
81 81
82 bool hasDirectionAuto() const; 82 bool hasDirectionAuto() const;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 178 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
179 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 179 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
180 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 180 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
181 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 181 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #include "core/HTMLElementTypeHelpers.h" 185 #include "core/HTMLElementTypeHelpers.h"
186 186
187 #endif // HTMLElement_h 187 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « Source/core/events/MouseEvent.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698