OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 virtual bool allowWebComponents(const WebDocument&, bool defaultValue) { ret urn defaultValue; } | 94 virtual bool allowWebComponents(const WebDocument&, bool defaultValue) { ret urn defaultValue; } |
95 | 95 |
96 // Controls whether to enable MutationEvents for this document. | 96 // Controls whether to enable MutationEvents for this document. |
97 // The common use case of this method is actually to selectively disable Mut ationEvents, | 97 // The common use case of this method is actually to selectively disable Mut ationEvents, |
98 // but it's been named for consistency with the rest of the interface. | 98 // but it's been named for consistency with the rest of the interface. |
99 virtual bool allowMutationEvents(const WebDocument&, bool defaultValue) { re turn defaultValue; } | 99 virtual bool allowMutationEvents(const WebDocument&, bool defaultValue) { re turn defaultValue; } |
100 | 100 |
101 // Controls whether pushState and related History APIs are enabled for this frame. | 101 // Controls whether pushState and related History APIs are enabled for this frame. |
102 virtual bool allowPushState(const WebDocument&) { return true; } | 102 virtual bool allowPushState(const WebDocument&) { return true; } |
103 | 103 |
104 // Controls whether WebGL extension WEBGL_debug_renderer_info is allowed for this frame. | |
105 virtual bool allowWebGLDebugRendererInfo(WebFrame*) { return false; } | |
abarth-chromium
2013/10/30 21:41:56
This should take a const WebDocument& like the oth
Zhenyao Mo
2013/10/30 21:57:11
I am confused. There are multiple examples using
| |
106 | |
104 // Notifies the client that the frame would have instantiated a plug-in if p lug-ins were enabled. | 107 // Notifies the client that the frame would have instantiated a plug-in if p lug-ins were enabled. |
105 virtual void didNotAllowPlugins(WebFrame*) { } | 108 virtual void didNotAllowPlugins(WebFrame*) { } |
106 | 109 |
107 // Notifies the client that the frame would have executed script if script w ere enabled. | 110 // Notifies the client that the frame would have executed script if script w ere enabled. |
108 virtual void didNotAllowScript(WebFrame*) { } | 111 virtual void didNotAllowScript(WebFrame*) { } |
109 | 112 |
110 protected: | 113 protected: |
111 ~WebPermissionClient() { } | 114 ~WebPermissionClient() { } |
112 }; | 115 }; |
113 | 116 |
114 } // namespace WebKit | 117 } // namespace WebKit |
115 | 118 |
116 #endif | 119 #endif |
OLD | NEW |