OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "chrome/renderer/media/audio_renderer_impl.h" | 55 #include "chrome/renderer/media/audio_renderer_impl.h" |
56 #include "chrome/renderer/media/ipc_video_decoder.h" | 56 #include "chrome/renderer/media/ipc_video_decoder.h" |
57 #include "chrome/renderer/media/ipc_video_renderer.h" | 57 #include "chrome/renderer/media/ipc_video_renderer.h" |
58 #include "chrome/renderer/navigation_state.h" | 58 #include "chrome/renderer/navigation_state.h" |
59 #include "chrome/renderer/notification_provider.h" | 59 #include "chrome/renderer/notification_provider.h" |
60 #include "chrome/renderer/plugin_channel_host.h" | 60 #include "chrome/renderer/plugin_channel_host.h" |
61 #include "chrome/renderer/print_web_view_helper.h" | 61 #include "chrome/renderer/print_web_view_helper.h" |
62 #include "chrome/renderer/render_process.h" | 62 #include "chrome/renderer/render_process.h" |
63 #include "chrome/renderer/render_thread.h" | 63 #include "chrome/renderer/render_thread.h" |
64 #include "chrome/renderer/render_view_visitor.h" | 64 #include "chrome/renderer/render_view_visitor.h" |
| 65 #include "chrome/renderer/render_widget_fullscreen.h" |
65 #include "chrome/renderer/renderer_webapplicationcachehost_impl.h" | 66 #include "chrome/renderer/renderer_webapplicationcachehost_impl.h" |
66 #include "chrome/renderer/renderer_webstoragenamespace_impl.h" | 67 #include "chrome/renderer/renderer_webstoragenamespace_impl.h" |
67 #include "chrome/renderer/speech_input_dispatcher.h" | 68 #include "chrome/renderer/speech_input_dispatcher.h" |
68 #include "chrome/renderer/spellchecker/spellcheck.h" | 69 #include "chrome/renderer/spellchecker/spellcheck.h" |
69 #include "chrome/renderer/user_script_slave.h" | 70 #include "chrome/renderer/user_script_slave.h" |
70 #include "chrome/renderer/visitedlink_slave.h" | 71 #include "chrome/renderer/visitedlink_slave.h" |
71 #include "chrome/renderer/webplugin_delegate_pepper.h" | 72 #include "chrome/renderer/webplugin_delegate_pepper.h" |
72 #include "chrome/renderer/webplugin_delegate_proxy.h" | 73 #include "chrome/renderer/webplugin_delegate_proxy.h" |
73 #include "chrome/renderer/websharedworker_proxy.h" | 74 #include "chrome/renderer/websharedworker_proxy.h" |
74 #include "chrome/renderer/webworker_proxy.h" | 75 #include "chrome/renderer/webworker_proxy.h" |
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1692 } | 1693 } |
1693 | 1694 |
1694 WebWidget* RenderView::createPopupMenu(const WebPopupMenuInfo& info) { | 1695 WebWidget* RenderView::createPopupMenu(const WebPopupMenuInfo& info) { |
1695 RenderWidget* widget = RenderWidget::Create(routing_id_, | 1696 RenderWidget* widget = RenderWidget::Create(routing_id_, |
1696 render_thread_, | 1697 render_thread_, |
1697 WebKit::WebPopupTypeSelect); | 1698 WebKit::WebPopupTypeSelect); |
1698 widget->ConfigureAsExternalPopupMenu(info); | 1699 widget->ConfigureAsExternalPopupMenu(info); |
1699 return widget->webwidget(); | 1700 return widget->webwidget(); |
1700 } | 1701 } |
1701 | 1702 |
| 1703 WebWidget* RenderView::createFullscreenWindow(WebKit::WebPopupType popup_type) { |
| 1704 RenderWidget* widget = RenderWidgetFullscreen::Create(routing_id_, |
| 1705 render_thread_, |
| 1706 popup_type); |
| 1707 return widget->webwidget(); |
| 1708 } |
| 1709 |
1702 WebStorageNamespace* RenderView::createSessionStorageNamespace(unsigned quota) { | 1710 WebStorageNamespace* RenderView::createSessionStorageNamespace(unsigned quota) { |
1703 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) | 1711 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) |
1704 return WebStorageNamespace::createSessionStorageNamespace(quota); | 1712 return WebStorageNamespace::createSessionStorageNamespace(quota); |
1705 CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); | 1713 CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); |
1706 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, | 1714 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, |
1707 session_storage_namespace_id_); | 1715 session_storage_namespace_id_); |
1708 } | 1716 } |
1709 | 1717 |
1710 void RenderView::didAddMessageToConsole( | 1718 void RenderView::didAddMessageToConsole( |
1711 const WebConsoleMessage& message, const WebString& source_name, | 1719 const WebConsoleMessage& message, const WebString& source_name, |
(...skipping 3788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5500 // the origins of the two domains are different. This can be treated as a | 5508 // the origins of the two domains are different. This can be treated as a |
5501 // top level navigation and routed back to the host. | 5509 // top level navigation and routed back to the host. |
5502 WebKit::WebFrame* opener = frame->opener(); | 5510 WebKit::WebFrame* opener = frame->opener(); |
5503 if (opener) { | 5511 if (opener) { |
5504 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) | 5512 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) |
5505 return true; | 5513 return true; |
5506 } | 5514 } |
5507 } | 5515 } |
5508 return false; | 5516 return false; |
5509 } | 5517 } |
OLD | NEW |