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

Side by Side Diff: sky/engine/core/events/Event.cpp

Issue 645513006: Remove beforeunload events. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/core/events/Event.h ('k') | sky/engine/core/events/EventTarget.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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool Event::isClipboardEvent() const 181 bool Event::isClipboardEvent() const
182 { 182 {
183 return false; 183 return false;
184 } 184 }
185 185
186 bool Event::isBeforeTextInsertedEvent() const 186 bool Event::isBeforeTextInsertedEvent() const
187 { 187 {
188 return false; 188 return false;
189 } 189 }
190 190
191 bool Event::isBeforeUnloadEvent() const
192 {
193 return false;
194 }
195
196 void Event::setTarget(PassRefPtrWillBeRawPtr<EventTarget> target) 191 void Event::setTarget(PassRefPtrWillBeRawPtr<EventTarget> target)
197 { 192 {
198 if (m_target == target) 193 if (m_target == target)
199 return; 194 return;
200 195
201 m_target = target; 196 m_target = target;
202 if (m_target) 197 if (m_target)
203 receivedTarget(); 198 receivedTarget();
204 } 199 }
205 200
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 249
255 void Event::trace(Visitor* visitor) 250 void Event::trace(Visitor* visitor)
256 { 251 {
257 visitor->trace(m_currentTarget); 252 visitor->trace(m_currentTarget);
258 visitor->trace(m_target); 253 visitor->trace(m_target);
259 visitor->trace(m_underlyingEvent); 254 visitor->trace(m_underlyingEvent);
260 visitor->trace(m_eventPath); 255 visitor->trace(m_eventPath);
261 } 256 }
262 257
263 } // namespace blink 258 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/events/Event.h ('k') | sky/engine/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698