| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 #include "platform/weborigin/SecurityPolicy.h" | 169 #include "platform/weborigin/SecurityPolicy.h" |
| 170 #include "public/platform/Platform.h" | 170 #include "public/platform/Platform.h" |
| 171 #include "public/platform/WebFloatPoint.h" | 171 #include "public/platform/WebFloatPoint.h" |
| 172 #include "public/platform/WebFloatRect.h" | 172 #include "public/platform/WebFloatRect.h" |
| 173 #include "public/platform/WebLayer.h" | 173 #include "public/platform/WebLayer.h" |
| 174 #include "public/platform/WebPoint.h" | 174 #include "public/platform/WebPoint.h" |
| 175 #include "public/platform/WebRect.h" | 175 #include "public/platform/WebRect.h" |
| 176 #include "public/platform/WebSize.h" | 176 #include "public/platform/WebSize.h" |
| 177 #include "public/platform/WebURLError.h" | 177 #include "public/platform/WebURLError.h" |
| 178 #include "public/platform/WebVector.h" | 178 #include "public/platform/WebVector.h" |
| 179 #include "public/web/WebAutofillClient.h" |
| 179 #include "public/web/WebConsoleMessage.h" | 180 #include "public/web/WebConsoleMessage.h" |
| 180 #include "public/web/WebDOMEvent.h" | 181 #include "public/web/WebDOMEvent.h" |
| 181 #include "public/web/WebDocument.h" | 182 #include "public/web/WebDocument.h" |
| 182 #include "public/web/WebFindOptions.h" | 183 #include "public/web/WebFindOptions.h" |
| 183 #include "public/web/WebFormElement.h" | 184 #include "public/web/WebFormElement.h" |
| 184 #include "public/web/WebFrameClient.h" | 185 #include "public/web/WebFrameClient.h" |
| 185 #include "public/web/WebHistoryItem.h" | 186 #include "public/web/WebHistoryItem.h" |
| 186 #include "public/web/WebIconURL.h" | 187 #include "public/web/WebIconURL.h" |
| 187 #include "public/web/WebInputElement.h" | 188 #include "public/web/WebInputElement.h" |
| 188 #include "public/web/WebNode.h" | 189 #include "public/web/WebNode.h" |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 #if ENABLE(OILPAN) | 1537 #if ENABLE(OILPAN) |
| 1537 return frame; | 1538 return frame; |
| 1538 #else | 1539 #else |
| 1539 return adoptRef(frame).leakRef(); | 1540 return adoptRef(frame).leakRef(); |
| 1540 #endif | 1541 #endif |
| 1541 } | 1542 } |
| 1542 | 1543 |
| 1543 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) | 1544 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) |
| 1544 : m_frameLoaderClientImpl(this) | 1545 : m_frameLoaderClientImpl(this) |
| 1545 , m_client(client) | 1546 , m_client(client) |
| 1547 , m_autofillClient(0) |
| 1546 , m_permissionClient(0) | 1548 , m_permissionClient(0) |
| 1547 , m_inputEventsScaleFactorForEmulation(1) | 1549 , m_inputEventsScaleFactorForEmulation(1) |
| 1548 , m_userMediaClientImpl(this) | 1550 , m_userMediaClientImpl(this) |
| 1549 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) | 1551 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) |
| 1550 #if ENABLE(OILPAN) | 1552 #if ENABLE(OILPAN) |
| 1551 , m_selfKeepAlive(this) | 1553 , m_selfKeepAlive(this) |
| 1552 #endif | 1554 #endif |
| 1553 { | 1555 { |
| 1554 Platform::current()->incrementStatsCounter(webFrameActiveCount); | 1556 Platform::current()->incrementStatsCounter(webFrameActiveCount); |
| 1555 frameCount++; | 1557 frameCount++; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); | 1854 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); |
| 1853 m_frame->setOwner(oldFrame->owner()); | 1855 m_frame->setOwner(oldFrame->owner()); |
| 1854 m_frame->tree().setName(oldFrame->tree().name()); | 1856 m_frame->tree().setName(oldFrame->tree().name()); |
| 1855 setParent(oldWebFrame->parent()); | 1857 setParent(oldWebFrame->parent()); |
| 1856 // We must call init() after m_frame is assigned because it is referenced | 1858 // We must call init() after m_frame is assigned because it is referenced |
| 1857 // during init(). Note that this may dispatch JS events; the frame may be | 1859 // during init(). Note that this may dispatch JS events; the frame may be |
| 1858 // detached after init() returns. | 1860 // detached after init() returns. |
| 1859 m_frame->init(); | 1861 m_frame->init(); |
| 1860 } | 1862 } |
| 1861 | 1863 |
| 1864 void WebLocalFrameImpl::setAutofillClient(WebAutofillClient* autofillClient) |
| 1865 { |
| 1866 m_autofillClient = autofillClient; |
| 1867 } |
| 1868 |
| 1862 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) | 1869 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) |
| 1863 { | 1870 { |
| 1864 ASSERT(frame()); | 1871 ASSERT(frame()); |
| 1865 const Node* node = linkNode.constUnwrap<Node>(); | 1872 const Node* node = linkNode.constUnwrap<Node>(); |
| 1866 if (isHTMLAnchorElement(node)) | 1873 if (isHTMLAnchorElement(node)) |
| 1867 toHTMLAnchorElement(node)->sendPings(destinationURL); | 1874 toHTMLAnchorElement(node)->sendPings(destinationURL); |
| 1868 } | 1875 } |
| 1869 | 1876 |
| 1870 bool WebLocalFrameImpl::isLoading() const | 1877 bool WebLocalFrameImpl::isLoading() const |
| 1871 { | 1878 { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 | 1980 |
| 1974 void WebLocalFrameImpl::invalidateAll() const | 1981 void WebLocalFrameImpl::invalidateAll() const |
| 1975 { | 1982 { |
| 1976 ASSERT(frame() && frame()->view()); | 1983 ASSERT(frame() && frame()->view()); |
| 1977 FrameView* view = frame()->view(); | 1984 FrameView* view = frame()->view(); |
| 1978 view->invalidateRect(view->frameRect()); | 1985 view->invalidateRect(view->frameRect()); |
| 1979 invalidateScrollbar(); | 1986 invalidateScrollbar(); |
| 1980 } | 1987 } |
| 1981 | 1988 |
| 1982 } // namespace blink | 1989 } // namespace blink |
| OLD | NEW |