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/browser/render_view_host.h" | 5 #include "chrome/browser/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 RenderWidgetHost::Shutdown(); | 730 RenderWidgetHost::Shutdown(); |
731 } | 731 } |
732 | 732 |
733 void RenderViewHost::OnMsgCreateWindow(int route_id, | 733 void RenderViewHost::OnMsgCreateWindow(int route_id, |
734 HANDLE modal_dialog_event) { | 734 HANDLE modal_dialog_event) { |
735 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 735 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
736 if (view) | 736 if (view) |
737 view->CreateNewWindow(route_id, modal_dialog_event); | 737 view->CreateNewWindow(route_id, modal_dialog_event); |
738 } | 738 } |
739 | 739 |
740 void RenderViewHost::OnMsgCreateWidget(int route_id, | 740 void RenderViewHost::OnMsgCreateWidget(int route_id, bool activatable) { |
741 bool focus_on_show) { | |
742 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 741 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
743 if (view) | 742 if (view) |
744 view->CreateNewWidget(route_id, focus_on_show); | 743 view->CreateNewWidget(route_id, activatable); |
745 } | 744 } |
746 | 745 |
747 void RenderViewHost::OnMsgShowView(int route_id, | 746 void RenderViewHost::OnMsgShowView(int route_id, |
748 WindowOpenDisposition disposition, | 747 WindowOpenDisposition disposition, |
749 const gfx::Rect& initial_pos, | 748 const gfx::Rect& initial_pos, |
750 bool user_gesture) { | 749 bool user_gesture) { |
751 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 750 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
752 if (view) | 751 if (view) |
753 view->ShowCreatedWindow(route_id, disposition, initial_pos, user_gesture); | 752 view->ShowCreatedWindow(route_id, disposition, initial_pos, user_gesture); |
754 } | 753 } |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 Send(new ViewMsg_PersonalizationEvent(routing_id_, | 1276 Send(new ViewMsg_PersonalizationEvent(routing_id_, |
1278 event_name, | 1277 event_name, |
1279 event_arg)); | 1278 event_arg)); |
1280 } | 1279 } |
1281 #endif | 1280 #endif |
1282 | 1281 |
1283 void RenderViewHost::ForwardMessageFromExternalHost( | 1282 void RenderViewHost::ForwardMessageFromExternalHost( |
1284 const std::string& target, const std::string& message) { | 1283 const std::string& target, const std::string& message) { |
1285 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); | 1284 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); |
1286 } | 1285 } |
OLD | NEW |