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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrameClient_h | 31 #ifndef WebFrameClient_h |
32 #define WebFrameClient_h | 32 #define WebFrameClient_h |
33 | 33 |
34 #include "WebDOMMessageEvent.h" | 34 #include "WebDOMMessageEvent.h" |
35 #include "WebDataSource.h" | 35 #include "WebDataSource.h" |
36 #include "WebFrame.h" | 36 #include "WebFrame.h" |
| 37 #include "WebHistoryItem.h" |
37 #include "WebIconURL.h" | 38 #include "WebIconURL.h" |
38 #include "WebNavigationPolicy.h" | 39 #include "WebNavigationPolicy.h" |
39 #include "WebNavigationType.h" | 40 #include "WebNavigationType.h" |
40 #include "WebSecurityOrigin.h" | 41 #include "WebSecurityOrigin.h" |
41 #include "WebTextDirection.h" | 42 #include "WebTextDirection.h" |
42 #include "public/platform/WebCommon.h" | 43 #include "public/platform/WebCommon.h" |
43 #include "public/platform/WebFileSystem.h" | 44 #include "public/platform/WebFileSystem.h" |
44 #include "public/platform/WebFileSystemType.h" | 45 #include "public/platform/WebFileSystemType.h" |
45 #include "public/platform/WebStorageQuotaCallbacks.h" | 46 #include "public/platform/WebStorageQuotaCallbacks.h" |
46 #include "public/platform/WebStorageQuotaType.h" | 47 #include "public/platform/WebStorageQuotaType.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 158 |
158 | 159 |
159 // Navigational queries ------------------------------------------------ | 160 // Navigational queries ------------------------------------------------ |
160 | 161 |
161 // The client may choose to alter the navigation policy. Otherwise, | 162 // The client may choose to alter the navigation policy. Otherwise, |
162 // defaultPolicy should just be returned. | 163 // defaultPolicy should just be returned. |
163 virtual WebNavigationPolicy decidePolicyForNavigation( | 164 virtual WebNavigationPolicy decidePolicyForNavigation( |
164 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi
gationType, | 165 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi
gationType, |
165 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } | 166 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli
cy; } |
166 | 167 |
| 168 // During a history navigation, we may choose to load new subframes from his
tory as well. |
| 169 // This returns such a history item if appropriate. |
| 170 virtual WebHistoryItem historyItemForNewChildFrame(WebFrame*) { return WebHi
storyItem(); } |
| 171 |
167 | 172 |
168 // Navigational notifications ------------------------------------------ | 173 // Navigational notifications ------------------------------------------ |
169 | 174 |
170 // A form submission has been requested, but the page's submit event handler | 175 // A form submission has been requested, but the page's submit event handler |
171 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) | 176 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) |
172 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } | 177 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } |
173 | 178 |
174 // A form submission is about to occur. | 179 // A form submission is about to occur. |
175 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } | 180 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } |
176 | 181 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 411 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
407 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 412 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
408 | 413 |
409 protected: | 414 protected: |
410 ~WebFrameClient() { } | 415 ~WebFrameClient() { } |
411 }; | 416 }; |
412 | 417 |
413 } // namespace blink | 418 } // namespace blink |
414 | 419 |
415 #endif | 420 #endif |
OLD | NEW |