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

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

Issue 1290133002: SkImage-ify DragImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: expectations 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void setPageZoomFactor(float); 147 void setPageZoomFactor(float);
148 float pageZoomFactor() const { return m_pageZoomFactor; } 148 float pageZoomFactor() const { return m_pageZoomFactor; }
149 void setTextZoomFactor(float); 149 void setTextZoomFactor(float);
150 float textZoomFactor() const { return m_textZoomFactor; } 150 float textZoomFactor() const { return m_textZoomFactor; }
151 void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFactor); 151 void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFactor);
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(); 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 VisiblePosition visiblePositionForPoint(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;
(...skipping 17 matching lines...) Expand all
185 private: 185 private:
186 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); 186 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*);
187 187
188 // Internal Frame helper overrides: 188 // Internal Frame helper overrides:
189 WindowProxyManager* windowProxyManager() const override; 189 WindowProxyManager* windowProxyManager() const override;
190 190
191 String localLayerTreeAsText(unsigned flags) const; 191 String localLayerTreeAsText(unsigned flags) const;
192 192
193 // Paints the area for the given rect into a DragImage, with the given displ ayItemClient id attached. 193 // Paints the area for the given rect into a DragImage, with the given displ ayItemClient id attached.
194 // The rect is in the coordinate space of the frame. 194 // The rect is in the coordinate space of the frame.
195 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&, Di splayItem::Type, RespectImageOrientationEnum shouldRespectImageOrientation, cons t GlobalPaintFlags, IntRect paintingRect); 195 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&,
196 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP aintFlags,
197 IntRect paintingRect, float opacity = 1);
196 198
197 mutable FrameLoader m_loader; 199 mutable FrameLoader m_loader;
198 mutable NavigationScheduler m_navigationScheduler; 200 mutable NavigationScheduler m_navigationScheduler;
199 201
200 RefPtrWillBeMember<FrameView> m_view; 202 RefPtrWillBeMember<FrameView> m_view;
201 RefPtrWillBeMember<LocalDOMWindow> m_domWindow; 203 RefPtrWillBeMember<LocalDOMWindow> m_domWindow;
202 // Usually 0. Non-null if this is the top frame of PagePopup. 204 // Usually 0. Non-null if this is the top frame of PagePopup.
203 RefPtrWillBeMember<Element> m_pagePopupOwner; 205 RefPtrWillBeMember<Element> m_pagePopupOwner;
204 206
205 const OwnPtrWillBeMember<ScriptController> m_script; 207 const OwnPtrWillBeMember<ScriptController> m_script;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 313 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
312 314
313 } // namespace blink 315 } // namespace blink
314 316
315 // 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
316 // 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.
317 // 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.
318 #define toLocalFrameTemporary toLocalFrame 320 #define toLocalFrameTemporary toLocalFrame
319 321
320 #endif // LocalFrame_h 322 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698