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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorCounters.h ('k') | Source/core/page/FocusController.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCounters.h ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698