| 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 | 612 |
| 613 | 613 |
| 614 // WebGL ------------------------------------------------------ | 614 // WebGL ------------------------------------------------------ |
| 615 | 615 |
| 616 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is | 616 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is |
| 617 // placed here instead of WebContentSettingsClient because this class is | 617 // placed here instead of WebContentSettingsClient because this class is |
| 618 // implemented in content/, and putting it here avoids adding more public | 618 // implemented in content/, and putting it here avoids adding more public |
| 619 // content/ APIs. | 619 // content/ APIs. |
| 620 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } | 620 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } |
| 621 | 621 |
| 622 // Notifies the client that a WebGL context was lost on this page with the | |
| 623 // given reason (one of the GL_ARB_robustness status codes; see | |
| 624 // Extensions3D.h in WebCore/platform/graphics). | |
| 625 virtual void didLoseWebGLContext(int) { } | |
| 626 | |
| 627 | |
| 628 // Screen Orientation -------------------------------------------------- | 622 // Screen Orientation -------------------------------------------------- |
| 629 | 623 |
| 630 // Access the embedder API for (client-based) screen orientation client . | 624 // Access the embedder API for (client-based) screen orientation client . |
| 631 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0;
} | 625 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0;
} |
| 632 | 626 |
| 633 | 627 |
| 634 // Accessibility ------------------------------------------------------- | 628 // Accessibility ------------------------------------------------------- |
| 635 | 629 |
| 636 // Notifies embedder about an accessibility event. | 630 // Notifies embedder about an accessibility event. |
| 637 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } | 631 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 // Mojo ---------------------------------------------------------------- | 727 // Mojo ---------------------------------------------------------------- |
| 734 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 728 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
| 735 | 729 |
| 736 protected: | 730 protected: |
| 737 virtual ~WebFrameClient() { } | 731 virtual ~WebFrameClient() { } |
| 738 }; | 732 }; |
| 739 | 733 |
| 740 } // namespace blink | 734 } // namespace blink |
| 741 | 735 |
| 742 #endif | 736 #endif |
| OLD | NEW |