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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // System trace time in seconds. For example, on Chrome OS, this timestamp s
hould be | 427 // System trace time in seconds. For example, on Chrome OS, this timestamp s
hould be |
428 // synchronized with ftrace timestamps. | 428 // synchronized with ftrace timestamps. |
429 virtual double systemTraceTime() { return 0; } | 429 virtual double systemTraceTime() { return 0; } |
430 | 430 |
431 // WebKit clients must implement this funcion if they use cryptographic rand
omness. | 431 // WebKit clients must implement this funcion if they use cryptographic rand
omness. |
432 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; | 432 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; |
433 | 433 |
434 // Returns an interface to the main thread. Can be null if blink was initial
ized on a thread without a message loop. | 434 // Returns an interface to the main thread. Can be null if blink was initial
ized on a thread without a message loop. |
435 BLINK_PLATFORM_EXPORT WebThread* mainThread() const; | 435 BLINK_PLATFORM_EXPORT WebThread* mainThread() const; |
436 | 436 |
| 437 // Returns an interface to the compositor thread. This can be null if the |
| 438 // renderer was created with threaded rendering desabled. |
| 439 virtual WebThread* compositorThread() const { return 0; } |
| 440 |
437 // Vibration ----------------------------------------------------------- | 441 // Vibration ----------------------------------------------------------- |
438 | 442 |
439 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active | 443 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active |
440 // vibration it will be cancelled before the new one is started. | 444 // vibration it will be cancelled before the new one is started. |
441 virtual void vibrate(unsigned time) { } | 445 virtual void vibrate(unsigned time) { } |
442 | 446 |
443 // Cancels the current vibration, if there is one. | 447 // Cancels the current vibration, if there is one. |
444 virtual void cancelVibration() { } | 448 virtual void cancelVibration() { } |
445 | 449 |
446 | 450 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 protected: | 743 protected: |
740 BLINK_PLATFORM_EXPORT Platform(); | 744 BLINK_PLATFORM_EXPORT Platform(); |
741 virtual ~Platform() { } | 745 virtual ~Platform() { } |
742 | 746 |
743 WebThread* m_mainThread; | 747 WebThread* m_mainThread; |
744 }; | 748 }; |
745 | 749 |
746 } // namespace blink | 750 } // namespace blink |
747 | 751 |
748 #endif | 752 #endif |
OLD | NEW |