Chromium Code Reviews| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 // Delayed work is driven by a shared timer. | 371 // Delayed work is driven by a shared timer. |
| 372 typedef void (*SharedTimerFunction)(); | 372 typedef void (*SharedTimerFunction)(); |
| 373 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { } | 373 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { } |
| 374 virtual void setSharedTimerFireInterval(double) { } | 374 virtual void setSharedTimerFireInterval(double) { } |
| 375 virtual void stopSharedTimer() { } | 375 virtual void stopSharedTimer() { } |
| 376 | 376 |
| 377 // Callable from a background WebKit thread. | 377 // Callable from a background WebKit thread. |
| 378 virtual void callOnMainThread(void (*func)(void*), void* context) { } | 378 virtual void callOnMainThread(void (*func)(void*), void* context) { } |
| 379 | 379 |
| 380 | 380 |
| 381 // Vibration ----------------------------------------------------------- | |
| 382 | |
| 383 // Starts a vibration for the given duration in milliseconds. If there is cu rrently an active | |
| 384 // vibration it will be cancelled before the new one is started. | |
| 385 virtual void vibrate(unsigned time) { } | |
|
abarth-chromium
2013/06/13 20:13:20
time -> durationMS ?
| |
| 386 | |
| 387 // Cancels the current vibration, if there is one. | |
| 388 virtual void cancelVibration() { } | |
| 389 | |
| 390 | |
| 381 // Testing ------------------------------------------------------------- | 391 // Testing ------------------------------------------------------------- |
| 382 | 392 |
| 383 #define HAVE_WEBUNITTESTSUPPORT 1 | 393 #define HAVE_WEBUNITTESTSUPPORT 1 |
| 384 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. | 394 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. |
| 385 virtual WebUnitTestSupport* unitTestSupport() { return 0; } | 395 virtual WebUnitTestSupport* unitTestSupport() { return 0; } |
| 386 | 396 |
| 387 | 397 |
| 388 // Tracing ------------------------------------------------------------- | 398 // Tracing ------------------------------------------------------------- |
| 389 | 399 |
| 390 // Get a pointer to the enabled state of the given trace category. The | 400 // Get a pointer to the enabled state of the given trace category. The |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 518 // If null, the platform stops providing device motion data to the current l istener. | 528 // If null, the platform stops providing device motion data to the current l istener. |
| 519 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } | 529 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } |
| 520 | 530 |
| 521 protected: | 531 protected: |
| 522 virtual ~Platform() { } | 532 virtual ~Platform() { } |
| 523 }; | 533 }; |
| 524 | 534 |
| 525 } // namespace WebKit | 535 } // namespace WebKit |
| 526 | 536 |
| 527 #endif | 537 #endif |
| OLD | NEW |