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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 645513006: Remove beforeunload events. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/core.gni ('k') | sky/engine/core/dom/Document.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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // input stream. 354 // input stream.
355 void explicitClose(); 355 void explicitClose();
356 // implicitClose() actually does the work of closing the input stream. 356 // implicitClose() actually does the work of closing the input stream.
357 void implicitClose(); 357 void implicitClose();
358 void checkCompleted(); 358 void checkCompleted();
359 359
360 void dispatchUnloadEvents(); 360 void dispatchUnloadEvents();
361 361
362 enum PageDismissalType { 362 enum PageDismissalType {
363 NoDismissal = 0, 363 NoDismissal = 0,
364 BeforeUnloadDismissal = 1,
365 PageHideDismissal = 2, 364 PageHideDismissal = 2,
366 UnloadDismissal = 3 365 UnloadDismissal = 3
367 }; 366 };
368 PageDismissalType pageDismissalEventBeingDispatched() const; 367 PageDismissalType pageDismissalEventBeingDispatched() const;
369 368
370 void cancelParsing(); 369 void cancelParsing();
371 370
372 const KURL& url() const { return m_url; } 371 const KURL& url() const { return m_url; }
373 void setURL(const KURL&); 372 void setURL(const KURL&);
374 373
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 566
568 bool allowExecutingScripts(Node*); 567 bool allowExecutingScripts(Node*);
569 568
570 void statePopped(PassRefPtr<SerializedScriptValue>); 569 void statePopped(PassRefPtr<SerializedScriptValue>);
571 570
572 enum LoadEventProgress { 571 enum LoadEventProgress {
573 LoadEventNotRun, 572 LoadEventNotRun,
574 LoadEventTried, 573 LoadEventTried,
575 LoadEventInProgress, 574 LoadEventInProgress,
576 LoadEventCompleted, 575 LoadEventCompleted,
577 BeforeUnloadEventInProgress,
578 BeforeUnloadEventCompleted,
579 PageHideInProgress, 576 PageHideInProgress,
580 UnloadEventInProgress, 577 UnloadEventInProgress,
581 UnloadEventHandled 578 UnloadEventHandled
582 }; 579 };
583 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN otRun; } 580 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN otRun; }
584 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn Progress; } 581 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn Progress; }
585 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp leted; } 582 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp leted; }
586 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres s; } 583 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres s; }
587 584
588 virtual bool isContextThread() const OVERRIDE FINAL; 585 virtual bool isContextThread() const OVERRIDE FINAL;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 Node* eventTargetNodeForDocument(Document*); 951 Node* eventTargetNodeForDocument(Document*);
955 952
956 } // namespace blink 953 } // namespace blink
957 954
958 #ifndef NDEBUG 955 #ifndef NDEBUG
959 // Outside the WebCore namespace for ease of invocation from gdb. 956 // Outside the WebCore namespace for ease of invocation from gdb.
960 void showLiveDocumentInstances(); 957 void showLiveDocumentInstances();
961 #endif 958 #endif
962 959
963 #endif // Document_h 960 #endif // Document_h
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698