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

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

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/page/CreateWindow.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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 if ((m_dragDestinationAction & DragDestinationActionEdit) && concludeEditDra g(dragData)) { 258 if ((m_dragDestinationAction & DragDestinationActionEdit) && concludeEditDra g(dragData)) {
259 m_documentUnderMouse = 0; 259 m_documentUnderMouse = 0;
260 return true; 260 return true;
261 } 261 }
262 262
263 m_documentUnderMouse = 0; 263 m_documentUnderMouse = 0;
264 264
265 if (operationForLoad(dragData) == DragOperationNone) 265 if (operationForLoad(dragData) == DragOperationNone)
266 return false; 266 return false;
267 267
268 m_page->mainFrame()->loader()->load(FrameLoadRequest(0, ResourceRequest(drag Data->asURL()))); 268 m_page->mainFrame()->loader().load(FrameLoadRequest(0, ResourceRequest(dragD ata->asURL())));
269 return true; 269 return true;
270 } 270 }
271 271
272 void DragController::mouseMovedIntoDocument(Document* newDocument) 272 void DragController::mouseMovedIntoDocument(Document* newDocument)
273 { 273 {
274 if (m_documentUnderMouse == newDocument) 274 if (m_documentUnderMouse == newDocument)
275 return; 275 return;
276 276
277 // If we were over another document clear the selection 277 // If we were over another document clear the selection
278 if (m_documentUnderMouse) 278 if (m_documentUnderMouse)
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 return false; 926 return false;
927 #endif 927 #endif
928 } 928 }
929 929
930 void DragController::cleanupAfterSystemDrag() 930 void DragController::cleanupAfterSystemDrag()
931 { 931 {
932 } 932 }
933 933
934 } // namespace WebCore 934 } // namespace WebCore
935 935
OLDNEW
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698