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

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

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/LocalFrame.h ('k') | sky/engine/core/loader/FrameFetchContext.h » ('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 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 18 matching lines...) Expand all
29 29
30 #include "sky/engine/core/frame/LocalFrame.h" 30 #include "sky/engine/core/frame/LocalFrame.h"
31 31
32 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 32 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
33 #include "sky/engine/core/editing/Editor.h" 33 #include "sky/engine/core/editing/Editor.h"
34 #include "sky/engine/core/editing/FrameSelection.h" 34 #include "sky/engine/core/editing/FrameSelection.h"
35 #include "sky/engine/core/editing/htmlediting.h" 35 #include "sky/engine/core/editing/htmlediting.h"
36 #include "sky/engine/core/editing/InputMethodController.h" 36 #include "sky/engine/core/editing/InputMethodController.h"
37 #include "sky/engine/core/editing/SpellChecker.h" 37 #include "sky/engine/core/editing/SpellChecker.h"
38 #include "sky/engine/core/events/Event.h" 38 #include "sky/engine/core/events/Event.h"
39 #include "sky/engine/core/fetch/ResourceFetcher.h"
40 #include "sky/engine/core/frame/FrameConsole.h" 39 #include "sky/engine/core/frame/FrameConsole.h"
41 #include "sky/engine/core/frame/FrameDestructionObserver.h" 40 #include "sky/engine/core/frame/FrameDestructionObserver.h"
42 #include "sky/engine/core/frame/FrameHost.h" 41 #include "sky/engine/core/frame/FrameHost.h"
43 #include "sky/engine/core/frame/FrameView.h" 42 #include "sky/engine/core/frame/FrameView.h"
44 #include "sky/engine/core/frame/LocalDOMWindow.h" 43 #include "sky/engine/core/frame/LocalDOMWindow.h"
45 #include "sky/engine/core/frame/NewEventHandler.h" 44 #include "sky/engine/core/frame/NewEventHandler.h"
46 #include "sky/engine/core/frame/Settings.h" 45 #include "sky/engine/core/frame/Settings.h"
47 #include "sky/engine/core/loader/FrameLoaderClient.h" 46 #include "sky/engine/core/loader/FrameLoaderClient.h"
48 #include "sky/engine/core/loader/MojoLoader.h"
49 #include "sky/engine/core/page/EventHandler.h" 47 #include "sky/engine/core/page/EventHandler.h"
50 #include "sky/engine/core/page/FocusController.h" 48 #include "sky/engine/core/page/FocusController.h"
51 #include "sky/engine/core/page/Page.h" 49 #include "sky/engine/core/page/Page.h"
52 #include "sky/engine/core/rendering/HitTestResult.h" 50 #include "sky/engine/core/rendering/HitTestResult.h"
53 #include "sky/engine/core/rendering/RenderLayer.h" 51 #include "sky/engine/core/rendering/RenderLayer.h"
54 #include "sky/engine/core/rendering/RenderView.h" 52 #include "sky/engine/core/rendering/RenderView.h"
55 #include "sky/engine/core/script/dart_controller.h" 53 #include "sky/engine/core/script/dart_controller.h"
56 #include "sky/engine/platform/graphics/GraphicsContext.h" 54 #include "sky/engine/platform/graphics/GraphicsContext.h"
57 #include "sky/engine/platform/graphics/ImageBuffer.h" 55 #include "sky/engine/platform/graphics/ImageBuffer.h"
58 #include "sky/engine/platform/text/TextStream.h" 56 #include "sky/engine/platform/text/TextStream.h"
59 #include "sky/engine/wtf/PassOwnPtr.h" 57 #include "sky/engine/wtf/PassOwnPtr.h"
60 #include "sky/engine/wtf/StdLibExtras.h" 58 #include "sky/engine/wtf/StdLibExtras.h"
61 59
62 namespace blink { 60 namespace blink {
63 61
64 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host) 62 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host)
65 : Frame(client, host) 63 : Frame(client, host)
66 , m_deprecatedLoader(this) 64 , m_deprecatedLoader(this)
67 , m_mojoLoader(adoptPtr(new MojoLoader(*this)))
68 , m_editor(Editor::create(*this)) 65 , m_editor(Editor::create(*this))
69 , m_spellChecker(SpellChecker::create(*this)) 66 , m_spellChecker(SpellChecker::create(*this))
70 , m_selection(FrameSelection::create(this)) 67 , m_selection(FrameSelection::create(this))
71 , m_eventHandler(adoptPtr(new EventHandler(this))) 68 , m_eventHandler(adoptPtr(new EventHandler(this)))
72 , m_newEventHandler(adoptPtr(new NewEventHandler(*this))) 69 , m_newEventHandler(adoptPtr(new NewEventHandler(*this)))
73 , m_console(FrameConsole::create(*this)) 70 , m_console(FrameConsole::create(*this))
74 , m_inputMethodController(InputMethodController::create(*this)) 71 , m_inputMethodController(InputMethodController::create(*this))
75 , m_document(nullptr) 72 , m_document(nullptr)
76 { 73 {
77 if (page()) 74 if (page())
(...skipping 15 matching lines...) Expand all
93 HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.e nd(); 90 HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.e nd();
94 for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObserver s.begin(); it != stop; ++it) 91 for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObserver s.begin(); it != stop; ++it)
95 (*it)->frameDestroyed(); 92 (*it)->frameDestroyed();
96 } 93 }
97 94
98 FrameLoaderClient* LocalFrame::loaderClient() const 95 FrameLoaderClient* LocalFrame::loaderClient() const
99 { 96 {
100 return static_cast<FrameLoaderClient*>(client()); 97 return static_cast<FrameLoaderClient*>(client());
101 } 98 }
102 99
103 FetchContext& LocalFrame::fetchContext() const
104 {
105 return m_deprecatedLoader.fetchContext();
106 }
107
108 void LocalFrame::detach() 100 void LocalFrame::detach()
109 { 101 {
110 // A lot of the following steps can result in the current frame being 102 // A lot of the following steps can result in the current frame being
111 // detached, so protect a reference to it. 103 // detached, so protect a reference to it.
112 RefPtr<LocalFrame> protect(this); 104 RefPtr<LocalFrame> protect(this);
113 m_deprecatedLoader.stopAllLoaders(); 105 m_deprecatedLoader.stopAllLoaders();
114 m_deprecatedLoader.closeURL(); 106 m_deprecatedLoader.closeURL();
115 detachChildren(); 107 detachChildren();
116 // stopAllLoaders() needs to be called after detachChildren(), because detac hChildren() 108 // stopAllLoaders() needs to be called after detachChildren(), because detac hChildren()
117 // will trigger the unload event handlers of any child frames, and those eve nt 109 // will trigger the unload event handlers of any child frames, and those eve nt
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 300 }
309 301
310 double LocalFrame::devicePixelRatio() const 302 double LocalFrame::devicePixelRatio() const
311 { 303 {
312 if (!m_host) 304 if (!m_host)
313 return 0; 305 return 0;
314 return m_host->deviceScaleFactor(); 306 return m_host->deviceScaleFactor();
315 } 307 }
316 308
317 } // namespace blink 309 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalFrame.h ('k') | sky/engine/core/loader/FrameFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698