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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 375 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { } | 375 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { } |
| 376 virtual void setSharedTimerFireInterval(double) { } | 376 virtual void setSharedTimerFireInterval(double) { } |
| 377 virtual void stopSharedTimer() { } | 377 virtual void stopSharedTimer() { } |
| 378 | 378 |
| 379 // Callable from a background WebKit thread. | 379 // Callable from a background WebKit thread. |
| 380 virtual void callOnMainThread(void (*func)(void*), void* context) { } | 380 virtual void callOnMainThread(void (*func)(void*), void* context) { } |
| 381 | 381 |
| 382 // Checks the partition/volume where fileName resides. | 382 // Checks the partition/volume where fileName resides. |
| 383 virtual long long availableDiskSpaceInBytes(const WebString& fileName) { ret urn 0; } | 383 virtual long long availableDiskSpaceInBytes(const WebString& fileName) { ret urn 0; } |
| 384 | 384 |
| 385 // Vibration ----------------------------------------------------------- | |
|
Peter Beverloo
2013/06/11 10:19:10
nit: blank line after this one.
Michael van Ouwerkerk
2013/06/11 13:26:51
Done.
| |
| 386 virtual void cancelVibration() { } | |
| 387 virtual void vibrate(unsigned time) { } | |
|
Peter Beverloo
2013/06/11 10:19:10
I'd list "vibrate" before "cancelVibration", becau
Michael van Ouwerkerk
2013/06/11 13:26:51
Done.
| |
| 385 | 388 |
| 386 // Testing ------------------------------------------------------------- | 389 // Testing ------------------------------------------------------------- |
| 387 | 390 |
| 388 #define HAVE_WEBUNITTESTSUPPORT 1 | 391 #define HAVE_WEBUNITTESTSUPPORT 1 |
| 389 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. | 392 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. |
| 390 virtual WebUnitTestSupport* unitTestSupport() { return 0; } | 393 virtual WebUnitTestSupport* unitTestSupport() { return 0; } |
| 391 | 394 |
| 392 | 395 |
| 393 // Tracing ------------------------------------------------------------- | 396 // Tracing ------------------------------------------------------------- |
| 394 | 397 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 523 // If null, the platform stops providing device motion data to the current l istener. | 526 // If null, the platform stops providing device motion data to the current l istener. |
| 524 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } | 527 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } |
| 525 | 528 |
| 526 protected: | 529 protected: |
| 527 virtual ~Platform() { } | 530 virtual ~Platform() { } |
| 528 }; | 531 }; |
| 529 | 532 |
| 530 } // namespace WebKit | 533 } // namespace WebKit |
| 531 | 534 |
| 532 #endif | 535 #endif |
| OLD | NEW |