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/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 | 864 |
865 RenderWidgetHost::Shutdown(); | 865 RenderWidgetHost::Shutdown(); |
866 } | 866 } |
867 | 867 |
868 bool RenderViewHost::IsRenderView() const { | 868 bool RenderViewHost::IsRenderView() const { |
869 return true; | 869 return true; |
870 } | 870 } |
871 | 871 |
872 void RenderViewHost::CreateNewWindow( | 872 void RenderViewHost::CreateNewWindow( |
873 int route_id, | 873 int route_id, |
874 WindowContainerType window_container_type, | 874 const ViewHostMsg_CreateWindow_Params& params) { |
875 const string16& frame_name) { | |
876 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 875 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
877 if (!view) | 876 if (!view) |
878 return; | 877 return; |
879 | 878 |
880 view->CreateNewWindow(route_id, window_container_type, frame_name); | 879 view->CreateNewWindow(route_id, params); |
881 } | 880 } |
882 | 881 |
883 void RenderViewHost::CreateNewWidget(int route_id, | 882 void RenderViewHost::CreateNewWidget(int route_id, |
884 WebKit::WebPopupType popup_type) { | 883 WebKit::WebPopupType popup_type) { |
885 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 884 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
886 if (view) | 885 if (view) |
887 view->CreateNewWidget(route_id, popup_type); | 886 view->CreateNewWidget(route_id, popup_type); |
888 } | 887 } |
889 | 888 |
890 void RenderViewHost::CreateNewFullscreenWidget( | 889 void RenderViewHost::CreateNewFullscreenWidget( |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 if (printer_query.get()) { | 1850 if (printer_query.get()) { |
1852 BrowserThread::PostTask( | 1851 BrowserThread::PostTask( |
1853 BrowserThread::IO, FROM_HERE, | 1852 BrowserThread::IO, FROM_HERE, |
1854 NewRunnableMethod(printer_query.get(), | 1853 NewRunnableMethod(printer_query.get(), |
1855 &printing::PrinterQuery::StopWorker)); | 1854 &printing::PrinterQuery::StopWorker)); |
1856 } | 1855 } |
1857 | 1856 |
1858 // Send the printingDone msg for now. | 1857 // Send the printingDone msg for now. |
1859 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); | 1858 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); |
1860 } | 1859 } |
OLD | NEW |