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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 } 640 }
641 641
642 void AXObjectCacheImpl::childrenChanged(AXObject* obj) 642 void AXObjectCacheImpl::childrenChanged(AXObject* obj)
643 { 643 {
644 if (!obj) 644 if (!obj)
645 return; 645 return;
646 646
647 obj->childrenChanged(); 647 obj->childrenChanged();
648 } 648 }
649 649
650 void AXObjectCacheImpl::notificationPostTimerFired(Timer<AXObjectCacheImpl>*) 650 void AXObjectCacheImpl::notificationPostTimerFired(TimerBase*)
651 { 651 {
652 m_notificationPostTimer.stop(); 652 m_notificationPostTimer.stop();
653 653
654 unsigned i = 0, count = m_notificationsToPost.size(); 654 unsigned i = 0, count = m_notificationsToPost.size();
655 for (i = 0; i < count; ++i) { 655 for (i = 0; i < count; ++i) {
656 AXObject* obj = m_notificationsToPost[i].first; 656 AXObject* obj = m_notificationsToPost[i].first;
657 657
658 if (!obj->axObjectID()) 658 if (!obj->axObjectID())
659 continue; 659 continue;
660 660
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 visitor->trace(m_document); 1279 visitor->trace(m_document);
1280 visitor->trace(m_nodeObjectMapping); 1280 visitor->trace(m_nodeObjectMapping);
1281 1281
1282 visitor->trace(m_objects); 1282 visitor->trace(m_objects);
1283 visitor->trace(m_notificationsToPost); 1283 visitor->trace(m_notificationsToPost);
1284 1284
1285 AXObjectCache::trace(visitor); 1285 AXObjectCache::trace(visitor);
1286 } 1286 }
1287 1287
1288 } // namespace blink 1288 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698