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

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

Issue 894613002: Dart: 2++ = 3 (Closed) Base URL: https://github.com/eseidel/skydart.git@master
Patch Set: sync Created 5 years, 10 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
« sky/engine/bindings-dart/BUILD.gn ('K') | « sky/engine/core/BUILD.gn ('k') | no next file » | 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 13 matching lines...) Expand all
24 * You should have received a copy of the GNU Library General Public License 24 * You should have received a copy of the GNU Library General Public License
25 * along with this library; see the file COPYING.LIB. If not, write to 25 * along with this library; see the file COPYING.LIB. If not, write to
26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27 * Boston, MA 02110-1301, USA. 27 * Boston, MA 02110-1301, USA.
28 */ 28 */
29 29
30 #include "sky/engine/config.h" 30 #include "sky/engine/config.h"
31 #include "sky/engine/core/frame/LocalFrame.h" 31 #include "sky/engine/core/frame/LocalFrame.h"
32 32
33 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 33 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
34 #include "sky/engine/bindings-dart/dart_master.h"
34 #include "sky/engine/bindings/core/v8/ScriptController.h" 35 #include "sky/engine/bindings/core/v8/ScriptController.h"
35 #include "sky/engine/core/editing/Editor.h" 36 #include "sky/engine/core/editing/Editor.h"
36 #include "sky/engine/core/editing/FrameSelection.h" 37 #include "sky/engine/core/editing/FrameSelection.h"
37 #include "sky/engine/core/editing/InputMethodController.h" 38 #include "sky/engine/core/editing/InputMethodController.h"
38 #include "sky/engine/core/editing/SpellChecker.h" 39 #include "sky/engine/core/editing/SpellChecker.h"
39 #include "sky/engine/core/editing/htmlediting.h" 40 #include "sky/engine/core/editing/htmlediting.h"
40 #include "sky/engine/core/events/Event.h" 41 #include "sky/engine/core/events/Event.h"
41 #include "sky/engine/core/fetch/ResourceFetcher.h" 42 #include "sky/engine/core/fetch/ResourceFetcher.h"
42 #include "sky/engine/core/frame/FrameConsole.h" 43 #include "sky/engine/core/frame/FrameConsole.h"
43 #include "sky/engine/core/frame/FrameDestructionObserver.h" 44 #include "sky/engine/core/frame/FrameDestructionObserver.h"
(...skipping 26 matching lines...) Expand all
70 , m_script(adoptPtr(new ScriptController(this))) 71 , m_script(adoptPtr(new ScriptController(this)))
71 , m_editor(Editor::create(*this)) 72 , m_editor(Editor::create(*this))
72 , m_spellChecker(SpellChecker::create(*this)) 73 , m_spellChecker(SpellChecker::create(*this))
73 , m_selection(FrameSelection::create(this)) 74 , m_selection(FrameSelection::create(this))
74 , m_eventHandler(adoptPtr(new EventHandler(this))) 75 , m_eventHandler(adoptPtr(new EventHandler(this)))
75 , m_newEventHandler(adoptPtr(new NewEventHandler(*this))) 76 , m_newEventHandler(adoptPtr(new NewEventHandler(*this)))
76 , m_console(FrameConsole::create(*this)) 77 , m_console(FrameConsole::create(*this))
77 , m_inputMethodController(InputMethodController::create(*this)) 78 , m_inputMethodController(InputMethodController::create(*this))
78 { 79 {
79 page()->setMainFrame(this); 80 page()->setMainFrame(this);
81 DartMaster::InitVM();
80 } 82 }
81 83
82 PassRefPtr<LocalFrame> LocalFrame::create(FrameLoaderClient* client, FrameHost* host) 84 PassRefPtr<LocalFrame> LocalFrame::create(FrameLoaderClient* client, FrameHost* host)
83 { 85 {
84 return adoptRef(new LocalFrame(client, host)); 86 return adoptRef(new LocalFrame(client, host));
85 } 87 }
86 88
87 LocalFrame::~LocalFrame() 89 LocalFrame::~LocalFrame()
88 { 90 {
89 setView(nullptr); 91 setView(nullptr);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 314 }
313 315
314 double LocalFrame::devicePixelRatio() const 316 double LocalFrame::devicePixelRatio() const
315 { 317 {
316 if (!m_host) 318 if (!m_host)
317 return 0; 319 return 0;
318 return m_host->deviceScaleFactor(); 320 return m_host->deviceScaleFactor();
319 } 321 }
320 322
321 } // namespace blink 323 } // namespace blink
OLDNEW
« sky/engine/bindings-dart/BUILD.gn ('K') | « sky/engine/core/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698