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