| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/external_tab_container_win.h" | 5 #include "chrome/browser/external_tab_container_win.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 } | 730 } |
| 731 | 731 |
| 732 void ExternalTabContainer::ShowRepostFormWarningDialog( | 732 void ExternalTabContainer::ShowRepostFormWarningDialog( |
| 733 TabContents* tab_contents) { | 733 TabContents* tab_contents) { |
| 734 browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents); | 734 browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents); |
| 735 } | 735 } |
| 736 | 736 |
| 737 bool ExternalTabContainer::OnMessageReceived(const IPC::Message& message) { | 737 bool ExternalTabContainer::OnMessageReceived(const IPC::Message& message) { |
| 738 bool handled = true; | 738 bool handled = true; |
| 739 IPC_BEGIN_MESSAGE_MAP(ExternalTabContainer, message) | 739 IPC_BEGIN_MESSAGE_MAP(ExternalTabContainer, message) |
| 740 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, | 740 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ForwardMessageToExternalHost, |
| 741 OnForwardMessageToExternalHost) | 741 OnForwardMessageToExternalHost) |
| 742 IPC_MESSAGE_UNHANDLED(handled = false) | 742 IPC_MESSAGE_UNHANDLED(handled = false) |
| 743 IPC_END_MESSAGE_MAP() | 743 IPC_END_MESSAGE_MAP() |
| 744 return handled; | 744 return handled; |
| 745 } | 745 } |
| 746 | 746 |
| 747 void ExternalTabContainer::OnForwardMessageToExternalHost( | 747 void ExternalTabContainer::OnForwardMessageToExternalHost( |
| 748 const std::string& message, | 748 const std::string& message, |
| 749 const std::string& origin, | 749 const std::string& origin, |
| 750 const std::string& target) { | 750 const std::string& target) { |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 if (params.disposition == CURRENT_TAB) { | 1156 if (params.disposition == CURRENT_TAB) { |
| 1157 DCHECK(route_all_top_level_navigations_); | 1157 DCHECK(route_all_top_level_navigations_); |
| 1158 forward_params.disposition = NEW_FOREGROUND_TAB; | 1158 forward_params.disposition = NEW_FOREGROUND_TAB; |
| 1159 } | 1159 } |
| 1160 TabContents* new_contents = | 1160 TabContents* new_contents = |
| 1161 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1161 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
| 1162 // support only one navigation for a dummy tab before it is killed. | 1162 // support only one navigation for a dummy tab before it is killed. |
| 1163 ::DestroyWindow(GetNativeView()); | 1163 ::DestroyWindow(GetNativeView()); |
| 1164 return new_contents; | 1164 return new_contents; |
| 1165 } | 1165 } |
| OLD | NEW |