| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 virtual void setSharedTimerFireInterval(double) { } | 386 virtual void setSharedTimerFireInterval(double) { } |
| 387 virtual void stopSharedTimer() { } | 387 virtual void stopSharedTimer() { } |
| 388 | 388 |
| 389 // Callable from a background WebKit thread. | 389 // Callable from a background WebKit thread. |
| 390 virtual void callOnMainThread(void (*func)(void*), void* context) { } | 390 virtual void callOnMainThread(void (*func)(void*), void* context) { } |
| 391 | 391 |
| 392 // Checks the partition/volume where fileName resides. | 392 // Checks the partition/volume where fileName resides. |
| 393 virtual long long availableDiskSpaceInBytes(const WebString& fileName) { ret
urn 0; } | 393 virtual long long availableDiskSpaceInBytes(const WebString& fileName) { ret
urn 0; } |
| 394 | 394 |
| 395 | 395 |
| 396 // Vibration ----------------------------------------------------------- |
| 397 |
| 398 // Starts a vibration for the given duration in milliseconds. If there is cu
rrently an active |
| 399 // vibration it will be cancelled before the new one is started. |
| 400 virtual void vibrate(unsigned time) { } |
| 401 |
| 402 // Cancels the current vibration, if there is one. |
| 403 virtual void cancelVibration() { } |
| 404 |
| 405 |
| 396 // Testing ------------------------------------------------------------- | 406 // Testing ------------------------------------------------------------- |
| 397 | 407 |
| 398 #define HAVE_WEBUNITTESTSUPPORT 1 | 408 #define HAVE_WEBUNITTESTSUPPORT 1 |
| 399 // Get a pointer to testing support interfaces. Will not be available in pro
duction builds. | 409 // Get a pointer to testing support interfaces. Will not be available in pro
duction builds. |
| 400 virtual WebUnitTestSupport* unitTestSupport() { return 0; } | 410 virtual WebUnitTestSupport* unitTestSupport() { return 0; } |
| 401 | 411 |
| 402 | 412 |
| 403 // Tracing ------------------------------------------------------------- | 413 // Tracing ------------------------------------------------------------- |
| 404 | 414 |
| 405 // Get a pointer to the enabled state of the given trace category. The | 415 // 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... |
| 533 // If null, the platform stops providing device motion data to the current l
istener. | 543 // If null, the platform stops providing device motion data to the current l
istener. |
| 534 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } | 544 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } |
| 535 | 545 |
| 536 protected: | 546 protected: |
| 537 virtual ~Platform() { } | 547 virtual ~Platform() { } |
| 538 }; | 548 }; |
| 539 | 549 |
| 540 } // namespace WebKit | 550 } // namespace WebKit |
| 541 | 551 |
| 542 #endif | 552 #endif |
| OLD | NEW |