| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 virtual WebNavigationPolicy decidePolicyForNavigation(const NavigationPolicy
Info& info) | 266 virtual WebNavigationPolicy decidePolicyForNavigation(const NavigationPolicy
Info& info) |
| 267 { | 267 { |
| 268 return info.defaultPolicy; | 268 return info.defaultPolicy; |
| 269 } | 269 } |
| 270 | 270 |
| 271 // During a history navigation, we may choose to load new subframes from his
tory as well. | 271 // During a history navigation, we may choose to load new subframes from his
tory as well. |
| 272 // This returns such a history item if appropriate. | 272 // This returns such a history item if appropriate. |
| 273 virtual WebHistoryItem historyItemForNewChildFrame() { return WebHistoryItem
(); } | 273 virtual WebHistoryItem historyItemForNewChildFrame() { return WebHistoryItem
(); } |
| 274 | 274 |
| 275 // Whether the client is handling a navigation request. | |
| 276 virtual bool hasPendingNavigation() { return false; } | |
| 277 | |
| 278 // Navigational notifications ------------------------------------------ | 275 // Navigational notifications ------------------------------------------ |
| 279 | 276 |
| 280 // These notifications bracket any loading that occurs in the WebFrame. | 277 // These notifications bracket any loading that occurs in the WebFrame. |
| 281 virtual void didStartLoading(bool toDifferentDocument) { } | 278 virtual void didStartLoading(bool toDifferentDocument) { } |
| 282 virtual void didStopLoading() { } | 279 virtual void didStopLoading() { } |
| 283 | 280 |
| 284 // Notification that some progress was made loading the current frame. | 281 // Notification that some progress was made loading the current frame. |
| 285 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully | 282 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully |
| 286 // loaded). | 283 // loaded). |
| 287 virtual void didChangeLoadProgress(double loadProgress) { } | 284 virtual void didChangeLoadProgress(double loadProgress) { } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 return WebPageVisibilityStateVisible; | 724 return WebPageVisibilityStateVisible; |
| 728 } | 725 } |
| 729 | 726 |
| 730 protected: | 727 protected: |
| 731 virtual ~WebFrameClient() { } | 728 virtual ~WebFrameClient() { } |
| 732 }; | 729 }; |
| 733 | 730 |
| 734 } // namespace blink | 731 } // namespace blink |
| 735 | 732 |
| 736 #endif | 733 #endif |
| OLD | NEW |