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