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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 void ExternalTabContainer::RunFileChooser( | 738 void ExternalTabContainer::RunFileChooser( |
739 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params) { | 739 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params) { |
740 Browser::RunFileChooserHelper(tab, params); | 740 Browser::RunFileChooserHelper(tab, params); |
741 } | 741 } |
742 | 742 |
743 void ExternalTabContainer::EnumerateDirectory(TabContents* tab, int request_id, | 743 void ExternalTabContainer::EnumerateDirectory(TabContents* tab, int request_id, |
744 const FilePath& path) { | 744 const FilePath& path) { |
745 Browser::EnumerateDirectoryHelper(tab, request_id, path); | 745 Browser::EnumerateDirectoryHelper(tab, request_id, path); |
746 } | 746 } |
747 | 747 |
| 748 void ExternalTabContainer::JSOutOfMemory(TabContents* tab) { |
| 749 Browser::JSOutOfMemoryHelper(tab); |
| 750 } |
| 751 |
| 752 void ExternalTabContainer::RegisterProtocolHandler(TabContents* tab, |
| 753 const std::string& protocol, |
| 754 const GURL& url, |
| 755 const string16& title) { |
| 756 Browser::RegisterProtocolHandlerHelper(tab, protocol, url, title); |
| 757 } |
| 758 |
| 759 void ExternalTabContainer::RegisterIntentHandler(TabContents* tab, |
| 760 const string16& action, |
| 761 const string16& type, |
| 762 const string16& href, |
| 763 const string16& title) { |
| 764 Browser::RegisterIntentHandlerHelper(tab, action, type, href, title); |
| 765 } |
| 766 |
| 767 void ExternalTabContainer::WebIntentDispatch(TabContents* tab, |
| 768 int routing_id, |
| 769 const string16& action, |
| 770 const string16& type, |
| 771 const string16& data, |
| 772 int intent_id) { |
| 773 Browser::WebIntentDispatchHelper(tab, routing_id, action, type, data, |
| 774 intent_id); |
| 775 } |
| 776 |
748 bool ExternalTabContainer::OnMessageReceived(const IPC::Message& message) { | 777 bool ExternalTabContainer::OnMessageReceived(const IPC::Message& message) { |
749 bool handled = true; | 778 bool handled = true; |
750 IPC_BEGIN_MESSAGE_MAP(ExternalTabContainer, message) | 779 IPC_BEGIN_MESSAGE_MAP(ExternalTabContainer, message) |
751 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ForwardMessageToExternalHost, | 780 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ForwardMessageToExternalHost, |
752 OnForwardMessageToExternalHost) | 781 OnForwardMessageToExternalHost) |
753 IPC_MESSAGE_UNHANDLED(handled = false) | 782 IPC_MESSAGE_UNHANDLED(handled = false) |
754 IPC_END_MESSAGE_MAP() | 783 IPC_END_MESSAGE_MAP() |
755 return handled; | 784 return handled; |
756 } | 785 } |
757 | 786 |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 if (params.disposition == CURRENT_TAB) { | 1196 if (params.disposition == CURRENT_TAB) { |
1168 DCHECK(route_all_top_level_navigations_); | 1197 DCHECK(route_all_top_level_navigations_); |
1169 forward_params.disposition = NEW_FOREGROUND_TAB; | 1198 forward_params.disposition = NEW_FOREGROUND_TAB; |
1170 } | 1199 } |
1171 TabContents* new_contents = | 1200 TabContents* new_contents = |
1172 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1201 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
1173 // support only one navigation for a dummy tab before it is killed. | 1202 // support only one navigation for a dummy tab before it is killed. |
1174 ::DestroyWindow(GetNativeView()); | 1203 ::DestroyWindow(GetNativeView()); |
1175 return new_contents; | 1204 return new_contents; |
1176 } | 1205 } |
OLD | NEW |