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

Side by Side Diff: Source/platform/Timer.h

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void augmentRepeatInterval(double delta) { 67 void augmentRepeatInterval(double delta) {
68 setNextFireTime(m_nextFireTime + delta); 68 setNextFireTime(m_nextFireTime + delta);
69 m_repeatInterval += delta; 69 m_repeatInterval += delta;
70 } 70 }
71 71
72 void didChangeAlignmentInterval(); 72 void didChangeAlignmentInterval();
73 73
74 static void fireTimersInNestedEventLoop(); 74 static void fireTimersInNestedEventLoop();
75 75
76 virtual void trace(Visitor*) { }
77
76 private: 78 private:
77 virtual void fired() = 0; 79 virtual void fired() = 0;
78 80
79 virtual double alignedFireTime(double fireTime) const { return fireTime; } 81 virtual double alignedFireTime(double fireTime) const { return fireTime; }
80 82
81 void checkConsistency() const; 83 void checkConsistency() const;
82 void checkHeapIndex() const; 84 void checkHeapIndex() const;
83 85
84 void setNextFireTime(double); 86 void setNextFireTime(double);
85 87
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 TimerFiredClass* m_object; 191 TimerFiredClass* m_object;
190 TimerFiredFunction m_function; 192 TimerFiredFunction m_function;
191 193
192 double m_delay; 194 double m_delay;
193 bool m_shouldRestartWhenTimerFires; 195 bool m_shouldRestartWhenTimerFires;
194 }; 196 };
195 197
196 } 198 }
197 199
198 #endif 200 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698