OLD | NEW |
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
92 static const float DragImageAlpha = 0.75f; | 92 static const float DragImageAlpha = 0.75f; |
93 | 93 |
94 #if !ASSERT_DISABLED | 94 #if ASSERT_ENABLED |
95 static bool dragTypeIsValid(DragSourceAction action) | 95 static bool dragTypeIsValid(DragSourceAction action) |
96 { | 96 { |
97 switch (action) { | 97 switch (action) { |
98 case DragSourceActionDHTML: | 98 case DragSourceActionDHTML: |
99 case DragSourceActionImage: | 99 case DragSourceActionImage: |
100 case DragSourceActionLink: | 100 case DragSourceActionLink: |
101 case DragSourceActionSelection: | 101 case DragSourceActionSelection: |
102 return true; | 102 return true; |
103 case DragSourceActionNone: | 103 case DragSourceActionNone: |
104 return false; | 104 return false; |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 | 965 |
966 void DragController::trace(Visitor* visitor) | 966 void DragController::trace(Visitor* visitor) |
967 { | 967 { |
968 visitor->trace(m_page); | 968 visitor->trace(m_page); |
969 visitor->trace(m_documentUnderMouse); | 969 visitor->trace(m_documentUnderMouse); |
970 visitor->trace(m_dragInitiator); | 970 visitor->trace(m_dragInitiator); |
971 visitor->trace(m_fileInputElementUnderMouse); | 971 visitor->trace(m_fileInputElementUnderMouse); |
972 } | 972 } |
973 | 973 |
974 } // namespace WebCore | 974 } // namespace WebCore |
OLD | NEW |