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

Unified Diff: chrome/browser/tab_contents/web_drag_source.h

Issue 27192: Make web_drag_source.cc compile on Posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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/browser/browser.scons ('k') | chrome/browser/tab_contents/web_drag_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/web_drag_source.h
===================================================================
--- chrome/browser/tab_contents/web_drag_source.h (revision 10439)
+++ chrome/browser/tab_contents/web_drag_source.h (working copy)
@@ -5,9 +5,17 @@
#ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_H_
#define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_H_
-#include "base/base_drag_source.h"
#include "base/basictypes.h"
+#include "base/gfx/native_widget_types.h"
+#include "base/gfx/point.h"
+// TODO(port): Port this file.
+#if defined(OS_WIN)
+#include "base/base_drag_source.h"
+#else
+#include "chrome/common/temp_scaffolding_stubs.h"
+#endif
+
class RenderViewHost;
///////////////////////////////////////////////////////////////////////////////
@@ -22,7 +30,7 @@
class WebDragSource : public BaseDragSource {
public:
// Create a new DragSource for a given HWND and RenderViewHost.
- WebDragSource(HWND source_hwnd, RenderViewHost* render_view_host);
+ WebDragSource(gfx::NativeWindow source_wnd, RenderViewHost* render_view_host);
virtual ~WebDragSource() { }
protected:
@@ -34,8 +42,8 @@
// Cannot construct thusly.
WebDragSource();
- // Keep a reference to the HWND so we can translate the cursor position.
- HWND source_hwnd_;
+ // Keep a reference to the window so we can translate the cursor position.
+ gfx::NativeWindow source_wnd_;
// We use this as a channel to the renderer to tell it about various drag
// drop events that it needs to know about (such as when a drag operation it
« no previous file with comments | « chrome/browser/browser.scons ('k') | chrome/browser/tab_contents/web_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698