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

Unified Diff: webkit/port/page/chromium/DragControllerChromium.cpp

Issue 7419: Move many files that were suffixed Win.cpp to Chromium.cpp, and place them in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
Index: webkit/port/page/chromium/DragControllerChromium.cpp
===================================================================
--- webkit/port/page/chromium/DragControllerChromium.cpp (revision 0)
+++ webkit/port/page/chromium/DragControllerChromium.cpp (working copy)
@@ -27,10 +27,13 @@
#include "DragController.h"
#include "DragData.h"
-#include "windows.h"
#include "SelectionController.h"
#include <wtf/RefPtr.h>
+#if PLATFORM(WIN)
+#include <windows.h>
+#endif
+
namespace WebCore {
const int DragController::LinkDragBorderInset = 2;
@@ -51,7 +54,13 @@
}
bool DragController::isCopyKeyDown() {
+ // TODO(darin): This should not be OS specific. Delegate to the embedder
+ // instead.
+#if PLATFORM(WIN)
return ::GetAsyncKeyState(VK_CONTROL);
+#else
+ return false;
+#endif
}
const IntSize& DragController::maxDragImageSize()
Property changes on: webkit\port\page\chromium\DragControllerChromium.cpp
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/webkit/port/page/DragControllerWin.cpp:r69-2775
« no previous file with comments | « webkit/port/page/chromium/ChromeClientChromium.h ('k') | webkit/port/page/chromium/EventHandlerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698