| 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 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 Loading... |
| 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/bindings2/dart_master.h" | |
| 35 #include "sky/engine/bindings/core/v8/ScriptController.h" | 34 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 36 #include "sky/engine/core/editing/Editor.h" | 35 #include "sky/engine/core/editing/Editor.h" |
| 37 #include "sky/engine/core/editing/FrameSelection.h" | 36 #include "sky/engine/core/editing/FrameSelection.h" |
| 38 #include "sky/engine/core/editing/InputMethodController.h" | 37 #include "sky/engine/core/editing/InputMethodController.h" |
| 39 #include "sky/engine/core/editing/SpellChecker.h" | 38 #include "sky/engine/core/editing/SpellChecker.h" |
| 40 #include "sky/engine/core/editing/htmlediting.h" | 39 #include "sky/engine/core/editing/htmlediting.h" |
| 41 #include "sky/engine/core/events/Event.h" | 40 #include "sky/engine/core/events/Event.h" |
| 42 #include "sky/engine/core/fetch/ResourceFetcher.h" | 41 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| 43 #include "sky/engine/core/frame/FrameConsole.h" | 42 #include "sky/engine/core/frame/FrameConsole.h" |
| 44 #include "sky/engine/core/frame/FrameDestructionObserver.h" | 43 #include "sky/engine/core/frame/FrameDestructionObserver.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 , m_script(adoptPtr(new ScriptController(this))) | 70 , m_script(adoptPtr(new ScriptController(this))) |
| 72 , m_editor(Editor::create(*this)) | 71 , m_editor(Editor::create(*this)) |
| 73 , m_spellChecker(SpellChecker::create(*this)) | 72 , m_spellChecker(SpellChecker::create(*this)) |
| 74 , m_selection(FrameSelection::create(this)) | 73 , m_selection(FrameSelection::create(this)) |
| 75 , m_eventHandler(adoptPtr(new EventHandler(this))) | 74 , m_eventHandler(adoptPtr(new EventHandler(this))) |
| 76 , m_newEventHandler(adoptPtr(new NewEventHandler(*this))) | 75 , m_newEventHandler(adoptPtr(new NewEventHandler(*this))) |
| 77 , m_console(FrameConsole::create(*this)) | 76 , m_console(FrameConsole::create(*this)) |
| 78 , m_inputMethodController(InputMethodController::create(*this)) | 77 , m_inputMethodController(InputMethodController::create(*this)) |
| 79 { | 78 { |
| 80 page()->setMainFrame(this); | 79 page()->setMainFrame(this); |
| 81 DartMaster::InitVM(); | |
| 82 } | 80 } |
| 83 | 81 |
| 84 PassRefPtr<LocalFrame> LocalFrame::create(FrameLoaderClient* client, FrameHost*
host) | 82 PassRefPtr<LocalFrame> LocalFrame::create(FrameLoaderClient* client, FrameHost*
host) |
| 85 { | 83 { |
| 86 return adoptRef(new LocalFrame(client, host)); | 84 return adoptRef(new LocalFrame(client, host)); |
| 87 } | 85 } |
| 88 | 86 |
| 89 LocalFrame::~LocalFrame() | 87 LocalFrame::~LocalFrame() |
| 90 { | 88 { |
| 91 setView(nullptr); | 89 setView(nullptr); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 312 } |
| 315 | 313 |
| 316 double LocalFrame::devicePixelRatio() const | 314 double LocalFrame::devicePixelRatio() const |
| 317 { | 315 { |
| 318 if (!m_host) | 316 if (!m_host) |
| 319 return 0; | 317 return 0; |
| 320 return m_host->deviceScaleFactor(); | 318 return m_host->deviceScaleFactor(); |
| 321 } | 319 } |
| 322 | 320 |
| 323 } // namespace blink | 321 } // namespace blink |
| OLD | NEW |