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

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

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 concludeEditDrag(dragData)) { 269 concludeEditDrag(dragData)) {
270 m_documentUnderMouse = nullptr; 270 m_documentUnderMouse = nullptr;
271 return true; 271 return true;
272 } 272 }
273 273
274 m_documentUnderMouse = nullptr; 274 m_documentUnderMouse = nullptr;
275 275
276 if (operationForLoad(dragData, localRoot) == DragOperationNone) 276 if (operationForLoad(dragData, localRoot) == DragOperationNone)
277 return false; 277 return false;
278 278
279 if (m_page->settings().navigateOnDragDrop()) { 279 if (m_page->settings().getNavigateOnDragDrop()) {
280 m_page->mainFrame()->navigate( 280 m_page->mainFrame()->navigate(
281 FrameLoadRequest(nullptr, ResourceRequest(dragData->asURL()))); 281 FrameLoadRequest(nullptr, ResourceRequest(dragData->asURL())));
282 } 282 }
283 return true; 283 return true;
284 } 284 }
285 285
286 void DragController::mouseMovedIntoDocument(Document* newDocument) { 286 void DragController::mouseMovedIntoDocument(Document* newDocument) {
287 if (m_documentUnderMouse == newDocument) 287 if (m_documentUnderMouse == newDocument)
288 return; 288 return;
289 289
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 // looking for a parent to try to drag. 770 // looking for a parent to try to drag.
771 return nullptr; 771 return nullptr;
772 } 772 }
773 if (node->isElementNode()) { 773 if (node->isElementNode()) {
774 EUserDrag dragMode = layoutObject->style()->userDrag(); 774 EUserDrag dragMode = layoutObject->style()->userDrag();
775 if (dragMode == DRAG_NONE) 775 if (dragMode == DRAG_NONE)
776 continue; 776 continue;
777 // Even if the image is part of a selection, we always only drag the image 777 // Even if the image is part of a selection, we always only drag the image
778 // in this case. 778 // in this case.
779 if (layoutObject->isImage() && src->settings() && 779 if (layoutObject->isImage() && src->settings() &&
780 src->settings()->loadsImagesAutomatically()) { 780 src->settings()->getLoadsImagesAutomatically()) {
781 dragType = DragSourceActionImage; 781 dragType = DragSourceActionImage;
782 return node; 782 return node;
783 } 783 }
784 // Other draggable elements are considered unselectable. 784 // Other draggable elements are considered unselectable.
785 if (dragMode == DRAG_ELEMENT) { 785 if (dragMode == DRAG_ELEMENT) {
786 candidateDragType = DragSourceActionDHTML; 786 candidateDragType = DragSourceActionDHTML;
787 break; 787 break;
788 } 788 }
789 if (isHTMLAnchorElement(*node) && 789 if (isHTMLAnchorElement(*node) &&
790 toHTMLAnchorElement(node)->isLiveLink()) { 790 toHTMLAnchorElement(node)->isLiveLink()) {
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 } 1224 }
1225 1225
1226 DEFINE_TRACE(DragController) { 1226 DEFINE_TRACE(DragController) {
1227 visitor->trace(m_page); 1227 visitor->trace(m_page);
1228 visitor->trace(m_documentUnderMouse); 1228 visitor->trace(m_documentUnderMouse);
1229 visitor->trace(m_dragInitiator); 1229 visitor->trace(m_dragInitiator);
1230 visitor->trace(m_fileInputElementUnderMouse); 1230 visitor->trace(m_fileInputElementUnderMouse);
1231 } 1231 }
1232 1232
1233 } // namespace blink 1233 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/CreateWindow.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698