| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // Returns a localized string resource (with substitution parameters). | 347 // Returns a localized string resource (with substitution parameters). |
| 348 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We
bString(); } | 348 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We
bString(); } |
| 349 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter) { return WebString(); } | 349 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter) { return WebString(); } |
| 350 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter1, const WebString& parameter2) { return WebString(); } | 350 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt
ring& parameter1, const WebString& parameter2) { return WebString(); } |
| 351 | 351 |
| 352 | 352 |
| 353 // Threads ------------------------------------------------------- | 353 // Threads ------------------------------------------------------- |
| 354 | 354 |
| 355 // Creates an embedder-defined thread. | 355 // Creates an embedder-defined thread. |
| 356 virtual WebThread* createThread(const char* name) { return nullptr; } | 356 virtual WebThread* createThread(const char* name) { return nullptr; } |
| 357 virtual WebThread* createThreadForCompositor(const char* name) { return null
ptr; } |
| 357 | 358 |
| 358 // Returns an interface to the current thread. This is owned by the | 359 // Returns an interface to the current thread. This is owned by the |
| 359 // embedder. | 360 // embedder. |
| 360 virtual WebThread* currentThread() { return nullptr; } | 361 virtual WebThread* currentThread() { return nullptr; } |
| 361 | 362 |
| 362 // Yield the current thread so another thread can be scheduled. | 363 // Yield the current thread so another thread can be scheduled. |
| 363 virtual void yieldCurrentThread() { } | 364 virtual void yieldCurrentThread() { } |
| 364 | 365 |
| 365 // WaitableEvent ------------------------------------------------------- | 366 // WaitableEvent ------------------------------------------------------- |
| 366 | 367 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 protected: | 739 protected: |
| 739 BLINK_PLATFORM_EXPORT Platform(); | 740 BLINK_PLATFORM_EXPORT Platform(); |
| 740 virtual ~Platform() { } | 741 virtual ~Platform() { } |
| 741 | 742 |
| 742 WebThread* m_mainThread; | 743 WebThread* m_mainThread; |
| 743 }; | 744 }; |
| 744 | 745 |
| 745 } // namespace blink | 746 } // namespace blink |
| 746 | 747 |
| 747 #endif | 748 #endif |
| OLD | NEW |