| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // This call is placed here instead of WebPermissionClient because this | 363 // This call is placed here instead of WebPermissionClient because this |
| 364 // class is implemented in content/, and putting it here avoids adding | 364 // class is implemented in content/, and putting it here avoids adding |
| 365 // more public content/ APIs. | 365 // more public content/ APIs. |
| 366 virtual bool allowWebGL(WebFrame*, bool defaultValue) { return defaultValue;
} | 366 virtual bool allowWebGL(WebFrame*, bool defaultValue) { return defaultValue;
} |
| 367 | 367 |
| 368 // Notifies the client that a WebGL context was lost on this page with the | 368 // Notifies the client that a WebGL context was lost on this page with the |
| 369 // given reason (one of the GL_ARB_robustness status codes; see | 369 // given reason (one of the GL_ARB_robustness status codes; see |
| 370 // Extensions3D.h in WebCore/platform/graphics). | 370 // Extensions3D.h in WebCore/platform/graphics). |
| 371 virtual void didLoseWebGLContext(WebFrame*, int) { } | 371 virtual void didLoseWebGLContext(WebFrame*, int) { } |
| 372 | 372 |
| 373 // Asks if the WebGL extension WEBGL_debug_renderer_info is allowed |
| 374 // for the given WebFrame. |
| 375 virtual bool allowWebGLDebugRendererInfo(WebFrame*) { return false; } |
| 376 |
| 373 protected: | 377 protected: |
| 374 ~WebFrameClient() { } | 378 ~WebFrameClient() { } |
| 375 }; | 379 }; |
| 376 | 380 |
| 377 } // namespace WebKit | 381 } // namespace WebKit |
| 378 | 382 |
| 379 #endif | 383 #endif |
| OLD | NEW |