| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 | 120 |
| 121 void WebFrameLoaderClient::documentElementAvailable() { | 121 void WebFrameLoaderClient::documentElementAvailable() { |
| 122 WebViewImpl* webview = webframe_->GetWebViewImpl(); | 122 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 123 WebViewDelegate* d = webview->delegate(); | 123 WebViewDelegate* d = webview->delegate(); |
| 124 if (d) | 124 if (d) |
| 125 d->DocumentElementAvailable(webframe_); | 125 d->DocumentElementAvailable(webframe_); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void WebFrameLoaderClient::didCreateScriptContext() { |
| 129 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 130 WebViewDelegate* d = webview->delegate(); |
| 131 if (d) |
| 132 d->DidCreateScriptContext(webframe_); |
| 133 } |
| 134 |
| 135 void WebFrameLoaderClient::didDestroyScriptContext() { |
| 136 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 137 WebViewDelegate* d = webview->delegate(); |
| 138 if (d) |
| 139 d->DidDestroyScriptContext(webframe_); |
| 140 } |
| 141 |
| 128 void WebFrameLoaderClient::didPerformFirstNavigation() const { | 142 void WebFrameLoaderClient::didPerformFirstNavigation() const { |
| 129 } | 143 } |
| 130 | 144 |
| 131 void WebFrameLoaderClient::registerForIconNotification(bool listen){ | 145 void WebFrameLoaderClient::registerForIconNotification(bool listen){ |
| 132 } | 146 } |
| 133 | 147 |
| 134 bool WebFrameLoaderClient::hasWebView() const { | 148 bool WebFrameLoaderClient::hasWebView() const { |
| 135 return webframe_->GetWebViewImpl() != NULL; | 149 return webframe_->GetWebViewImpl() != NULL; |
| 136 } | 150 } |
| 137 | 151 |
| (...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 | 1545 |
| 1532 std::string offset_str = url.ExtractFileName(); | 1546 std::string offset_str = url.ExtractFileName(); |
| 1533 int offset; | 1547 int offset; |
| 1534 if (!StringToInt(offset_str, &offset)) | 1548 if (!StringToInt(offset_str, &offset)) |
| 1535 return; | 1549 return; |
| 1536 | 1550 |
| 1537 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); | 1551 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); |
| 1538 if (d) | 1552 if (d) |
| 1539 d->NavigateBackForwardSoon(offset); | 1553 d->NavigateBackForwardSoon(offset); |
| 1540 } | 1554 } |
| OLD | NEW |