| 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 29 matching lines...) Expand all Loading... |
| 40 #include "WebGestureDevice.h" | 40 #include "WebGestureDevice.h" |
| 41 #include "WebGraphicsContext3D.h" | 41 #include "WebGraphicsContext3D.h" |
| 42 #include "WebLocalizedString.h" | 42 #include "WebLocalizedString.h" |
| 43 #include "WebPlatformEventType.h" | 43 #include "WebPlatformEventType.h" |
| 44 #include "WebString.h" | 44 #include "WebString.h" |
| 45 #include "WebURLError.h" | 45 #include "WebURLError.h" |
| 46 #include "WebVector.h" | 46 #include "WebVector.h" |
| 47 | 47 |
| 48 class GrContext; | 48 class GrContext; |
| 49 | 49 |
| 50 namespace base { |
| 51 class SingleThreadTaskRunner; |
| 52 } |
| 53 |
| 50 namespace mojo { | 54 namespace mojo { |
| 51 class NetworkService; | 55 class NetworkService; |
| 52 } | 56 } |
| 53 | 57 |
| 54 namespace blink { | 58 namespace blink { |
| 55 | 59 |
| 56 class WebBlobRegistry; | 60 class WebBlobRegistry; |
| 57 class WebClipboard; | 61 class WebClipboard; |
| 58 class WebCompositorSupport; | 62 class WebCompositorSupport; |
| 59 class WebConvertableToTraceFormat; | 63 class WebConvertableToTraceFormat; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; | 253 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len
gth) = 0; |
| 250 | 254 |
| 251 // Delayed work is driven by a shared timer. | 255 // Delayed work is driven by a shared timer. |
| 252 typedef void (*SharedTimerFunction)(); | 256 typedef void (*SharedTimerFunction)(); |
| 253 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction)
{ } | 257 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction)
{ } |
| 254 virtual void setSharedTimerFireInterval(double) { } | 258 virtual void setSharedTimerFireInterval(double) { } |
| 255 virtual void stopSharedTimer() { } | 259 virtual void stopSharedTimer() { } |
| 256 | 260 |
| 257 // Callable from a background WebKit thread. | 261 // Callable from a background WebKit thread. |
| 258 virtual void callOnMainThread(void (*func)(void*), void* context) { } | 262 virtual void callOnMainThread(void (*func)(void*), void* context) { } |
| 263 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner() { return 0; } |
| 259 | 264 |
| 260 | 265 |
| 261 // Vibration ----------------------------------------------------------- | 266 // Vibration ----------------------------------------------------------- |
| 262 | 267 |
| 263 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active | 268 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active |
| 264 // vibration it will be cancelled before the new one is started. | 269 // vibration it will be cancelled before the new one is started. |
| 265 virtual void vibrate(unsigned time) { } | 270 virtual void vibrate(unsigned time) { } |
| 266 | 271 |
| 267 // Cancels the current vibration, if there is one. | 272 // Cancels the current vibration, if there is one. |
| 268 virtual void cancelVibration() { } | 273 virtual void cancelVibration() { } |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // longer notify the listener, if any. | 423 // longer notify the listener, if any. |
| 419 virtual void stopListening(WebPlatformEventType type) { } | 424 virtual void stopListening(WebPlatformEventType type) { } |
| 420 | 425 |
| 421 protected: | 426 protected: |
| 422 virtual ~Platform() { } | 427 virtual ~Platform() { } |
| 423 }; | 428 }; |
| 424 | 429 |
| 425 } // namespace blink | 430 } // namespace blink |
| 426 | 431 |
| 427 #endif | 432 #endif |
| OLD | NEW |