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

Side by Side Diff: third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp

Issue 1609343002: Move hasPendingActivity from ActiveDOMObject to ScriptWrappable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void ActiveDOMObject::suspendIfNeeded() 61 void ActiveDOMObject::suspendIfNeeded()
62 { 62 {
63 #if ENABLE(ASSERT) 63 #if ENABLE(ASSERT)
64 ASSERT(!m_suspendIfNeededCalled); 64 ASSERT(!m_suspendIfNeededCalled);
65 m_suspendIfNeededCalled = true; 65 m_suspendIfNeededCalled = true;
66 #endif 66 #endif
67 if (ExecutionContext* context = executionContext()) 67 if (ExecutionContext* context = executionContext())
68 context->suspendActiveDOMObjectIfNeeded(this); 68 context->suspendActiveDOMObjectIfNeeded(this);
69 } 69 }
70 70
71 bool ActiveDOMObject::hasPendingActivity() const
72 {
73 return false;
74 }
75
76 void ActiveDOMObject::suspend() 71 void ActiveDOMObject::suspend()
77 { 72 {
78 } 73 }
79 74
80 void ActiveDOMObject::resume() 75 void ActiveDOMObject::resume()
81 { 76 {
82 } 77 }
83 78
84 void ActiveDOMObject::stop() 79 void ActiveDOMObject::stop()
85 { 80 {
(...skipping 10 matching lines...) Expand all
96 91
97 if (context->activeDOMObjectsAreSuspended()) { 92 if (context->activeDOMObjectsAreSuspended()) {
98 suspend(); 93 suspend();
99 return; 94 return;
100 } 95 }
101 96
102 resume(); 97 resume();
103 } 98 }
104 99
105 } // namespace blink 100 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ActiveDOMObject.h ('k') | third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698