| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 // Resources ----------------------------------------------------------- | 365 // Resources ----------------------------------------------------------- |
| 366 | 366 |
| 367 // Returns a blob of data corresponding to the named resource. | 367 // Returns a blob of data corresponding to the named resource. |
| 368 virtual WebData loadResource(const char* name) { return WebData(); } | 368 virtual WebData loadResource(const char* name) { return WebData(); } |
| 369 | 369 |
| 370 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. | 370 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. |
| 371 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. | 371 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. |
| 372 // Returns true on success. | 372 // Returns true on success. |
| 373 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } | 373 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } |
| 374 | 374 |
| 375 // Screen ------------------------------------------------------------- | |
| 376 | |
| 377 // Supplies the system monitor color profile. | |
| 378 virtual void screenColorProfile(WebVector<char>* profile) { } | |
| 379 | |
| 380 | |
| 381 // Scrollbar ---------------------------------------------------------- | 375 // Scrollbar ---------------------------------------------------------- |
| 382 | 376 |
| 383 // Must return non-null. | 377 // Must return non-null. |
| 384 virtual WebScrollbarBehavior* scrollbarBehavior() { return nullptr; } | 378 virtual WebScrollbarBehavior* scrollbarBehavior() { return nullptr; } |
| 385 | 379 |
| 386 | 380 |
| 387 // Sudden Termination -------------------------------------------------- | 381 // Sudden Termination -------------------------------------------------- |
| 388 | 382 |
| 389 // Disable/Enable sudden termination on a process level. When possible, it | 383 // Disable/Enable sudden termination on a process level. When possible, it |
| 390 // is preferable to disable sudden termination on a per-frame level via | 384 // is preferable to disable sudden termination on a per-frame level via |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 protected: | 616 protected: |
| 623 Platform(); | 617 Platform(); |
| 624 virtual ~Platform() { } | 618 virtual ~Platform() { } |
| 625 | 619 |
| 626 WebThread* m_mainThread; | 620 WebThread* m_mainThread; |
| 627 }; | 621 }; |
| 628 | 622 |
| 629 } // namespace blink | 623 } // namespace blink |
| 630 | 624 |
| 631 #endif | 625 #endif |
| OLD | NEW |