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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Navigational queries ------------------------------------------------ | 135 // Navigational queries ------------------------------------------------ |
136 | 136 |
137 // The client may choose to alter the navigation policy. Otherwise, | 137 // The client may choose to alter the navigation policy. Otherwise, |
138 // defaultPolicy should just be returned. | 138 // defaultPolicy should just be returned. |
139 virtual WebNavigationPolicy decidePolicyForNavigation( | 139 virtual WebNavigationPolicy decidePolicyForNavigation( |
140 WebFrame*, const WebURLRequest&, WebNavigationType, | 140 WebFrame*, const WebURLRequest&, WebNavigationType, |
141 const WebNode& originatingNode, | 141 const WebNode& originatingNode, |
142 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } | 142 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } |
143 | 143 |
144 // Query if the specified request can be handled. | |
145 virtual bool canHandleRequest( | |
146 WebFrame*, const WebURLRequest& request) { return true; } | |
147 | |
148 // Returns an error corresponding to canHandledRequest() returning false. | |
149 virtual WebURLError cannotHandleRequestError( | |
150 WebFrame*, const WebURLRequest& request) { return WebURLError(); } | |
151 | |
152 // Returns an error corresponding to a user cancellation event. | |
153 virtual WebURLError cancelledError( | |
154 WebFrame*, const WebURLRequest& request) { return WebURLError(); } | |
155 | |
156 // Notify that a URL cannot be handled. | |
157 virtual void unableToImplementPolicyWithError( | |
158 WebFrame*, const WebURLError&) { } | |
159 | |
160 | |
161 // Navigational notifications ------------------------------------------ | 144 // Navigational notifications ------------------------------------------ |
162 | 145 |
163 // A form submission has been requested, but the page's submit event handler | 146 // A form submission has been requested, but the page's submit event handler |
164 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) | 147 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) |
165 virtual void willSendSubmitEvent(WebFrame*, const WebFormElement&) { } | 148 virtual void willSendSubmitEvent(WebFrame*, const WebFormElement&) { } |
166 | 149 |
167 // A form submission is about to occur. | 150 // A form submission is about to occur. |
168 virtual void willSubmitForm(WebFrame*, const WebFormElement&) { } | 151 virtual void willSubmitForm(WebFrame*, const WebFormElement&) { } |
169 | 152 |
170 // A client-side redirect will occur. This may correspond to a <META | 153 // A client-side redirect will occur. This may correspond to a <META |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // Extensions3D.h in WebCore/platform/graphics). | 426 // Extensions3D.h in WebCore/platform/graphics). |
444 virtual void didLoseWebGLContext(WebFrame*, int) { } | 427 virtual void didLoseWebGLContext(WebFrame*, int) { } |
445 | 428 |
446 protected: | 429 protected: |
447 ~WebFrameClient() { } | 430 ~WebFrameClient() { } |
448 }; | 431 }; |
449 | 432 |
450 } // namespace WebKit | 433 } // namespace WebKit |
451 | 434 |
452 #endif | 435 #endif |
OLD | NEW |