| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 | 125 |
| 126 void WebFrameLoaderClient::documentElementAvailable() { | 126 void WebFrameLoaderClient::documentElementAvailable() { |
| 127 WebViewImpl* webview = webframe_->GetWebViewImpl(); | 127 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 128 WebViewDelegate* d = webview->delegate(); | 128 WebViewDelegate* d = webview->delegate(); |
| 129 if (d) | 129 if (d) |
| 130 d->DocumentElementAvailable(webframe_); | 130 d->DocumentElementAvailable(webframe_); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void WebFrameLoaderClient::didCreateScriptContext() { | 133 void WebFrameLoaderClient::didCreateScriptContextForFrame() { |
| 134 WebViewImpl* webview = webframe_->GetWebViewImpl(); | 134 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 135 WebViewDelegate* d = webview->delegate(); | 135 WebViewDelegate* d = webview->delegate(); |
| 136 if (d) | 136 if (d) |
| 137 d->DidCreateScriptContext(webframe_); | 137 d->DidCreateScriptContextForFrame(webframe_); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void WebFrameLoaderClient::didDestroyScriptContext() { | 140 void WebFrameLoaderClient::didDestroyScriptContextForFrame() { |
| 141 WebViewImpl* webview = webframe_->GetWebViewImpl(); | 141 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 142 WebViewDelegate* d = webview->delegate(); | 142 WebViewDelegate* d = webview->delegate(); |
| 143 if (d) | 143 if (d) |
| 144 d->DidDestroyScriptContext(webframe_); | 144 d->DidDestroyScriptContextForFrame(webframe_); |
| 145 } |
| 146 |
| 147 void WebFrameLoaderClient::didCreateIsolatedScriptContext() { |
| 148 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 149 WebViewDelegate* d = webview->delegate(); |
| 150 if (d) |
| 151 d->DidCreateIsolatedScriptContext(webframe_); |
| 145 } | 152 } |
| 146 | 153 |
| 147 void WebFrameLoaderClient::didPerformFirstNavigation() const { | 154 void WebFrameLoaderClient::didPerformFirstNavigation() const { |
| 148 } | 155 } |
| 149 | 156 |
| 150 void WebFrameLoaderClient::registerForIconNotification(bool listen){ | 157 void WebFrameLoaderClient::registerForIconNotification(bool listen){ |
| 151 } | 158 } |
| 152 | 159 |
| 153 bool WebFrameLoaderClient::hasWebView() const { | 160 bool WebFrameLoaderClient::hasWebView() const { |
| 154 return webframe_->GetWebViewImpl() != NULL; | 161 return webframe_->GetWebViewImpl() != NULL; |
| (...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 | 1523 |
| 1517 std::string offset_str = url.ExtractFileName(); | 1524 std::string offset_str = url.ExtractFileName(); |
| 1518 int offset; | 1525 int offset; |
| 1519 if (!StringToInt(offset_str, &offset)) | 1526 if (!StringToInt(offset_str, &offset)) |
| 1520 return; | 1527 return; |
| 1521 | 1528 |
| 1522 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); | 1529 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); |
| 1523 if (d) | 1530 if (d) |
| 1524 d->NavigateBackForwardSoon(offset); | 1531 d->NavigateBackForwardSoon(offset); |
| 1525 } | 1532 } |
| OLD | NEW |