| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 #if ENABLE(OILPAN) | 1532 #if ENABLE(OILPAN) |
| 1532 return frame; | 1533 return frame; |
| 1533 #else | 1534 #else |
| 1534 return adoptRef(frame).leakRef(); | 1535 return adoptRef(frame).leakRef(); |
| 1535 #endif | 1536 #endif |
| 1536 } | 1537 } |
| 1537 | 1538 |
| 1538 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) | 1539 WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client) |
| 1539 : m_frameLoaderClientImpl(this) | 1540 : m_frameLoaderClientImpl(this) |
| 1540 , m_client(client) | 1541 , m_client(client) |
| 1542 , m_autofillClient(0) |
| 1541 , m_permissionClient(0) | 1543 , m_permissionClient(0) |
| 1542 , m_inputEventsScaleFactorForEmulation(1) | 1544 , m_inputEventsScaleFactorForEmulation(1) |
| 1543 , m_userMediaClientImpl(this) | 1545 , m_userMediaClientImpl(this) |
| 1544 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) | 1546 , m_geolocationClientProxy(GeolocationClientProxy::create(client ? client->g
eolocationClient() : 0)) |
| 1545 #if ENABLE(OILPAN) | 1547 #if ENABLE(OILPAN) |
| 1546 , m_selfKeepAlive(this) | 1548 , m_selfKeepAlive(this) |
| 1547 #endif | 1549 #endif |
| 1548 { | 1550 { |
| 1549 Platform::current()->incrementStatsCounter(webFrameActiveCount); | 1551 Platform::current()->incrementStatsCounter(webFrameActiveCount); |
| 1550 frameCount++; | 1552 frameCount++; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); | 1849 m_frame = LocalFrame::create(&m_frameLoaderClientImpl, oldFrame->host(), tem
pOwner.get()); |
| 1848 m_frame->setOwner(oldFrame->owner()); | 1850 m_frame->setOwner(oldFrame->owner()); |
| 1849 m_frame->tree().setName(oldFrame->tree().name()); | 1851 m_frame->tree().setName(oldFrame->tree().name()); |
| 1850 setParent(oldWebFrame->parent()); | 1852 setParent(oldWebFrame->parent()); |
| 1851 // We must call init() after m_frame is assigned because it is referenced | 1853 // We must call init() after m_frame is assigned because it is referenced |
| 1852 // during init(). Note that this may dispatch JS events; the frame may be | 1854 // during init(). Note that this may dispatch JS events; the frame may be |
| 1853 // detached after init() returns. | 1855 // detached after init() returns. |
| 1854 m_frame->init(); | 1856 m_frame->init(); |
| 1855 } | 1857 } |
| 1856 | 1858 |
| 1859 void WebLocalFrameImpl::setAutofillClient(WebAutofillClient* autofillClient) |
| 1860 { |
| 1861 m_autofillClient = autofillClient; |
| 1862 } |
| 1863 |
| 1857 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) | 1864 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) |
| 1858 { | 1865 { |
| 1859 ASSERT(frame()); | 1866 ASSERT(frame()); |
| 1860 const Node* node = linkNode.constUnwrap<Node>(); | 1867 const Node* node = linkNode.constUnwrap<Node>(); |
| 1861 if (isHTMLAnchorElement(node)) | 1868 if (isHTMLAnchorElement(node)) |
| 1862 toHTMLAnchorElement(node)->sendPings(destinationURL); | 1869 toHTMLAnchorElement(node)->sendPings(destinationURL); |
| 1863 } | 1870 } |
| 1864 | 1871 |
| 1865 bool WebLocalFrameImpl::isLoading() const | 1872 bool WebLocalFrameImpl::isLoading() const |
| 1866 { | 1873 { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 | 1975 |
| 1969 void WebLocalFrameImpl::invalidateAll() const | 1976 void WebLocalFrameImpl::invalidateAll() const |
| 1970 { | 1977 { |
| 1971 ASSERT(frame() && frame()->view()); | 1978 ASSERT(frame() && frame()->view()); |
| 1972 FrameView* view = frame()->view(); | 1979 FrameView* view = frame()->view(); |
| 1973 view->invalidateRect(view->frameRect()); | 1980 view->invalidateRect(view->frameRect()); |
| 1974 invalidateScrollbar(); | 1981 invalidateScrollbar(); |
| 1975 } | 1982 } |
| 1976 | 1983 |
| 1977 } // namespace blink | 1984 } // namespace blink |
| OLD | NEW |