OLD | NEW |
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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "platform/graphics/ImageOrientation.h" | 41 #include "platform/graphics/ImageOrientation.h" |
42 #include "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
43 #include "platform/scroll/ScrollTypes.h" | 43 #include "platform/scroll/ScrollTypes.h" |
44 #include "platform/wtf/HashSet.h" | 44 #include "platform/wtf/HashSet.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class Color; | 48 class Color; |
49 class ContentSettingsClient; | 49 class ContentSettingsClient; |
50 class Document; | 50 class Document; |
51 class DragImage; | |
52 class Editor; | 51 class Editor; |
53 template <typename Traversal> | 52 template <typename Traversal> |
54 class EditingAlgorithm; | 53 class EditingAlgorithm; |
55 class Element; | 54 class Element; |
56 template <typename Strategy> | 55 template <typename Strategy> |
57 class EphemeralRangeTemplate; | 56 class EphemeralRangeTemplate; |
58 class EventHandler; | 57 class EventHandler; |
59 class FetchParameters; | 58 class FetchParameters; |
60 class FloatSize; | 59 class FloatSize; |
61 class FrameConsole; | 60 class FrameConsole; |
(...skipping 22 matching lines...) Expand all Loading... |
84 class WebFrameScheduler; | 83 class WebFrameScheduler; |
85 class WebPluginContainerBase; | 84 class WebPluginContainerBase; |
86 class WebURLLoader; | 85 class WebURLLoader; |
87 | 86 |
88 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; | 87 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; |
89 | 88 |
90 class CORE_EXPORT LocalFrame final : public Frame, | 89 class CORE_EXPORT LocalFrame final : public Frame, |
91 public Supplementable<LocalFrame> { | 90 public Supplementable<LocalFrame> { |
92 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 91 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
93 | 92 |
94 friend class LocalFrameTest; | |
95 | |
96 public: | 93 public: |
97 static LocalFrame* Create(LocalFrameClient*, | 94 static LocalFrame* Create(LocalFrameClient*, |
98 Page&, | 95 Page&, |
99 FrameOwner*, | 96 FrameOwner*, |
100 InterfaceProvider* = nullptr, | 97 InterfaceProvider* = nullptr, |
101 InterfaceRegistry* = nullptr); | 98 InterfaceRegistry* = nullptr); |
102 | 99 |
103 void Init(); | 100 void Init(); |
104 void SetView(LocalFrameView*); | 101 void SetView(LocalFrameView*); |
105 void CreateView(const IntSize&, | 102 void CreateView(const IntSize&, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 void SetPageZoomFactor(float); | 191 void SetPageZoomFactor(float); |
195 float PageZoomFactor() const { return page_zoom_factor_; } | 192 float PageZoomFactor() const { return page_zoom_factor_; } |
196 void SetTextZoomFactor(float); | 193 void SetTextZoomFactor(float); |
197 float TextZoomFactor() const { return text_zoom_factor_; } | 194 float TextZoomFactor() const { return text_zoom_factor_; } |
198 void SetPageAndTextZoomFactors(float page_zoom_factor, | 195 void SetPageAndTextZoomFactors(float page_zoom_factor, |
199 float text_zoom_factor); | 196 float text_zoom_factor); |
200 | 197 |
201 void DeviceScaleFactorChanged(); | 198 void DeviceScaleFactorChanged(); |
202 double DevicePixelRatio() const; | 199 double DevicePixelRatio() const; |
203 | 200 |
204 std::unique_ptr<DragImage> NodeImage(Node&); | |
205 std::unique_ptr<DragImage> DragImageForSelection(float opacity); | |
206 | |
207 String SelectedText() const; | 201 String SelectedText() const; |
208 String SelectedTextForClipboard() const; | 202 String SelectedTextForClipboard() const; |
209 | 203 |
210 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> | 204 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> |
211 PositionForPoint(const IntPoint& frame_point); | 205 PositionForPoint(const IntPoint& frame_point); |
212 Document* DocumentAtPoint(const IntPoint&); | 206 Document* DocumentAtPoint(const IntPoint&); |
213 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> RangeForPoint( | 207 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> RangeForPoint( |
214 const IntPoint& frame_point); | 208 const IntPoint& frame_point); |
215 | 209 |
216 bool ShouldReuseDefaultView(const KURL&) const; | 210 bool ShouldReuseDefaultView(const KURL&) const; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 explicit ScopedFrameBlamer(LocalFrame*); | 414 explicit ScopedFrameBlamer(LocalFrame*); |
421 ~ScopedFrameBlamer(); | 415 ~ScopedFrameBlamer(); |
422 | 416 |
423 private: | 417 private: |
424 Member<LocalFrame> frame_; | 418 Member<LocalFrame> frame_; |
425 }; | 419 }; |
426 | 420 |
427 } // namespace blink | 421 } // namespace blink |
428 | 422 |
429 #endif // LocalFrame_h | 423 #endif // LocalFrame_h |
OLD | NEW |