| 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "net/base/escape.h" | 35 #include "net/base/escape.h" |
| 36 #include "net/base/net_errors.h" | 36 #include "net/base/net_errors.h" |
| 37 #include "skia/ext/bitmap_platform_device.h" | 37 #include "skia/ext/bitmap_platform_device.h" |
| 38 #include "skia/ext/image_operations.h" | 38 #include "skia/ext/image_operations.h" |
| 39 #include "webkit/default_plugin/default_plugin_shared.h" | 39 #include "webkit/default_plugin/default_plugin_shared.h" |
| 40 #include "webkit/glue/dom_operations.h" | 40 #include "webkit/glue/dom_operations.h" |
| 41 #include "webkit/glue/dom_serializer.h" | 41 #include "webkit/glue/dom_serializer.h" |
| 42 #include "webkit/glue/glue_accessibility.h" | 42 #include "webkit/glue/glue_accessibility.h" |
| 43 #include "webkit/glue/password_form.h" | 43 #include "webkit/glue/password_form.h" |
| 44 #include "webkit/glue/plugins/plugin_list.h" | 44 #include "webkit/glue/plugins/plugin_list.h" |
| 45 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | |
| 46 #include "webkit/glue/searchable_form_data.h" | 45 #include "webkit/glue/searchable_form_data.h" |
| 47 #include "webkit/glue/webdatasource.h" | 46 #include "webkit/glue/webdatasource.h" |
| 48 #include "webkit/glue/webdropdata.h" | 47 #include "webkit/glue/webdropdata.h" |
| 49 #include "webkit/glue/weberror.h" | 48 #include "webkit/glue/weberror.h" |
| 50 #include "webkit/glue/webframe.h" | 49 #include "webkit/glue/webframe.h" |
| 51 #include "webkit/glue/webhistoryitem.h" | 50 #include "webkit/glue/webhistoryitem.h" |
| 52 #include "webkit/glue/webinputevent.h" | 51 #include "webkit/glue/webinputevent.h" |
| 53 #include "webkit/glue/webkit_glue.h" | 52 #include "webkit/glue/webkit_glue.h" |
| 54 #include "webkit/glue/webpreferences.h" | 53 #include "webkit/glue/webpreferences.h" |
| 54 #include "webkit/glue/webplugin_delegate.h" |
| 55 #include "webkit/glue/webresponse.h" | 55 #include "webkit/glue/webresponse.h" |
| 56 #include "webkit/glue/weburlrequest.h" | 56 #include "webkit/glue/weburlrequest.h" |
| 57 #include "webkit/glue/webview.h" | 57 #include "webkit/glue/webview.h" |
| 58 | 58 |
| 59 #include "generated_resources.h" | 59 #include "generated_resources.h" |
| 60 | 60 |
| 61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
| 62 // TODO(port): these files are currently Windows only because they concern: | 62 // TODO(port): these files are currently Windows only because they concern: |
| 63 // * plugins | 63 // * plugins |
| 64 // * printing | 64 // * printing |
| (...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 return NULL; | 1888 return NULL; |
| 1889 | 1889 |
| 1890 std::string mime_type_to_use; | 1890 std::string mime_type_to_use; |
| 1891 if (actual_mime_type && !actual_mime_type->empty()) | 1891 if (actual_mime_type && !actual_mime_type->empty()) |
| 1892 mime_type_to_use = *actual_mime_type; | 1892 mime_type_to_use = *actual_mime_type; |
| 1893 else | 1893 else |
| 1894 mime_type_to_use = mime_type; | 1894 mime_type_to_use = mime_type; |
| 1895 | 1895 |
| 1896 if (is_gears) | 1896 if (is_gears) |
| 1897 ChromePluginLib::Create(path, GetCPBrowserFuncsForRenderer()); | 1897 ChromePluginLib::Create(path, GetCPBrowserFuncsForRenderer()); |
| 1898 return WebPluginDelegateImpl::Create(path, | 1898 return WebPluginDelegate::Create(path, |
| 1899 mime_type_to_use, | 1899 mime_type_to_use, |
| 1900 gfx::NativeViewFromId(host_window_)); | 1900 gfx::NativeViewFromId(host_window_)); |
| 1901 } | 1901 } |
| 1902 | 1902 |
| 1903 WebPluginDelegateProxy* proxy = | 1903 WebPluginDelegateProxy* proxy = |
| 1904 WebPluginDelegateProxy::Create(url, mime_type, clsid, this); | 1904 WebPluginDelegateProxy::Create(url, mime_type, clsid, this); |
| 1905 if (!proxy) | 1905 if (!proxy) |
| 1906 return NULL; | 1906 return NULL; |
| 1907 | 1907 |
| 1908 // We hold onto the proxy so we can poke it when we are painting. See our | 1908 // We hold onto the proxy so we can poke it when we are painting. See our |
| 1909 // DidPaint implementation below. | 1909 // DidPaint implementation below. |
| 1910 plugin_delegates_.push_back(proxy); | 1910 plugin_delegates_.push_back(proxy); |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2850 #if defined(OS_WIN) | 2850 #if defined(OS_WIN) |
| 2851 // "t" is the id of the templates root node. | 2851 // "t" is the id of the templates root node. |
| 2852 return jstemplate_builder::GetTemplateHtml( | 2852 return jstemplate_builder::GetTemplateHtml( |
| 2853 template_html, &error_strings, "t"); | 2853 template_html, &error_strings, "t"); |
| 2854 #else | 2854 #else |
| 2855 // TODO(port) | 2855 // TODO(port) |
| 2856 NOTIMPLEMENTED(); | 2856 NOTIMPLEMENTED(); |
| 2857 return std::string(); | 2857 return std::string(); |
| 2858 #endif // OS_WIN | 2858 #endif // OS_WIN |
| 2859 } | 2859 } |
| OLD | NEW |