| 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 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // which is reissuing requests and turning POST into GET. | 473 // which is reissuing requests and turning POST into GET. |
| 474 if (moniker) { | 474 if (moniker) { |
| 475 NavigateBrowserToMoniker(doc_site_, moniker, NULL, bind_context, NULL); | 475 NavigateBrowserToMoniker(doc_site_, moniker, NULL, bind_context, NULL); |
| 476 } | 476 } |
| 477 | 477 |
| 478 return TRUE; | 478 return TRUE; |
| 479 } | 479 } |
| 480 | 480 |
| 481 virtual void OnAttachExternalTab(int tab_handle, | 481 virtual void OnAttachExternalTab(int tab_handle, |
| 482 const IPC::AttachExternalTabParams& params) { | 482 const IPC::AttachExternalTabParams& params) { |
| 483 std::string url; | 483 std::wstring wide_url = url_; |
| 484 url = StringPrintf("%lsattach_external_tab&%ls&%d&%d&%d&%d&%d", | 484 GURL parsed_url(WideToUTF8(wide_url)); |
| 485 kChromeProtocolPrefix, | 485 |
| 486 Uint64ToWString(params.cookie).c_str(), | 486 std::string url = |
| 487 params.disposition, | 487 StringPrintf("%hs:%hs?attach_external_tab&%I64u&%d&%d&%d&%d&%d", |
| 488 params.dimensions.x(), | 488 parsed_url.scheme().c_str(), |
| 489 params.dimensions.y(), | 489 parsed_url.host().c_str(), |
| 490 params.dimensions.width(), | 490 params.cookie, |
| 491 params.dimensions.height()); | 491 params.disposition, |
| 492 params.dimensions.x(), |
| 493 params.dimensions.y(), |
| 494 params.dimensions.width(), |
| 495 params.dimensions.height()); |
| 492 HostNavigate(GURL(url), GURL(), params.disposition); | 496 HostNavigate(GURL(url), GURL(), params.disposition); |
| 493 } | 497 } |
| 494 | 498 |
| 495 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, | 499 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, |
| 496 int align_flags, | 500 int align_flags, |
| 497 const IPC::ContextMenuParams& params) { | 501 const IPC::ContextMenuParams& params) { |
| 498 scoped_refptr<BasePlugin> ref(this); | 502 scoped_refptr<BasePlugin> ref(this); |
| 499 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle, | 503 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle, |
| 500 align_flags, params); | 504 align_flags, params); |
| 501 } | 505 } |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 EventHandlers onreadystatechanged_; | 1183 EventHandlers onreadystatechanged_; |
| 1180 EventHandlers onprivatemessage_; | 1184 EventHandlers onprivatemessage_; |
| 1181 EventHandlers onextensionready_; | 1185 EventHandlers onextensionready_; |
| 1182 | 1186 |
| 1183 // Handle network requests when host network stack is used. Passed to the | 1187 // Handle network requests when host network stack is used. Passed to the |
| 1184 // automation client on initialization. | 1188 // automation client on initialization. |
| 1185 UrlmonUrlRequestManager url_fetcher_; | 1189 UrlmonUrlRequestManager url_fetcher_; |
| 1186 }; | 1190 }; |
| 1187 | 1191 |
| 1188 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1192 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |