| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Navigational queries ------------------------------------------------ | 85 // Navigational queries ------------------------------------------------ |
| 86 | 86 |
| 87 // The client may choose to alter the navigation policy. Otherwise, | 87 // The client may choose to alter the navigation policy. Otherwise, |
| 88 // defaultPolicy should just be returned. | 88 // defaultPolicy should just be returned. |
| 89 virtual WebNavigationPolicy decidePolicyForNavigation( | 89 virtual WebNavigationPolicy decidePolicyForNavigation( |
| 90 WebFrame*, const WebURLRequest&, WebNavigationType, | 90 WebFrame*, const WebURLRequest&, WebNavigationType, |
| 91 const WebNode& originatingNode, | 91 const WebNode& originatingNode, |
| 92 WebNavigationPolicy defaultPolicy, bool isRedirect) = 0; | 92 WebNavigationPolicy defaultPolicy, bool isRedirect) = 0; |
| 93 | 93 |
| 94 // Query if the specified request can be handled. |
| 95 virtual bool canHandleRequest(const WebURLRequest& request) = 0; |
| 96 |
| 97 // Called if canHandledRequest() returns false. |
| 98 virtual WebURLError cannotShowURLError( |
| 99 const WebURLRequest& request) = 0; |
| 100 |
| 101 // Notify that a URL cannot be handled. |
| 102 virtual void unableToImplementPolicyWithError( |
| 103 WebFrame*, const WebURLError&) = 0; |
| 94 | 104 |
| 95 // Navigational notifications ------------------------------------------ | 105 // Navigational notifications ------------------------------------------ |
| 96 | 106 |
| 97 // A form submission is about to occur. | 107 // A form submission is about to occur. |
| 98 virtual void willSubmitForm(WebFrame*, const WebForm&) = 0; | 108 virtual void willSubmitForm(WebFrame*, const WebForm&) = 0; |
| 99 | 109 |
| 100 // A client-side redirect will occur. This may correspond to a <META | 110 // A client-side redirect will occur. This may correspond to a <META |
| 101 // refresh> or some script activity. | 111 // refresh> or some script activity. |
| 102 virtual void willPerformClientRedirect( | 112 virtual void willPerformClientRedirect( |
| 103 WebFrame*, const WebURL& from, const WebURL& to, | 113 WebFrame*, const WebURL& from, const WebURL& to, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 virtual void reportFindInPageSelection( | 263 virtual void reportFindInPageSelection( |
| 254 int identifier, int activeMatchOrdinal, const WebRect& selection) = 0; | 264 int identifier, int activeMatchOrdinal, const WebRect& selection) = 0; |
| 255 | 265 |
| 256 protected: | 266 protected: |
| 257 ~WebFrameClient() { } | 267 ~WebFrameClient() { } |
| 258 }; | 268 }; |
| 259 | 269 |
| 260 } // namespace WebKit | 270 } // namespace WebKit |
| 261 | 271 |
| 262 #endif | 272 #endif |
| OLD | NEW |