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

Side by Side Diff: sky/engine/core/frame/LocalFrame.h

Issue 1214513003: Remove references into sky/engine/core/fetch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/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 24 matching lines...) Expand all
35 #include "sky/engine/wtf/HashSet.h" 35 #include "sky/engine/wtf/HashSet.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class Color; 39 class Color;
40 class DartController; 40 class DartController;
41 class Document; 41 class Document;
42 class Editor; 42 class Editor;
43 class Element; 43 class Element;
44 class EventHandler; 44 class EventHandler;
45 class FetchContext;
46 class FloatRect; 45 class FloatRect;
47 class FloatSize; 46 class FloatSize;
48 class FrameConsole; 47 class FrameConsole;
49 class FrameDestructionObserver; 48 class FrameDestructionObserver;
50 class FrameSelection; 49 class FrameSelection;
51 class FrameView; 50 class FrameView;
52 class InputMethodController; 51 class InputMethodController;
53 class IntPoint; 52 class IntPoint;
54 class IntSize; 53 class IntSize;
55 class MojoLoader;
56 class NewEventHandler; 54 class NewEventHandler;
57 class Node; 55 class Node;
58 class Range; 56 class Range;
59 class RenderView; 57 class RenderView;
60 class SpellChecker; 58 class SpellChecker;
61 class TreeScope; 59 class TreeScope;
62 class TreeScope; 60 class TreeScope;
63 class VisiblePosition; 61 class VisiblePosition;
64 62
65 class LocalFrame : public Frame, public Supplementable<LocalFrame> { 63 class LocalFrame : public Frame, public Supplementable<LocalFrame> {
(...skipping 16 matching lines...) Expand all
82 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>) override; 80 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>) override;
83 void setDocument(Document*); 81 void setDocument(Document*);
84 FrameView* view() const; 82 FrameView* view() const;
85 Document* document() const; 83 Document* document() const;
86 84
87 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame. 85 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
88 86
89 Editor& editor() const; 87 Editor& editor() const;
90 EventHandler& eventHandler() const; 88 EventHandler& eventHandler() const;
91 NewEventHandler& newEventHandler() const; 89 NewEventHandler& newEventHandler() const;
92 MojoLoader& mojoLoader() const { return *m_mojoLoader; }
93 FrameSelection& selection() const; 90 FrameSelection& selection() const;
94 InputMethodController& inputMethodController() const; 91 InputMethodController& inputMethodController() const;
95 FetchContext& fetchContext() const;
96 SpellChecker& spellChecker() const; 92 SpellChecker& spellChecker() const;
97 FrameConsole& console() const; 93 FrameConsole& console() const;
98 94
99 void didChangeVisibilityState(); 95 void didChangeVisibilityState();
100 96
101 FrameLoaderClient* loaderClient() const; 97 FrameLoaderClient* loaderClient() const;
102 98
103 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ======== 99 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ========
104 100
105 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 101 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
106 102
107 void deviceOrPageScaleFactorChanged(); 103 void deviceOrPageScaleFactorChanged();
108 double devicePixelRatio() const; 104 double devicePixelRatio() const;
109 105
110 String selectedText() const; 106 String selectedText() const;
111 107
112 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); 108 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint);
113 Document* documentAtPoint(const IntPoint& windowPoint); 109 Document* documentAtPoint(const IntPoint& windowPoint);
114 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint); 110 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint);
115 111
116 void removeSpellingMarkersUnderWords(const Vector<String>& words); 112 void removeSpellingMarkersUnderWords(const Vector<String>& words);
117 113
118 // ======== 114 // ========
119 115
120 private: 116 private:
121 LocalFrame(FrameLoaderClient*, FrameHost*); 117 LocalFrame(FrameLoaderClient*, FrameHost*);
122 118
123 HashSet<FrameDestructionObserver*> m_destructionObservers; 119 HashSet<FrameDestructionObserver*> m_destructionObservers;
124 mutable FrameLoader m_deprecatedLoader; 120 mutable FrameLoader m_deprecatedLoader;
125 OwnPtr<MojoLoader> m_mojoLoader;
126 121
127 RefPtr<FrameView> m_view; 122 RefPtr<FrameView> m_view;
128 123
129 const OwnPtr<Editor> m_editor; 124 const OwnPtr<Editor> m_editor;
130 const OwnPtr<SpellChecker> m_spellChecker; 125 const OwnPtr<SpellChecker> m_spellChecker;
131 const OwnPtr<FrameSelection> m_selection; 126 const OwnPtr<FrameSelection> m_selection;
132 const OwnPtr<EventHandler> m_eventHandler; 127 const OwnPtr<EventHandler> m_eventHandler;
133 const OwnPtr<NewEventHandler> m_newEventHandler; 128 const OwnPtr<NewEventHandler> m_newEventHandler;
134 const OwnPtr<FrameConsole> m_console; 129 const OwnPtr<FrameConsole> m_console;
135 OwnPtr<InputMethodController> m_inputMethodController; 130 OwnPtr<InputMethodController> m_inputMethodController;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true); 177 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true);
183 178
184 } // namespace blink 179 } // namespace blink
185 180
186 // During refactoring, there are some places where we need to do type conversion s that 181 // During refactoring, there are some places where we need to do type conversion s that
187 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 182 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
188 // At that time this #define will be removed and all the uses of it will need to be corrected. 183 // At that time this #define will be removed and all the uses of it will need to be corrected.
189 #define toLocalFrameTemporary toLocalFrame 184 #define toLocalFrameTemporary toLocalFrame
190 185
191 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_ 186 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698