| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 #include "platform/weborigin/SecurityPolicy.h" | 168 #include "platform/weborigin/SecurityPolicy.h" |
| 169 #include "public/platform/Platform.h" | 169 #include "public/platform/Platform.h" |
| 170 #include "public/platform/WebFloatPoint.h" | 170 #include "public/platform/WebFloatPoint.h" |
| 171 #include "public/platform/WebFloatRect.h" | 171 #include "public/platform/WebFloatRect.h" |
| 172 #include "public/platform/WebLayer.h" | 172 #include "public/platform/WebLayer.h" |
| 173 #include "public/platform/WebPoint.h" | 173 #include "public/platform/WebPoint.h" |
| 174 #include "public/platform/WebRect.h" | 174 #include "public/platform/WebRect.h" |
| 175 #include "public/platform/WebSize.h" | 175 #include "public/platform/WebSize.h" |
| 176 #include "public/platform/WebURLError.h" | 176 #include "public/platform/WebURLError.h" |
| 177 #include "public/platform/WebVector.h" | 177 #include "public/platform/WebVector.h" |
| 178 #include "public/web/WebAutofillClient.h" |
| 178 #include "public/web/WebConsoleMessage.h" | 179 #include "public/web/WebConsoleMessage.h" |
| 179 #include "public/web/WebDOMEvent.h" | 180 #include "public/web/WebDOMEvent.h" |
| 180 #include "public/web/WebDocument.h" | 181 #include "public/web/WebDocument.h" |
| 181 #include "public/web/WebFindOptions.h" | 182 #include "public/web/WebFindOptions.h" |
| 182 #include "public/web/WebFormElement.h" | 183 #include "public/web/WebFormElement.h" |
| 183 #include "public/web/WebFrameClient.h" | 184 #include "public/web/WebFrameClient.h" |
| 184 #include "public/web/WebHistoryItem.h" | 185 #include "public/web/WebHistoryItem.h" |
| 185 #include "public/web/WebIconURL.h" | 186 #include "public/web/WebIconURL.h" |
| 186 #include "public/web/WebInputElement.h" | 187 #include "public/web/WebInputElement.h" |
| 187 #include "public/web/WebNode.h" | 188 #include "public/web/WebNode.h" |
| (...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 #if ENABLE(OILPAN) | 1531 #if ENABLE(OILPAN) |
| 1531 return frame; | 1532 return frame; |
| 1532 #else | 1533 #else |
| 1533 return adoptRef(frame).leakRef(); | 1534 return adoptRef(frame).leakRef(); |
| 1534 #endif | 1535 #endif |
| 1535 } | 1536 } |
| 1536 | 1537 |
| 1537 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) | 1538 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) |
| 1538 : m_frameLoaderClientImpl(this) | 1539 : m_frameLoaderClientImpl(this) |
| 1539 , m_client(client) | 1540 , m_client(client) |
| 1541 , m_autofillClient(0) |
| 1540 , m_permissionClient(0) | 1542 , m_permissionClient(0) |
| 1541 , m_inputEventsScaleFactorForEmulation(1) | 1543 , m_inputEventsScaleFactorForEmulation(1) |
| 1542 , m_userMediaClientImpl(this) | 1544 , m_userMediaClientImpl(this) |
| 1543 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) | 1545 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) |
| 1544 #if ENABLE(OILPAN) | 1546 #if ENABLE(OILPAN) |
| 1545 , m_selfKeepAlive(this) | 1547 , m_selfKeepAlive(this) |
| 1546 #endif | 1548 #endif |
| 1547 { | 1549 { |
| 1548 Platform::current()->incrementStatsCounter(webFrameActiveCount); | 1550 Platform::current()->incrementStatsCounter(webFrameActiveCount); |
| 1549 frameCount++; | 1551 frameCount++; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); | 1844 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); |
| 1843 m_frame->setOwner(oldFrame->owner()); | 1845 m_frame->setOwner(oldFrame->owner()); |
| 1844 m_frame->tree().setName(oldFrame->tree().name()); | 1846 m_frame->tree().setName(oldFrame->tree().name()); |
| 1845 setParent(oldWebFrame->parent()); | 1847 setParent(oldWebFrame->parent()); |
| 1846 // We must call init() after m_frame is assigned because it is referenced | 1848 // We must call init() after m_frame is assigned because it is referenced |
| 1847 // during init(). Note that this may dispatch JS events; the frame may be | 1849 // during init(). Note that this may dispatch JS events; the frame may be |
| 1848 // detached after init() returns. | 1850 // detached after init() returns. |
| 1849 m_frame->init(); | 1851 m_frame->init(); |
| 1850 } | 1852 } |
| 1851 | 1853 |
| 1854 void WebLocalFrameImpl::setAutofillClient(WebAutofillClient* autofillClient) |
| 1855 { |
| 1856 m_autofillClient = autofillClient; |
| 1857 } |
| 1858 |
| 1852 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) | 1859 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) |
| 1853 { | 1860 { |
| 1854 ASSERT(frame()); | 1861 ASSERT(frame()); |
| 1855 const Node* node = linkNode.constUnwrap<Node>(); | 1862 const Node* node = linkNode.constUnwrap<Node>(); |
| 1856 if (isHTMLAnchorElement(node)) | 1863 if (isHTMLAnchorElement(node)) |
| 1857 toHTMLAnchorElement(node)->sendPings(destinationURL); | 1864 toHTMLAnchorElement(node)->sendPings(destinationURL); |
| 1858 } | 1865 } |
| 1859 | 1866 |
| 1860 bool WebLocalFrameImpl::isLoading() const | 1867 bool WebLocalFrameImpl::isLoading() const |
| 1861 { | 1868 { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 | 1970 |
| 1964 void WebLocalFrameImpl::invalidateAll() const | 1971 void WebLocalFrameImpl::invalidateAll() const |
| 1965 { | 1972 { |
| 1966 ASSERT(frame() && frame()->view()); | 1973 ASSERT(frame() && frame()->view()); |
| 1967 FrameView* view = frame()->view(); | 1974 FrameView* view = frame()->view(); |
| 1968 view->invalidateRect(view->frameRect()); | 1975 view->invalidateRect(view->frameRect()); |
| 1969 invalidateScrollbar(); | 1976 invalidateScrollbar(); |
| 1970 } | 1977 } |
| 1971 | 1978 |
| 1972 } // namespace blink | 1979 } // namespace blink |
| OLD | NEW |