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 | |
441 // Vibration ----------------------------------------------------------- | 437 // Vibration ----------------------------------------------------------- |
442 | 438 |
443 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active | 439 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active |
444 // vibration it will be cancelled before the new one is started. | 440 // vibration it will be cancelled before the new one is started. |
445 virtual void vibrate(unsigned time) { } | 441 virtual void vibrate(unsigned time) { } |
446 | 442 |
447 // Cancels the current vibration, if there is one. | 443 // Cancels the current vibration, if there is one. |
448 virtual void cancelVibration() { } | 444 virtual void cancelVibration() { } |
449 | 445 |
450 | 446 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 protected: | 728 protected: |
733 BLINK_PLATFORM_EXPORT Platform(); | 729 BLINK_PLATFORM_EXPORT Platform(); |
734 virtual ~Platform() { } | 730 virtual ~Platform() { } |
735 | 731 |
736 WebThread* m_mainThread; | 732 WebThread* m_mainThread; |
737 }; | 733 }; |
738 | 734 |
739 } // namespace blink | 735 } // namespace blink |
740 | 736 |
741 #endif | 737 #endif |
OLD | NEW |