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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.h

Issue 1477353002: Revert of Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void setVisibilityState(PageVisibilityState, bool); 178 void setVisibilityState(PageVisibilityState, bool);
179 179
180 bool isCursorVisible() const; 180 bool isCursorVisible() const;
181 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } 181 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
182 182
183 #if ENABLE(ASSERT) 183 #if ENABLE(ASSERT)
184 void setIsPainting(bool painting) { m_isPainting = painting; } 184 void setIsPainting(bool painting) { m_isPainting = painting; }
185 bool isPainting() const { return m_isPainting; } 185 bool isPainting() const { return m_isPainting; }
186 #endif 186 #endif
187 187
188 double timerAlignmentInterval() const;
189
188 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect edMixin { 190 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect edMixin {
189 public: 191 public:
190 virtual void multisamplingChanged(bool) = 0; 192 virtual void multisamplingChanged(bool) = 0;
191 }; 193 };
192 194
193 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); 195 void addMultisamplingChangedObserver(MultisamplingChangedObserver*);
194 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); 196 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*);
195 197
196 void didCommitLoad(LocalFrame*); 198 void didCommitLoad(LocalFrame*);
197 199
198 void acceptLanguagesChanged(); 200 void acceptLanguagesChanged();
199 201
200 static void networkStateChanged(bool online); 202 static void networkStateChanged(bool online);
201 203
202 MemoryPurgeController& memoryPurgeController(); 204 MemoryPurgeController& memoryPurgeController();
203 205
204 void purgeMemory(MemoryPurgeMode, DeviceKind) override; 206 void purgeMemory(MemoryPurgeMode, DeviceKind) override;
205 207
206 DECLARE_TRACE(); 208 DECLARE_TRACE();
207 209
208 void willCloseLayerTreeView(); 210 void willCloseLayerTreeView();
209 void willBeDestroyed(); 211 void willBeDestroyed();
210 212
211 private: 213 private:
212 void initGroup(); 214 void initGroup();
213 215
216 void setTimerAlignmentInterval(double);
217
214 void setNeedsLayoutInAllFrames(); 218 void setNeedsLayoutInAllFrames();
215 219
216 // SettingsDelegate overrides. 220 // SettingsDelegate overrides.
217 void settingsChanged(SettingsDelegate::ChangeType) override; 221 void settingsChanged(SettingsDelegate::ChangeType) override;
218 222
219 RefPtrWillBeMember<PageAnimator> m_animator; 223 RefPtrWillBeMember<PageAnimator> m_animator;
220 const OwnPtrWillBeMember<AutoscrollController> m_autoscrollController; 224 const OwnPtrWillBeMember<AutoscrollController> m_autoscrollController;
221 RawPtrWillBeMember<ChromeClient> m_chromeClient; 225 RawPtrWillBeMember<ChromeClient> m_chromeClient;
222 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController; 226 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController;
223 const OwnPtrWillBeMember<DragController> m_dragController; 227 const OwnPtrWillBeMember<DragController> m_dragController;
(...skipping 26 matching lines...) Expand all
250 UseCounter m_useCounter; 254 UseCounter m_useCounter;
251 OriginsUsingFeatures m_originsUsingFeatures; 255 OriginsUsingFeatures m_originsUsingFeatures;
252 256
253 bool m_openedByDOM; 257 bool m_openedByDOM;
254 258
255 bool m_tabKeyCyclesThroughElements; 259 bool m_tabKeyCyclesThroughElements;
256 bool m_defersLoading; 260 bool m_defersLoading;
257 261
258 float m_deviceScaleFactor; 262 float m_deviceScaleFactor;
259 263
264 double m_timerAlignmentInterval;
265
260 PageVisibilityState m_visibilityState; 266 PageVisibilityState m_visibilityState;
261 267
262 bool m_isCursorVisible; 268 bool m_isCursorVisible;
263 269
264 #if ENABLE(ASSERT) 270 #if ENABLE(ASSERT)
265 bool m_isPainting; 271 bool m_isPainting;
266 #endif 272 #endif
267 273
268 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers; 274 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers;
269 275
270 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 276 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
271 // FIXME: Most of the members of Page should move onto FrameHost. 277 // FIXME: Most of the members of Page should move onto FrameHost.
272 OwnPtrWillBeMember<FrameHost> m_frameHost; 278 OwnPtrWillBeMember<FrameHost> m_frameHost;
273 279
274 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; 280 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController;
275 }; 281 };
276 282
277 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 283 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
278 284
279 } // namespace blink 285 } // namespace blink
280 286
281 #endif // Page_h 287 #endif // Page_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/SuspendableTimer.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698