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

Side by Side Diff: Source/core/frame/LocalFrame.h

Issue 1310323004: Introduce positionForPoint() in LocalFrame class as replacement of visiblePositionForPoint() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T15:15:43 Created 5 years, 4 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/editing/VisibleSelection.cpp ('k') | Source/core/frame/LocalFrame.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class InstrumentingAgents; 65 class InstrumentingAgents;
66 class LocalDOMWindow; 66 class LocalDOMWindow;
67 class Node; 67 class Node;
68 class NodeTraversal; 68 class NodeTraversal;
69 class Range; 69 class Range;
70 class LayoutView; 70 class LayoutView;
71 class TreeScope; 71 class TreeScope;
72 class ScriptController; 72 class ScriptController;
73 class SpellChecker; 73 class SpellChecker;
74 class TreeScope; 74 class TreeScope;
75 class VisiblePosition; 75 template <typename Strategy> class PositionWithAffinityTemplate;
76 76
77 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier, public WillBeHeapSupplementable<LocalFrame> { 77 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier, public WillBeHeapSupplementable<LocalFrame> {
78 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 78 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
79 public: 79 public:
80 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo st*, FrameOwner*); 80 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo st*, FrameOwner*);
81 81
82 void init(); 82 void init();
83 void setView(PassRefPtrWillBeRawPtr<FrameView>); 83 void setView(PassRefPtrWillBeRawPtr<FrameView>);
84 void createView(const IntSize&, const Color&, bool, 84 void createView(const IntSize&, const Color&, bool,
85 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, 85 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 void deviceScaleFactorChanged(); 153 void deviceScaleFactorChanged();
154 double devicePixelRatio() const; 154 double devicePixelRatio() const;
155 155
156 PassOwnPtr<DragImage> nodeImage(Node&); 156 PassOwnPtr<DragImage> nodeImage(Node&);
157 PassOwnPtr<DragImage> dragImageForSelection(float opacity); 157 PassOwnPtr<DragImage> dragImageForSelection(float opacity);
158 158
159 String selectedText() const; 159 String selectedText() const;
160 String selectedTextForClipboard() const; 160 String selectedTextForClipboard() const;
161 161
162 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); 162 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> positionForPoi nt(const IntPoint& framePoint);
163 Document* documentAtPoint(const IntPoint& windowPoint); 163 Document* documentAtPoint(const IntPoint& windowPoint);
164 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const IntPoint& framePoint); 164 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const IntPoint& framePoint);
165 165
166 bool isURLAllowed(const KURL&) const; 166 bool isURLAllowed(const KURL&) const;
167 bool shouldReuseDefaultView(const KURL&) const; 167 bool shouldReuseDefaultView(const KURL&) const;
168 void removeSpellingMarkersUnderWords(const Vector<String>& words); 168 void removeSpellingMarkersUnderWords(const Vector<String>& words);
169 169
170 // FIXME: once scroll customization is enabled everywhere 170 // FIXME: once scroll customization is enabled everywhere
171 // (crbug.com/416862), this should take a ScrollState object. 171 // (crbug.com/416862), this should take a ScrollState object.
172 ScrollResult applyScrollDelta(const FloatSize& delta, bool isScrollBegin); 172 ScrollResult applyScrollDelta(const FloatSize& delta, bool isScrollBegin);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 313 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
314 314
315 } // namespace blink 315 } // namespace blink
316 316
317 // During refactoring, there are some places where we need to do type conversion s that 317 // During refactoring, there are some places where we need to do type conversion s that
318 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 318 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
319 // At that time this #define will be removed and all the uses of it will need to be corrected. 319 // At that time this #define will be removed and all the uses of it will need to be corrected.
320 #define toLocalFrameTemporary toLocalFrame 320 #define toLocalFrameTemporary toLocalFrame
321 321
322 #endif // LocalFrame_h 322 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleSelection.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698