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 5151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5162 if (!has_document_tag_) { | 5162 if (!has_document_tag_) { |
5163 // Make the call to get the tag. | 5163 // Make the call to get the tag. |
5164 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); | 5164 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); |
5165 has_document_tag_ = true; | 5165 has_document_tag_ = true; |
5166 } | 5166 } |
5167 #endif | 5167 #endif |
5168 } | 5168 } |
5169 | 5169 |
5170 #if defined(OS_MACOSX) | 5170 #if defined(OS_MACOSX) |
5171 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle( | 5171 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle( |
5172 bool opaque) { | 5172 bool opaque, bool root) { |
5173 gfx::PluginWindowHandle window = NULL; | 5173 gfx::PluginWindowHandle window = NULL; |
5174 Send(new ViewHostMsg_AllocateFakePluginWindowHandle( | 5174 Send(new ViewHostMsg_AllocateFakePluginWindowHandle( |
5175 routing_id(), opaque, &window)); | 5175 routing_id(), opaque, root, &window)); |
5176 return window; | 5176 return window; |
5177 } | 5177 } |
5178 | 5178 |
5179 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) { | 5179 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) { |
5180 if (window) | 5180 if (window) |
5181 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window)); | 5181 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window)); |
5182 } | 5182 } |
5183 | 5183 |
5184 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 5184 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
5185 int32 width, | 5185 int32 width, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5289 // the origins of the two domains are different. This can be treated as a | 5289 // the origins of the two domains are different. This can be treated as a |
5290 // top level navigation and routed back to the host. | 5290 // top level navigation and routed back to the host. |
5291 WebKit::WebFrame* opener = frame->opener(); | 5291 WebKit::WebFrame* opener = frame->opener(); |
5292 if (opener) { | 5292 if (opener) { |
5293 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) | 5293 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) |
5294 return true; | 5294 return true; |
5295 } | 5295 } |
5296 } | 5296 } |
5297 return false; | 5297 return false; |
5298 } | 5298 } |
OLD | NEW |