| 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 virtual WebString doNotTrackValue() { return WebString(); } | 665 virtual WebString doNotTrackValue() { return WebString(); } |
| 666 | 666 |
| 667 // WebGL ------------------------------------------------------ | 667 // WebGL ------------------------------------------------------ |
| 668 | 668 |
| 669 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is | 669 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is |
| 670 // placed here instead of WebContentSettingsClient because this class is | 670 // placed here instead of WebContentSettingsClient because this class is |
| 671 // implemented in content/, and putting it here avoids adding more public | 671 // implemented in content/, and putting it here avoids adding more public |
| 672 // content/ APIs. | 672 // content/ APIs. |
| 673 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } | 673 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } |
| 674 | 674 |
| 675 // Asks the embedder whether the frame is allowed to navigate the main frame |
| 676 // to a data URL. |
| 677 virtual bool allowInsecureDataUrlNavigations(const WebURL&) { return false; } |
| 678 |
| 675 // Screen Orientation -------------------------------------------------- | 679 // Screen Orientation -------------------------------------------------- |
| 676 | 680 |
| 677 // Access the embedder API for (client-based) screen orientation client . | 681 // Access the embedder API for (client-based) screen orientation client . |
| 678 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } | 682 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } |
| 679 | 683 |
| 680 // Accessibility ------------------------------------------------------- | 684 // Accessibility ------------------------------------------------------- |
| 681 | 685 |
| 682 // Notifies embedder about an accessibility event. | 686 // Notifies embedder about an accessibility event. |
| 683 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) {} | 687 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) {} |
| 684 | 688 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 // Overwrites the given URL to use an HTML5 embed if possible. | 760 // Overwrites the given URL to use an HTML5 embed if possible. |
| 757 // An empty URL is returned if the URL is not overriden. | 761 // An empty URL is returned if the URL is not overriden. |
| 758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 762 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
| 759 return WebURL(); | 763 return WebURL(); |
| 760 } | 764 } |
| 761 }; | 765 }; |
| 762 | 766 |
| 763 } // namespace blink | 767 } // namespace blink |
| 764 | 768 |
| 765 #endif | 769 #endif |
| OLD | NEW |