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 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 // This method gets called when a plugin is put in place of html content | 1412 // This method gets called when a plugin is put in place of html content |
1413 // (e.g., acrobat reader). | 1413 // (e.g., acrobat reader). |
1414 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) { | 1414 void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) { |
1415 plugin_widget_ = static_cast<WebPluginContainer*>(pluginWidget); | 1415 plugin_widget_ = static_cast<WebPluginContainer*>(pluginWidget); |
1416 DCHECK(plugin_widget_ != NULL); | 1416 DCHECK(plugin_widget_ != NULL); |
1417 } | 1417 } |
1418 | 1418 |
1419 Widget* WebFrameLoaderClient::createJavaAppletWidget( | 1419 Widget* WebFrameLoaderClient::createJavaAppletWidget( |
1420 const IntSize& size, | 1420 const IntSize& size, |
1421 HTMLAppletElement* element, | 1421 HTMLAppletElement* element, |
1422 const KURL& url, | 1422 const KURL& /* base_url */, |
1423 const Vector<String>& param_names, | 1423 const Vector<String>& param_names, |
1424 const Vector<String>& param_values) { | 1424 const Vector<String>& param_values) { |
1425 return createPlugin(size, element, url, param_names, param_values, | 1425 return createPlugin(size, element, KURL(), param_names, param_values, |
1426 "application/x-java-applet", false); | 1426 "application/x-java-applet", false); |
1427 } | 1427 } |
1428 | 1428 |
1429 ObjectContentType WebFrameLoaderClient::objectContentType( | 1429 ObjectContentType WebFrameLoaderClient::objectContentType( |
1430 const KURL& url, | 1430 const KURL& url, |
1431 const String& explicit_mime_type) { | 1431 const String& explicit_mime_type) { |
1432 // This code is based on Apple's implementation from | 1432 // This code is based on Apple's implementation from |
1433 // WebCoreSupport/WebFrameBridge.mm. | 1433 // WebCoreSupport/WebFrameBridge.mm. |
1434 | 1434 |
1435 String mime_type = explicit_mime_type; | 1435 String mime_type = explicit_mime_type; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 | 1505 |
1506 std::string offset_str = url.ExtractFileName(); | 1506 std::string offset_str = url.ExtractFileName(); |
1507 int offset; | 1507 int offset; |
1508 if (!StringToInt(offset_str, &offset)) | 1508 if (!StringToInt(offset_str, &offset)) |
1509 return; | 1509 return; |
1510 | 1510 |
1511 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); | 1511 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); |
1512 if (d) | 1512 if (d) |
1513 d->NavigateBackForwardSoon(offset); | 1513 d->NavigateBackForwardSoon(offset); |
1514 } | 1514 } |
OLD | NEW |