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

Side by Side Diff: sky/engine/public/platform/Platform.h

Issue 681173002: Delete WebWaitableEvent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/public/platform/WebWaitableEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class WebGraphicsContext3DProvider; 66 class WebGraphicsContext3DProvider;
67 class WebMimeRegistry; 67 class WebMimeRegistry;
68 class WebPublicSuffixList; 68 class WebPublicSuffixList;
69 class WebSandboxSupport; 69 class WebSandboxSupport;
70 class WebScrollbarBehavior; 70 class WebScrollbarBehavior;
71 struct WebFloatPoint; 71 struct WebFloatPoint;
72 class WebThemeEngine; 72 class WebThemeEngine;
73 class WebURL; 73 class WebURL;
74 class WebURLLoader; 74 class WebURLLoader;
75 class WebUnitTestSupport; 75 class WebUnitTestSupport;
76 class WebWaitableEvent;
77 struct WebLocalizedString; 76 struct WebLocalizedString;
78 struct WebSize; 77 struct WebSize;
79 78
80 class Platform { 79 class Platform {
81 public: 80 public:
82 // HTML5 Database ------------------------------------------------------ 81 // HTML5 Database ------------------------------------------------------
83 82
84 #ifdef WIN32 83 #ifdef WIN32
85 typedef HANDLE FileHandle; 84 typedef HANDLE FileHandle;
86 #else 85 #else
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 195
197 196
198 // Resources ----------------------------------------------------------- 197 // Resources -----------------------------------------------------------
199 198
200 // Returns a localized string resource (with substitution parameters). 199 // Returns a localized string resource (with substitution parameters).
201 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We bString(); } 200 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We bString(); }
202 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter) { return WebString(); } 201 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter) { return WebString(); }
203 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter1, const WebString& parameter2) { return WebString(); } 202 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter1, const WebString& parameter2) { return WebString(); }
204 203
205 204
206 // WaitableEvent -------------------------------------------------------
207
208 // Creates an embedder-defined waitable event object.
209 virtual WebWaitableEvent* createWaitableEvent() { return 0; }
210
211 // Waits on multiple events and returns the event object that has been
212 // signaled. This may return 0 if it fails to wait events.
213 // Any event objects given to this method must not deleted while this
214 // wait is happening.
215 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return 0; }
216
217
218 // Profiling ----------------------------------------------------------- 205 // Profiling -----------------------------------------------------------
219 206
220 virtual void decrementStatsCounter(const char* name) { } 207 virtual void decrementStatsCounter(const char* name) { }
221 virtual void incrementStatsCounter(const char* name) { } 208 virtual void incrementStatsCounter(const char* name) { }
222 209
223 210
224 // Resources ----------------------------------------------------------- 211 // Resources -----------------------------------------------------------
225 212
226 // Returns a blob of data corresponding to the named resource. 213 // Returns a blob of data corresponding to the named resource.
227 virtual WebData loadResource(const char* name) { return WebData(); } 214 virtual WebData loadResource(const char* name) { return WebData(); }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // longer notify the listener, if any. 418 // longer notify the listener, if any.
432 virtual void stopListening(WebPlatformEventType type) { } 419 virtual void stopListening(WebPlatformEventType type) { }
433 420
434 protected: 421 protected:
435 virtual ~Platform() { } 422 virtual ~Platform() { }
436 }; 423 };
437 424
438 } // namespace blink 425 } // namespace blink
439 426
440 #endif 427 #endif
OLDNEW
« no previous file with comments | « no previous file | sky/engine/public/platform/WebWaitableEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698