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 | |
160 // Navigational notifications ------------------------------------------ | 143 // Navigational notifications ------------------------------------------ |
161 | 144 |
162 // A form submission has been requested, but the page's submit event handler | 145 // A form submission has been requested, but the page's submit event handler |
163 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) | 146 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) |
164 virtual void willSendSubmitEvent(WebFrame*, const WebFormElement&) { } | 147 virtual void willSendSubmitEvent(WebFrame*, const WebFormElement&) { } |
165 | 148 |
166 // A form submission is about to occur. | 149 // A form submission is about to occur. |
167 virtual void willSubmitForm(WebFrame*, const WebFormElement&) { } | 150 virtual void willSubmitForm(WebFrame*, const WebFormElement&) { } |
168 | 151 |
169 // A client-side redirect will occur. This may correspond to a <META | 152 // 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... |
442 // Extensions3D.h in WebCore/platform/graphics). | 425 // Extensions3D.h in WebCore/platform/graphics). |
443 virtual void didLoseWebGLContext(WebFrame*, int) { } | 426 virtual void didLoseWebGLContext(WebFrame*, int) { } |
444 | 427 |
445 protected: | 428 protected: |
446 ~WebFrameClient() { } | 429 ~WebFrameClient() { } |
447 }; | 430 }; |
448 | 431 |
449 } // namespace WebKit | 432 } // namespace WebKit |
450 | 433 |
451 #endif | 434 #endif |
OLD | NEW |