summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_activex.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 07:15:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 07:15:35 +0000
commita22f7e069020486f1d93510b46b488b40dcb57c7 (patch)
tree65c408219af0405df7914877a944cc2c58540cc1 /chrome_frame/chrome_frame_activex.cc
parent91c521b79fcd8a696f5a08013269cb1fd2b7c394 (diff)
downloadchromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.zip
chromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.tar.gz
chromium_src-a22f7e069020486f1d93510b46b488b40dcb57c7.tar.bz2
Remove includes of message headers in headers.
Review URL: http://codereview.chromium.org/6458004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_activex.cc')
-rw-r--r--chrome_frame/chrome_frame_activex.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_activex.cc b/chrome_frame/chrome_frame_activex.cc
index c7dcb40..d0add36 100644
--- a/chrome_frame/chrome_frame_activex.cc
+++ b/chrome_frame/chrome_frame_activex.cc
@@ -23,6 +23,7 @@
#include "base/utf_string_conversions.h"
#include "base/win/scoped_bstr.h"
#include "base/win/scoped_variant.h"
+#include "chrome/common/automation_messages.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/automation/tab_proxy.h"
@@ -115,6 +116,36 @@ HHOOK InstallLocalWindowHook(HWND window) {
} // unnamed namespace
+namespace chrome_frame {
+std::string ActiveXCreateUrl(const GURL& parsed_url,
+ const AttachExternalTabParams& params) {
+ return base::StringPrintf(
+ "%hs?attach_external_tab&%I64u&%d&%d&%d&%d&%d&%hs",
+ parsed_url.GetOrigin().spec().c_str(),
+ params.cookie,
+ params.disposition,
+ params.dimensions.x(),
+ params.dimensions.y(),
+ params.dimensions.width(),
+ params.dimensions.height(),
+ params.profile_name.c_str());
+}
+
+int GetDisposition(const AttachExternalTabParams& params) {
+ return params.disposition;
+}
+
+void GetMiniContextMenuData(UINT cmd,
+ const MiniContextMenuParams& params,
+ GURL* referrer,
+ GURL* url) {
+ *referrer = params.frame_url.is_empty() ? params.page_url : params.frame_url;
+ *url = (cmd == IDS_CONTENT_CONTEXT_SAVELINKAS ?
+ params.link_url : params.src_url);
+}
+
+} // namespace chrome_frame
+
ChromeFrameActivex::ChromeFrameActivex()
: chrome_wndproc_hook_(NULL) {
TRACE_EVENT_BEGIN("chromeframe.createactivex", this, "");