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