Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: chrome_frame/chrome_frame_activex.cc

Issue 6458004: Remove includes of message headers in headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/chrome_frame_activex_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_activex.cc
===================================================================
--- chrome_frame/chrome_frame_activex.cc (revision 74235)
+++ chrome_frame/chrome_frame_activex.cc (working copy)
@@ -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 @@
} // 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, "");
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/chrome_frame_activex_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698