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 virtual WebThread* compositorThread() const { return 0; } | |
Rick Byers
2015/11/27 20:50:40
Nit: please add a comment with any details (eg. wh
Ian Vollick
2015/11/27 21:15:11
sg, done.
| |
438 | |
437 // Vibration ----------------------------------------------------------- | 439 // Vibration ----------------------------------------------------------- |
438 | 440 |
439 // Starts a vibration for the given duration in milliseconds. If there is cu rrently an active | 441 // 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. | 442 // vibration it will be cancelled before the new one is started. |
441 virtual void vibrate(unsigned time) { } | 443 virtual void vibrate(unsigned time) { } |
442 | 444 |
443 // Cancels the current vibration, if there is one. | 445 // Cancels the current vibration, if there is one. |
444 virtual void cancelVibration() { } | 446 virtual void cancelVibration() { } |
445 | 447 |
446 | 448 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
728 protected: | 730 protected: |
729 BLINK_PLATFORM_EXPORT Platform(); | 731 BLINK_PLATFORM_EXPORT Platform(); |
730 virtual ~Platform() { } | 732 virtual ~Platform() { } |
731 | 733 |
732 WebThread* m_mainThread; | 734 WebThread* m_mainThread; |
733 }; | 735 }; |
734 | 736 |
735 } // namespace blink | 737 } // namespace blink |
736 | 738 |
737 #endif | 739 #endif |
OLD | NEW |