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

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

Issue 50433002: Fix dragging text inside a input element nested in a draggable element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better names and comments Created 7 years, 1 month 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/DragActions.h ('k') | Source/core/page/DragController.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 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 public: 56 public:
57 ~DragController(); 57 ~DragController();
58 58
59 static PassOwnPtr<DragController> create(Page*, DragClient*); 59 static PassOwnPtr<DragController> create(Page*, DragClient*);
60 60
61 DragSession dragEntered(DragData*); 61 DragSession dragEntered(DragData*);
62 void dragExited(DragData*); 62 void dragExited(DragData*);
63 DragSession dragUpdated(DragData*); 63 DragSession dragUpdated(DragData*);
64 bool performDrag(DragData*); 64 bool performDrag(DragData*);
65 65
66 Node* draggableNode(const Frame*, Node*, const IntPoint&, DragState&) co nst; 66 enum SelectionDragPolicy {
67 ImmediateSelectionDragResolution,
68 DelayedSelectionDragResolution,
69 };
70 Node* draggableNode(const Frame*, Node*, const IntPoint&, SelectionDragP olicy, DragSourceAction&) const;
67 void dragEnded(); 71 void dragEnded();
68 72
69 bool populateDragClipboard(Frame* src, const DragState&, const IntPoint& dragOrigin); 73 bool populateDragClipboard(Frame* src, const DragState&, const IntPoint& dragOrigin);
70 bool startDrag(Frame* src, const DragState&, const PlatformMouseEvent& d ragEvent, const IntPoint& dragOrigin); 74 bool startDrag(Frame* src, const DragState&, const PlatformMouseEvent& d ragEvent, const IntPoint& dragOrigin);
71 75
72 static const int DragIconRightInset; 76 static const int DragIconRightInset;
73 static const int DragIconBottomInset; 77 static const int DragIconBottomInset;
74 78
75 private: 79 private:
76 DragController(Page*, DragClient*); 80 DragController(Page*, DragClient*);
(...skipping 23 matching lines...) Expand all
100 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse; 104 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse;
101 bool m_documentIsHandlingDrag; 105 bool m_documentIsHandlingDrag;
102 106
103 DragDestinationAction m_dragDestinationAction; 107 DragDestinationAction m_dragDestinationAction;
104 bool m_didInitiateDrag; 108 bool m_didInitiateDrag;
105 }; 109 };
106 110
107 } 111 }
108 112
109 #endif 113 #endif
OLDNEW
« no previous file with comments | « Source/core/page/DragActions.h ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698