| 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) |
| 11 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 11 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 12 * Copyright (C) 2008 Google Inc. | 12 * Copyright (C) 2008 Google Inc. |
| 13 * | 13 * |
| 14 * This library is free software; you can redistribute it and/or | 14 * This library is free software; you can redistribute it and/or |
| 15 * modify it under the terms of the GNU Library General Public | 15 * modify it under the terms of the GNU Library General Public |
| 16 * License as published by the Free Software Foundation; either | 16 * License as published by the Free Software Foundation; either |
| 17 * version 2 of the License, or (at your option) any later version. | 17 * version 2 of the License, or (at your option) any later version. |
| 18 * | 18 * |
| 19 * This library is distributed in the hope that it will be useful, | 19 * This library is distributed in the hope that it will be useful, |
| 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 * Library General Public License for more details. | 22 * Library General Public License for more details. |
| 23 * | 23 * |
| 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 "config.h" | 30 #include "sky/engine/config.h" |
| 31 #include "core/frame/Frame.h" | 31 #include "sky/engine/core/frame/Frame.h" |
| 32 | 32 |
| 33 #include "core/events/Event.h" | 33 #include "sky/engine/core/events/Event.h" |
| 34 #include "core/frame/LocalDOMWindow.h" | 34 #include "sky/engine/core/frame/FrameHost.h" |
| 35 #include "core/frame/FrameHost.h" | 35 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 36 #include "core/frame/Settings.h" | 36 #include "sky/engine/core/frame/Settings.h" |
| 37 #include "core/loader/EmptyClients.h" | 37 #include "sky/engine/core/loader/EmptyClients.h" |
| 38 #include "core/loader/FrameLoaderClient.h" | 38 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 39 #include "core/page/Chrome.h" | 39 #include "sky/engine/core/page/Chrome.h" |
| 40 #include "core/page/ChromeClient.h" | 40 #include "sky/engine/core/page/ChromeClient.h" |
| 41 #include "core/page/EventHandler.h" | 41 #include "sky/engine/core/page/EventHandler.h" |
| 42 #include "core/page/FocusController.h" | 42 #include "sky/engine/core/page/FocusController.h" |
| 43 #include "core/page/Page.h" | 43 #include "sky/engine/core/page/Page.h" |
| 44 #include "core/rendering/RenderLayer.h" | 44 #include "sky/engine/core/rendering/RenderLayer.h" |
| 45 #include "platform/graphics/GraphicsLayer.h" | 45 #include "sky/engine/platform/graphics/GraphicsLayer.h" |
| 46 #include "public/platform/WebLayer.h" | 46 #include "sky/engine/public/platform/WebLayer.h" |
| 47 #include "wtf/PassOwnPtr.h" | 47 #include "sky/engine/wtf/PassOwnPtr.h" |
| 48 #include "wtf/RefCountedLeakCounter.h" | 48 #include "sky/engine/wtf/RefCountedLeakCounter.h" |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); | 52 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); |
| 53 | 53 |
| 54 Frame::Frame(FrameClient* client, FrameHost* host) | 54 Frame::Frame(FrameClient* client, FrameHost* host) |
| 55 : m_host(host) | 55 : m_host(host) |
| 56 , m_client(client) | 56 , m_client(client) |
| 57 { | 57 { |
| 58 ASSERT(page()); | 58 ASSERT(page()); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 ChromeClient& Frame::chromeClient() const | 113 ChromeClient& Frame::chromeClient() const |
| 114 { | 114 { |
| 115 if (Page* page = this->page()) | 115 if (Page* page = this->page()) |
| 116 return page->chrome().client(); | 116 return page->chrome().client(); |
| 117 return emptyChromeClient(); | 117 return emptyChromeClient(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |