| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 | 387 |
| 388 // Resources ----------------------------------------------------------- | 388 // Resources ----------------------------------------------------------- |
| 389 | 389 |
| 390 // Returns a blob of data corresponding to the named resource. | 390 // Returns a blob of data corresponding to the named resource. |
| 391 virtual WebData loadResource(const char* name) { return WebData(); } | 391 virtual WebData loadResource(const char* name) { return WebData(); } |
| 392 | 392 |
| 393 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. | 393 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. |
| 394 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. | 394 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. |
| 395 // Returns true on success. | 395 // Returns true on success. |
| 396 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize, double sampleRate) { return false; } | 396 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } |
| 397 | |
| 398 | 397 |
| 399 // Screen ------------------------------------------------------------- | 398 // Screen ------------------------------------------------------------- |
| 400 | 399 |
| 401 // Supplies the system monitor color profile. | 400 // Supplies the system monitor color profile. |
| 402 virtual void screenColorProfile(WebVector<char>* profile) { } | 401 virtual void screenColorProfile(WebVector<char>* profile) { } |
| 403 | 402 |
| 404 | 403 |
| 405 // Scrollbar ---------------------------------------------------------- | 404 // Scrollbar ---------------------------------------------------------- |
| 406 | 405 |
| 407 // Must return non-null. | 406 // Must return non-null. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 638 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
| 640 | 639 |
| 641 | 640 |
| 642 protected: | 641 protected: |
| 643 virtual ~Platform() { } | 642 virtual ~Platform() { } |
| 644 }; | 643 }; |
| 645 | 644 |
| 646 } // namespace blink | 645 } // namespace blink |
| 647 | 646 |
| 648 #endif | 647 #endif |
| OLD | NEW |