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

Side by Side Diff: third_party/WebKit/Source/core/events/EventPath.h

Issue 2832073003: Send mouse events for disabled form controls. (Closed)
Patch Set: Fix nits 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 return *window_event_context_; 72 return *window_event_context_;
73 } 73 }
74 void EnsureWindowEventContext(); 74 void EnsureWindowEventContext();
75 75
76 bool IsEmpty() const { return node_event_contexts_.IsEmpty(); } 76 bool IsEmpty() const { return node_event_contexts_.IsEmpty(); }
77 size_t size() const { return node_event_contexts_.size(); } 77 size_t size() const { return node_event_contexts_.size(); }
78 78
79 void AdjustForRelatedTarget(Node&, EventTarget* related_target); 79 void AdjustForRelatedTarget(Node&, EventTarget* related_target);
80 void AdjustForTouchEvent(TouchEvent&); 80 void AdjustForTouchEvent(TouchEvent&);
81 81
82 bool DisabledFormControlExistsInPath() const;
83
82 NodeEventContext& TopNodeEventContext(); 84 NodeEventContext& TopNodeEventContext();
83 85
84 static EventTarget* EventTargetRespectingTargetRules(Node&); 86 static EventTarget* EventTargetRespectingTargetRules(Node&);
85 87
86 DECLARE_TRACE(); 88 DECLARE_TRACE();
87 void Clear() { 89 void Clear() {
88 node_event_contexts_.clear(); 90 node_event_contexts_.clear();
89 tree_scope_event_contexts_.clear(); 91 tree_scope_event_contexts_.clear();
90 } 92 }
91 93
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 HeapVector<NodeEventContext> node_event_contexts_; 134 HeapVector<NodeEventContext> node_event_contexts_;
133 Member<Node> node_; 135 Member<Node> node_;
134 Member<Event> event_; 136 Member<Event> event_;
135 HeapVector<Member<TreeScopeEventContext>> tree_scope_event_contexts_; 137 HeapVector<Member<TreeScopeEventContext>> tree_scope_event_contexts_;
136 Member<WindowEventContext> window_event_context_; 138 Member<WindowEventContext> window_event_context_;
137 }; 139 };
138 140
139 } // namespace blink 141 } // namespace blink
140 142
141 #endif 143 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698