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

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

Issue 16715002: Refactor WebCore::DragImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge upstream changes, some changes per jamesr Created 7 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
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/page/Frame.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 15 matching lines...) Expand all
26 */ 26 */
27 27
28 #ifndef Frame_h 28 #ifndef Frame_h
29 #define Frame_h 29 #define Frame_h
30 30
31 #include "core/loader/FrameLoader.h" 31 #include "core/loader/FrameLoader.h"
32 #include "core/loader/NavigationScheduler.h" 32 #include "core/loader/NavigationScheduler.h"
33 #include "core/page/AdjustViewSizeOrNot.h" 33 #include "core/page/AdjustViewSizeOrNot.h"
34 #include "core/page/FrameTree.h" 34 #include "core/page/FrameTree.h"
35 #include "core/platform/ScrollTypes.h" 35 #include "core/platform/ScrollTypes.h"
36 #include "core/platform/chromium/DragImageRef.h"
37 #include "core/platform/graphics/IntSize.h" 36 #include "core/platform/graphics/IntSize.h"
38 #include <wtf/RefCounted.h> 37 #include "wtf/Forward.h"
38 #include "wtf/RefCounted.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class AnimationController; 42 class AnimationController;
43 class Color; 43 class Color;
44 class DOMWindow; 44 class DOMWindow;
45 class Document; 45 class Document;
46 class DragImage;
46 class Editor; 47 class Editor;
47 class Element; 48 class Element;
48 class EventHandler; 49 class EventHandler;
49 class FloatSize; 50 class FloatSize;
50 class FrameDestructionObserver; 51 class FrameDestructionObserver;
51 class FrameSelection; 52 class FrameSelection;
52 class FrameView; 53 class FrameView;
53 class HTMLTableCellElement; 54 class HTMLTableCellElement;
54 class IntPoint; 55 class IntPoint;
55 class Node; 56 class Node;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 int orientation() const { return m_orientation; } 141 int orientation() const { return m_orientation; }
141 #endif 142 #endif
142 143
143 void clearTimers(); 144 void clearTimers();
144 static void clearTimers(FrameView*, Document*); 145 static void clearTimers(FrameView*, Document*);
145 146
146 String documentTypeString() const; 147 String documentTypeString() const;
147 148
148 String displayStringModifiedByEncoding(const String&) const; 149 String displayStringModifiedByEncoding(const String&) const;
149 150
150 DragImageRef nodeImage(Node*); 151 PassOwnPtr<DragImage> nodeImage(Node*);
151 DragImageRef dragImageForSelection(); 152 PassOwnPtr<DragImage> dragImageForSelection();
152 153
153 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); 154 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint);
154 Document* documentAtPoint(const IntPoint& windowPoint); 155 Document* documentAtPoint(const IntPoint& windowPoint);
155 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint); 156 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint);
156 157
157 // Should only be called on the main frame of a page. 158 // Should only be called on the main frame of a page.
158 void notifyChromeClientWheelEventHandlerCountChanged() const; 159 void notifyChromeClientWheelEventHandlerCountChanged() const;
159 160
160 bool isURLAllowed(const KURL&) const; 161 bool isURLAllowed(const KURL&) const;
161 162
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 268 }
268 269
269 inline EventHandler* Frame::eventHandler() const 270 inline EventHandler* Frame::eventHandler() const
270 { 271 {
271 return m_eventHandler.get(); 272 return m_eventHandler.get();
272 } 273 }
273 274
274 } // namespace WebCore 275 } // namespace WebCore
275 276
276 #endif // Frame_h 277 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/page/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698