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 18 matching lines...) Expand all Loading... |
29 #include "chrome/renderer/debug_message_handler.h" | 29 #include "chrome/renderer/debug_message_handler.h" |
30 #include "chrome/renderer/dev_tools_agent.h" | 30 #include "chrome/renderer/dev_tools_agent.h" |
31 #include "chrome/renderer/dev_tools_client.h" | 31 #include "chrome/renderer/dev_tools_client.h" |
32 #include "chrome/renderer/localized_error.h" | 32 #include "chrome/renderer/localized_error.h" |
33 #include "chrome/renderer/media/audio_renderer_impl.h" | 33 #include "chrome/renderer/media/audio_renderer_impl.h" |
34 #include "chrome/renderer/render_process.h" | 34 #include "chrome/renderer/render_process.h" |
35 #include "chrome/renderer/user_script_slave.h" | 35 #include "chrome/renderer/user_script_slave.h" |
36 #include "chrome/renderer/visitedlink_slave.h" | 36 #include "chrome/renderer/visitedlink_slave.h" |
37 #include "chrome/renderer/webmediaplayer_delegate_impl.h" | 37 #include "chrome/renderer/webmediaplayer_delegate_impl.h" |
38 #include "chrome/renderer/webplugin_delegate_proxy.h" | 38 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 39 #include "chrome/renderer/webworker_proxy.h" |
39 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
40 #include "grit/renderer_resources.h" | 41 #include "grit/renderer_resources.h" |
41 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
42 #include "net/base/net_errors.h" | 43 #include "net/base/net_errors.h" |
43 #include "skia/ext/bitmap_platform_device.h" | 44 #include "skia/ext/bitmap_platform_device.h" |
44 #include "skia/ext/image_operations.h" | 45 #include "skia/ext/image_operations.h" |
45 #include "webkit/default_plugin/default_plugin_shared.h" | 46 #include "webkit/default_plugin/default_plugin_shared.h" |
46 #include "webkit/glue/dom_operations.h" | 47 #include "webkit/glue/dom_operations.h" |
47 #include "webkit/glue/dom_serializer.h" | 48 #include "webkit/glue/dom_serializer.h" |
48 #include "webkit/glue/glue_accessibility.h" | 49 #include "webkit/glue/glue_accessibility.h" |
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 if (status == default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) { | 1967 if (status == default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) { |
1967 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); | 1968 Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status)); |
1968 } | 1969 } |
1969 } | 1970 } |
1970 #else | 1971 #else |
1971 // TODO(port): plugins current not supported | 1972 // TODO(port): plugins current not supported |
1972 NOTIMPLEMENTED(); | 1973 NOTIMPLEMENTED(); |
1973 #endif | 1974 #endif |
1974 } | 1975 } |
1975 | 1976 |
| 1977 WebWorker* RenderView::CreateWebWorker(WebWorkerClient* client) { |
| 1978 #if defined(OS_WIN) |
| 1979 return new WebWorkerProxy(this, client); |
| 1980 #else |
| 1981 // TODO(port): out of process workers |
| 1982 NOTIMPLEMENTED(); |
| 1983 return NULL; |
| 1984 #endif |
| 1985 } |
| 1986 |
1976 void RenderView::OpenURL(WebView* webview, const GURL& url, | 1987 void RenderView::OpenURL(WebView* webview, const GURL& url, |
1977 const GURL& referrer, | 1988 const GURL& referrer, |
1978 WindowOpenDisposition disposition) { | 1989 WindowOpenDisposition disposition) { |
1979 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition)); | 1990 Send(new ViewHostMsg_OpenURL(routing_id_, url, referrer, disposition)); |
1980 } | 1991 } |
1981 | 1992 |
1982 // We are supposed to get a single call to Show for a newly created RenderView | 1993 // We are supposed to get a single call to Show for a newly created RenderView |
1983 // that was created via RenderView::CreateWebView. So, we wait until this | 1994 // that was created via RenderView::CreateWebView. So, we wait until this |
1984 // point to dispatch the ShowView message. | 1995 // point to dispatch the ShowView message. |
1985 // | 1996 // |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2961 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); | 2972 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); |
2962 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); | 2973 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); |
2963 } | 2974 } |
2964 | 2975 |
2965 void RenderView::OnResize(const gfx::Size& new_size, | 2976 void RenderView::OnResize(const gfx::Size& new_size, |
2966 const gfx::Rect& resizer_rect) { | 2977 const gfx::Rect& resizer_rect) { |
2967 if (webview()) | 2978 if (webview()) |
2968 webview()->HideAutofillPopup(); | 2979 webview()->HideAutofillPopup(); |
2969 RenderWidget::OnResize(new_size, resizer_rect); | 2980 RenderWidget::OnResize(new_size, resizer_rect); |
2970 } | 2981 } |
OLD | NEW |