| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "sky/engine/config.h" | 30 #include "sky/engine/config.h" |
| 31 #include "sky/engine/core/frame/Frame.h" | 31 #include "sky/engine/core/frame/Frame.h" |
| 32 | 32 |
| 33 #include "sky/engine/core/events/Event.h" | 33 #include "sky/engine/core/events/Event.h" |
| 34 #include "sky/engine/core/frame/FrameHost.h" | 34 #include "sky/engine/core/frame/FrameHost.h" |
| 35 #include "sky/engine/core/frame/LocalDOMWindow.h" | 35 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 36 #include "sky/engine/core/frame/Settings.h" | 36 #include "sky/engine/core/frame/Settings.h" |
| 37 #include "sky/engine/core/loader/EmptyClients.h" | 37 #include "sky/engine/core/loader/EmptyClients.h" |
| 38 #include "sky/engine/core/loader/FrameLoaderClient.h" | 38 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 39 #include "sky/engine/core/page/Chrome.h" | |
| 40 #include "sky/engine/core/page/ChromeClient.h" | 39 #include "sky/engine/core/page/ChromeClient.h" |
| 41 #include "sky/engine/core/page/EventHandler.h" | 40 #include "sky/engine/core/page/EventHandler.h" |
| 42 #include "sky/engine/core/page/FocusController.h" | 41 #include "sky/engine/core/page/FocusController.h" |
| 43 #include "sky/engine/core/page/Page.h" | 42 #include "sky/engine/core/page/Page.h" |
| 44 #include "sky/engine/core/rendering/RenderLayer.h" | 43 #include "sky/engine/core/rendering/RenderLayer.h" |
| 45 #include "sky/engine/public/platform/WebLayer.h" | 44 #include "sky/engine/public/platform/WebLayer.h" |
| 46 #include "sky/engine/wtf/PassOwnPtr.h" | 45 #include "sky/engine/wtf/PassOwnPtr.h" |
| 47 #include "sky/engine/wtf/RefCountedLeakCounter.h" | 46 #include "sky/engine/wtf/RefCountedLeakCounter.h" |
| 48 | 47 |
| 49 namespace blink { | 48 namespace blink { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return 0; | 95 return 0; |
| 97 } | 96 } |
| 98 | 97 |
| 99 void Frame::setDOMWindow(PassRefPtr<LocalDOMWindow> domWindow) | 98 void Frame::setDOMWindow(PassRefPtr<LocalDOMWindow> domWindow) |
| 100 { | 99 { |
| 101 if (m_domWindow) | 100 if (m_domWindow) |
| 102 m_domWindow->reset(); | 101 m_domWindow->reset(); |
| 103 m_domWindow = domWindow; | 102 m_domWindow = domWindow; |
| 104 } | 103 } |
| 105 | 104 |
| 106 static ChromeClient& emptyChromeClient() | |
| 107 { | |
| 108 DEFINE_STATIC_LOCAL(EmptyChromeClient, client, ()); | |
| 109 return client; | |
| 110 } | |
| 111 | |
| 112 ChromeClient& Frame::chromeClient() const | |
| 113 { | |
| 114 if (Page* page = this->page()) | |
| 115 return page->chrome().client(); | |
| 116 return emptyChromeClient(); | |
| 117 } | |
| 118 | |
| 119 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |