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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 1053073002: Improve window.closed fidelity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowBase64.h" 10 #include "core/frame/DOMWindowBase64.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnima tionIteration); 207 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnima tionIteration);
208 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, webkitAnimationEn d); 208 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, webkitAnimationEn d);
209 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, webkitTransition End); 209 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, webkitTransition End);
210 210
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); 211 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange);
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); 212 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); 213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
215 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 215 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
216 216
217 protected:
218 DOMWindow();
219
220 // Set to true when close() has been called. Needed for
221 // |window.closed| determinism; having it return 'true'
222 // only after the render widget's deferred window close
223 // operation has been performed, exposes (confusing)
224 // implementation details to scripts.
225 bool m_windowIsClosing;
226
217 private: 227 private:
218 mutable RefPtrWillBeMember<Location> m_location; 228 mutable RefPtrWillBeMember<Location> m_location;
219 }; 229 };
220 230
221 } // namespace blink 231 } // namespace blink
222 232
223 #endif // DOMWindow_h 233 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698