Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 480 // Testing functionality for TestRunner --------------------------------- | 480 // Testing functionality for TestRunner --------------------------------- |
| 481 | 481 |
| 482 // Force the webgl context to fail so that webglcontextcreationerror | 482 // Force the webgl context to fail so that webglcontextcreationerror |
| 483 // event gets generated/tested. | 483 // event gets generated/tested. |
| 484 virtual void forceNextWebGLContextCreationToFail() = 0; | 484 virtual void forceNextWebGLContextCreationToFail() = 0; |
| 485 | 485 |
| 486 // Force the drawing buffer used by webgl contexts to fail so that the webgl | 486 // Force the drawing buffer used by webgl contexts to fail so that the webgl |
| 487 // context's ability to deal with that failure gracefully can be tested. | 487 // context's ability to deal with that failure gracefully can be tested. |
| 488 virtual void forceNextDrawingBufferCreationToFail() = 0; | 488 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 489 | 489 |
| 490 // Updates or resets the battery status. | |
| 491 // | |
| 492 // TODO(yukishiino): Remove these two functions from WebView once JS | |
| 493 // bindings of Mojo services get available. | |
| 494 virtual void updateBatteryStatusForTesting(bool charging, double chargingTim e, double dischargingTime, double level) = 0; | |
|
esprehn
2016/02/18 06:48:13
This should be in platform.
| |
| 495 virtual void resetBatteryStatusForTesting() = 0; | |
| 496 | |
| 490 protected: | 497 protected: |
| 491 ~WebView() {} | 498 ~WebView() {} |
| 492 }; | 499 }; |
| 493 | 500 |
| 494 } // namespace blink | 501 } // namespace blink |
| 495 | 502 |
| 496 #endif | 503 #endif |
| OLD | NEW |