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 virtual void updateBatteryStatusForTesting(bool charging, double chargingTim e, double dischargingTime, double level) = 0; | |
| 492 virtual void resetBatteryStatusForTesting() = 0; | |
|
kinuko
2016/02/16 10:09:18
Hmm, these don't look they belong to WebView...
Yuki
2016/02/16 13:21:59
I think we can remove these functions when http://
kinuko
2016/02/16 22:53:39
Could you please add TODO to remove these then, I
Yuki
2016/02/17 09:12:54
I see. Added a TODO comment.
| |
| 493 | |
| 490 protected: | 494 protected: |
| 491 ~WebView() {} | 495 ~WebView() {} |
| 492 }; | 496 }; |
| 493 | 497 |
| 494 } // namespace blink | 498 } // namespace blink |
| 495 | 499 |
| 496 #endif | 500 #endif |
| OLD | NEW |