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 // These notifications bracket any loading that occurs in the WebFrame. | 175 // These notifications bracket any loading that occurs in the WebFrame. |
171 virtual void didStartLoading(bool toDifferentDocument) { } | 176 virtual void didStartLoading(bool toDifferentDocument) { } |
172 virtual void didStopLoading() { } | 177 virtual void didStopLoading() { } |
173 | 178 |
174 // Notification that some progress was made loading the current frame. | 179 // Notification that some progress was made loading the current frame. |
175 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully | 180 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully |
176 // loaded). | 181 // loaded). |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 420 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
416 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 421 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
417 | 422 |
418 protected: | 423 protected: |
419 ~WebFrameClient() { } | 424 ~WebFrameClient() { } |
420 }; | 425 }; |
421 | 426 |
422 } // namespace blink | 427 } // namespace blink |
423 | 428 |
424 #endif | 429 #endif |
OLD | NEW |