Chromium Code Reviews| 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 allowContentInitiatedDataUrlNavigations(const WebURL&) { | |
| 678 return false; | |
| 679 } | |
|
kinuko
2017/04/07 07:52:34
This should not be in 'WebGL' category, please mov
meacer
2017/04/11 01:08:51
Done.
| |
| 680 | |
| 675 // Screen Orientation -------------------------------------------------- | 681 // Screen Orientation -------------------------------------------------- |
| 676 | 682 |
| 677 // Access the embedder API for (client-based) screen orientation client . | 683 // Access the embedder API for (client-based) screen orientation client . |
| 678 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } | 684 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } |
| 679 | 685 |
| 680 // Accessibility ------------------------------------------------------- | 686 // Accessibility ------------------------------------------------------- |
| 681 | 687 |
| 682 // Notifies embedder about an accessibility event. | 688 // Notifies embedder about an accessibility event. |
| 683 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) {} | 689 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) {} |
| 684 | 690 |
| (...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. | 762 // Overwrites the given URL to use an HTML5 embed if possible. |
| 757 // An empty URL is returned if the URL is not overriden. | 763 // An empty URL is returned if the URL is not overriden. |
| 758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 764 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
| 759 return WebURL(); | 765 return WebURL(); |
| 760 } | 766 } |
| 761 }; | 767 }; |
| 762 | 768 |
| 763 } // namespace blink | 769 } // namespace blink |
| 764 | 770 |
| 765 #endif | 771 #endif |
| OLD | NEW |