OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "web/TextFinder.h" | 7 #include "web/TextFinder.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 { | 414 { |
415 return ensureFallback().getTraceCategoryEnabledFlag(categoryName); | 415 return ensureFallback().getTraceCategoryEnabledFlag(categoryName); |
416 } | 416 } |
417 | 417 |
418 // These two methods allow timers to work correctly. | 418 // These two methods allow timers to work correctly. |
419 virtual double monotonicallyIncreasingTime() override | 419 virtual double monotonicallyIncreasingTime() override |
420 { | 420 { |
421 return ensureFallback().monotonicallyIncreasingTime(); | 421 return ensureFallback().monotonicallyIncreasingTime(); |
422 } | 422 } |
423 | 423 |
| 424 virtual void setSharedTimerFireInterval(double interval) override |
| 425 { |
| 426 ensureFallback().setSharedTimerFireInterval(interval); |
| 427 } |
| 428 |
424 virtual WebThread* currentThread() override { return ensureFallback().cu
rrentThread(); } | 429 virtual WebThread* currentThread() override { return ensureFallback().cu
rrentThread(); } |
425 virtual WebUnitTestSupport* unitTestSupport() override { return ensureFa
llback().unitTestSupport(); } | 430 virtual WebUnitTestSupport* unitTestSupport() override { return ensureFa
llback().unitTestSupport(); } |
426 virtual WebString defaultLocale() override { return ensureFallback().def
aultLocale(); } | 431 virtual WebString defaultLocale() override { return ensureFallback().def
aultLocale(); } |
427 virtual WebCompositorSupport* compositorSupport() override { return ensu
reFallback().compositorSupport(); } | 432 virtual WebCompositorSupport* compositorSupport() override { return ensu
reFallback().compositorSupport(); } |
428 | 433 |
429 double m_timeCounter; | 434 double m_timeCounter; |
430 Platform* m_fallbackPlatform; | 435 Platform* m_fallbackPlatform; |
431 }; | 436 }; |
432 | 437 |
433 TimeProxyPlatform m_proxyTimePlatform; | 438 TimeProxyPlatform m_proxyTimePlatform; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 // There will be only one iteration before timeout, because increment | 472 // There will be only one iteration before timeout, because increment |
468 // of the TimeProxyPlatform timer is greater than timeout threshold. | 473 // of the TimeProxyPlatform timer is greater than timeout threshold. |
469 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); | 474 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); |
470 while (textFinder().scopingInProgress()) | 475 while (textFinder().scopingInProgress()) |
471 runPendingTasks(); | 476 runPendingTasks(); |
472 | 477 |
473 EXPECT_EQ(4, textFinder().totalMatchCount()); | 478 EXPECT_EQ(4, textFinder().totalMatchCount()); |
474 } | 479 } |
475 | 480 |
476 } // namespace | 481 } // namespace |
OLD | NEW |