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

Side by Side Diff: Source/core/page/DragController.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/page/AutoscrollController.cpp ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Google Inc. 3 * Copyright (C) 2008 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "core/rendering/HitTestResult.h" 71 #include "core/rendering/HitTestResult.h"
72 #include "core/rendering/RenderImage.h" 72 #include "core/rendering/RenderImage.h"
73 #include "core/rendering/RenderTheme.h" 73 #include "core/rendering/RenderTheme.h"
74 #include "core/rendering/RenderView.h" 74 #include "core/rendering/RenderView.h"
75 #include "weborigin/SecurityOrigin.h" 75 #include "weborigin/SecurityOrigin.h"
76 #include "wtf/CurrentTime.h" 76 #include "wtf/CurrentTime.h"
77 #include "wtf/OwnPtr.h" 77 #include "wtf/OwnPtr.h"
78 #include "wtf/PassOwnPtr.h" 78 #include "wtf/PassOwnPtr.h"
79 #include "wtf/RefPtr.h" 79 #include "wtf/RefPtr.h"
80 80
81 #if OS(WINDOWS) 81 #if OS(WIN)
82 #include <windows.h> 82 #include <windows.h>
83 #endif 83 #endif
84 84
85 namespace WebCore { 85 namespace WebCore {
86 86
87 const int DragController::DragIconRightInset = 7; 87 const int DragController::DragIconRightInset = 7;
88 const int DragController::DragIconBottomInset = 3; 88 const int DragController::DragIconBottomInset = 3;
89 89
90 static const int MaxOriginalImageArea = 1500 * 1500; 90 static const int MaxOriginalImageArea = 1500 * 1500;
91 static const int LinkDragBorderInset = 2; 91 static const int LinkDragBorderInset = 2;
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 // if we are a modal window, we are the drag source, or the window is an 909 // if we are a modal window, we are the drag source, or the window is an
910 // attached sheet If this can be determined from within WebCore 910 // attached sheet If this can be determined from within WebCore
911 // operationForDrag can be pulled into WebCore itself 911 // operationForDrag can be pulled into WebCore itself
912 ASSERT(dragData); 912 ASSERT(dragData);
913 return dragData->containsURL(0) && !m_didInitiateDrag ? DragOperationCopy : DragOperationNone; 913 return dragData->containsURL(0) && !m_didInitiateDrag ? DragOperationCopy : DragOperationNone;
914 } 914 }
915 915
916 bool DragController::isCopyKeyDown(DragData*) 916 bool DragController::isCopyKeyDown(DragData*)
917 { 917 {
918 // FIXME: This should not be OS specific. Delegate to the embedder instead. 918 // FIXME: This should not be OS specific. Delegate to the embedder instead.
919 #if OS(WINDOWS) 919 #if OS(WIN)
920 return ::GetAsyncKeyState(VK_CONTROL); 920 return ::GetAsyncKeyState(VK_CONTROL);
921 #else 921 #else
922 return false; 922 return false;
923 #endif 923 #endif
924 } 924 }
925 925
926 void DragController::cleanupAfterSystemDrag() 926 void DragController::cleanupAfterSystemDrag()
927 { 927 {
928 } 928 }
929 929
930 } // namespace WebCore 930 } // namespace WebCore
931 931
OLDNEW
« no previous file with comments | « Source/core/page/AutoscrollController.cpp ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698