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

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

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/loader/NavigationPolicy.cpp ('k') | Source/core/page/EventHandler.cpp » ('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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 IntRect draggingRect = enclosingIntRect(sourceFrame->selection().bounds()); 749 IntRect draggingRect = enclosingIntRect(sourceFrame->selection().bounds());
750 int xpos = draggingRect.maxX(); 750 int xpos = draggingRect.maxX();
751 xpos = draggingRect.x() < xpos ? draggingRect.x() : xpos; 751 xpos = draggingRect.x() < xpos ? draggingRect.x() : xpos;
752 int ypos = draggingRect.maxY(); 752 int ypos = draggingRect.maxY();
753 ypos = draggingRect.y() < ypos ? draggingRect.y() : ypos; 753 ypos = draggingRect.y() < ypos ? draggingRect.y() : ypos;
754 return IntPoint(xpos, ypos); 754 return IntPoint(xpos, ypos);
755 } 755 }
756 756
757 static const IntSize& maxDragImageSize() 757 static const IntSize& maxDragImageSize()
758 { 758 {
759 #if OS(DARWIN) 759 #if OS(MACOSX)
760 // Match Safari's drag image size. 760 // Match Safari's drag image size.
761 static const IntSize maxDragImageSize(400, 400); 761 static const IntSize maxDragImageSize(400, 400);
762 #else 762 #else
763 static const IntSize maxDragImageSize(200, 200); 763 static const IntSize maxDragImageSize(200, 200);
764 #endif 764 #endif
765 return maxDragImageSize; 765 return maxDragImageSize;
766 } 766 }
767 767
768 static PassOwnPtr<DragImage> dragImageForImage(Element* element, Image* image, c onst IntPoint& dragOrigin, const IntRect& imageRect, IntPoint& dragLocation) 768 static PassOwnPtr<DragImage> dragImageForImage(Element* element, Image* image, c onst IntPoint& dragOrigin, const IntRect& imageRect, IntPoint& dragLocation)
769 { 769 {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/loader/NavigationPolicy.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698