| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // it is recommended that the fixed point be no further in the past than the
epoch. | 421 // it is recommended that the fixed point be no further in the past than the
epoch. |
| 422 virtual double monotonicallyIncreasingTime() { return 0; } | 422 virtual double monotonicallyIncreasingTime() { return 0; } |
| 423 | 423 |
| 424 // System trace time in seconds. For example, on Chrome OS, this timestamp s
hould be | 424 // System trace time in seconds. For example, on Chrome OS, this timestamp s
hould be |
| 425 // synchronized with ftrace timestamps. | 425 // synchronized with ftrace timestamps. |
| 426 virtual double systemTraceTime() { return 0; } | 426 virtual double systemTraceTime() { return 0; } |
| 427 | 427 |
| 428 // WebKit clients must implement this funcion if they use cryptographic rand
omness. | 428 // WebKit clients must implement this funcion if they use cryptographic rand
omness. |
| 429 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; | 429 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; |
| 430 | 430 |
| 431 // Delayed work is driven by a shared timer. | |
| 432 typedef void (*SharedTimerFunction)(); | |
| 433 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction)
{ } | |
| 434 virtual void setSharedTimerFireInterval(double) { } | |
| 435 virtual void stopSharedTimer() { } | |
| 436 | |
| 437 // Returns an interface to the main thread. Can be null if blink was initial
ized on a thread without a message loop. | 431 // Returns an interface to the main thread. Can be null if blink was initial
ized on a thread without a message loop. |
| 438 BLINK_PLATFORM_EXPORT WebThread* mainThread() const; | 432 BLINK_PLATFORM_EXPORT WebThread* mainThread() const; |
| 439 | 433 |
| 440 // Vibration ----------------------------------------------------------- | 434 // Vibration ----------------------------------------------------------- |
| 441 | 435 |
| 442 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active | 436 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active |
| 443 // vibration it will be cancelled before the new one is started. | 437 // vibration it will be cancelled before the new one is started. |
| 444 virtual void vibrate(unsigned time) { } | 438 virtual void vibrate(unsigned time) { } |
| 445 | 439 |
| 446 // Cancels the current vibration, if there is one. | 440 // Cancels the current vibration, if there is one. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 protected: | 708 protected: |
| 715 BLINK_PLATFORM_EXPORT Platform(); | 709 BLINK_PLATFORM_EXPORT Platform(); |
| 716 virtual ~Platform() { } | 710 virtual ~Platform() { } |
| 717 | 711 |
| 718 WebThread* m_mainThread; | 712 WebThread* m_mainThread; |
| 719 }; | 713 }; |
| 720 | 714 |
| 721 } // namespace blink | 715 } // namespace blink |
| 722 | 716 |
| 723 #endif | 717 #endif |
| OLD | NEW |