| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 // Returns a localized string resource (with substitution parameters). | 346 // Returns a localized string resource (with substitution parameters). |
| 347 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We
bString(); } | 347 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We
bString(); } |
| 348 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter) { return WebString(); } | 348 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter) { return WebString(); } |
| 349 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter1, const WebString& parameter2) { return WebString(); } | 349 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter1, const WebString& parameter2) { return WebString(); } |
| 350 | 350 |
| 351 | 351 |
| 352 // Threads ------------------------------------------------------- | 352 // Threads ------------------------------------------------------- |
| 353 | 353 |
| 354 // Creates an embedder-defined thread. | 354 // Creates an embedder-defined thread. |
| 355 virtual WebThread* createThread(const char* name) { return 0; } | 355 virtual WebThread* createThread(const char* name, bool isCompositorThread =
false) { return 0; } |
| 356 | 356 |
| 357 // Returns an interface to the current thread. This is owned by the | 357 // Returns an interface to the current thread. This is owned by the |
| 358 // embedder. | 358 // embedder. |
| 359 virtual WebThread* currentThread() { return 0; } | 359 virtual WebThread* currentThread() { return 0; } |
| 360 | 360 |
| 361 // Yield the current thread so another thread can be scheduled. | 361 // Yield the current thread so another thread can be scheduled. |
| 362 virtual void yieldCurrentThread() { } | 362 virtual void yieldCurrentThread() { } |
| 363 | 363 |
| 364 // Returns an interface to the compositor thread associated with the current |
| 365 // thread, if there is one. It is an error to associate multiple compositor |
| 366 // threads with a single renderer. |
| 367 virtual WebThread* currentCompositorThread() { return 0; } |
| 368 |
| 364 // May return null. | 369 // May return null. |
| 365 virtual WebScheduler* scheduler() { return 0; } | 370 virtual WebScheduler* scheduler() { return 0; } |
| 366 | 371 |
| 367 // WaitableEvent ------------------------------------------------------- | 372 // WaitableEvent ------------------------------------------------------- |
| 368 | 373 |
| 369 // Creates an embedder-defined waitable event object. | 374 // Creates an embedder-defined waitable event object. |
| 370 virtual WebWaitableEvent* createWaitableEvent() { return 0; } | 375 virtual WebWaitableEvent* createWaitableEvent() { return 0; } |
| 371 | 376 |
| 372 // Waits on multiple events and returns the event object that has been | 377 // Waits on multiple events and returns the event object that has been |
| 373 // signaled. This may return 0 if it fails to wait events. | 378 // signaled. This may return 0 if it fails to wait events. |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 647 |
| 643 virtual WebGeofencingProvider* geofencingProvider() { return 0; } | 648 virtual WebGeofencingProvider* geofencingProvider() { return 0; } |
| 644 | 649 |
| 645 protected: | 650 protected: |
| 646 virtual ~Platform() { } | 651 virtual ~Platform() { } |
| 647 }; | 652 }; |
| 648 | 653 |
| 649 } // namespace blink | 654 } // namespace blink |
| 650 | 655 |
| 651 #endif | 656 #endif |
| OLD | NEW |