Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1682423002: Remove WebWaitableEvent and replace it with WaitableEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "WebGraphicsContext3D.h" 46 #include "WebGraphicsContext3D.h"
47 #include "WebLocalizedString.h" 47 #include "WebLocalizedString.h"
48 #include "WebPlatformEventType.h" 48 #include "WebPlatformEventType.h"
49 #include "WebSize.h" 49 #include "WebSize.h"
50 #include "WebSpeechSynthesizer.h" 50 #include "WebSpeechSynthesizer.h"
51 #include "WebStorageQuotaCallbacks.h" 51 #include "WebStorageQuotaCallbacks.h"
52 #include "WebStorageQuotaType.h" 52 #include "WebStorageQuotaType.h"
53 #include "WebString.h" 53 #include "WebString.h"
54 #include "WebURLError.h" 54 #include "WebURLError.h"
55 #include "WebVector.h" 55 #include "WebVector.h"
56 #include "WebWaitableEvent.h"
57 56
58 class GrContext; 57 class GrContext;
59 58
60 namespace blink { 59 namespace blink {
61 60
62 class WebAudioBus; 61 class WebAudioBus;
63 class WebBlobRegistry; 62 class WebBlobRegistry;
64 class WebCanvasCaptureHandler; 63 class WebCanvasCaptureHandler;
65 class WebClipboard; 64 class WebClipboard;
66 class WebCompositorSupport; 65 class WebCompositorSupport;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 340
342 // Threads ------------------------------------------------------- 341 // Threads -------------------------------------------------------
343 342
344 // Creates an embedder-defined thread. 343 // Creates an embedder-defined thread.
345 virtual WebThread* createThread(const char* name) { return nullptr; } 344 virtual WebThread* createThread(const char* name) { return nullptr; }
346 345
347 // Returns an interface to the current thread. This is owned by the 346 // Returns an interface to the current thread. This is owned by the
348 // embedder. 347 // embedder.
349 virtual WebThread* currentThread() { return nullptr; } 348 virtual WebThread* currentThread() { return nullptr; }
350 349
351 // WaitableEvent -------------------------------------------------------
352
353 // Creates an embedder-defined waitable event object.
354 WebWaitableEvent* createWaitableEvent() { return createWaitableEvent(WebWait ableEvent::ResetPolicy::Auto, WebWaitableEvent::InitialState::NonSignaled); }
355 virtual WebWaitableEvent* createWaitableEvent(WebWaitableEvent::ResetPolicy, WebWaitableEvent::InitialState) { return nullptr; }
356
357 // Waits on multiple events and returns the event object that has been
358 // signaled. This may return nullptr if it fails to wait events.
359 // Any event objects given to this method must not deleted while this
360 // wait is happening.
361 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return nullptr; }
362
363
364 // Resources ----------------------------------------------------------- 350 // Resources -----------------------------------------------------------
365 351
366 // Returns a blob of data corresponding to the named resource. 352 // Returns a blob of data corresponding to the named resource.
367 virtual WebData loadResource(const char* name) { return WebData(); } 353 virtual WebData loadResource(const char* name) { return WebData(); }
368 354
369 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus. 355 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus.
370 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate. 356 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate.
371 // Returns true on success. 357 // Returns true on success.
372 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; } 358 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; }
373 359
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 protected: 604 protected:
619 BLINK_PLATFORM_EXPORT Platform(); 605 BLINK_PLATFORM_EXPORT Platform();
620 virtual ~Platform() { } 606 virtual ~Platform() { }
621 607
622 WebThread* m_mainThread; 608 WebThread* m_mainThread;
623 }; 609 };
624 610
625 } // namespace blink 611 } // namespace blink
626 612
627 #endif 613 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebWaitableEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698