| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 #include "core/html/HTMLHeadElement.h" | 109 #include "core/html/HTMLHeadElement.h" |
| 110 #include "core/html/HTMLInputElement.h" | 110 #include "core/html/HTMLInputElement.h" |
| 111 #include "core/html/HTMLLinkElement.h" | 111 #include "core/html/HTMLLinkElement.h" |
| 112 #include "core/html/PluginDocument.h" | 112 #include "core/html/PluginDocument.h" |
| 113 #include "core/inspector/InspectorController.h" | 113 #include "core/inspector/InspectorController.h" |
| 114 #include "core/inspector/ScriptCallStack.h" | 114 #include "core/inspector/ScriptCallStack.h" |
| 115 #include "core/loader/DocumentLoader.h" | 115 #include "core/loader/DocumentLoader.h" |
| 116 #include "core/loader/FrameLoadRequest.h" | 116 #include "core/loader/FrameLoadRequest.h" |
| 117 #include "core/loader/FrameLoader.h" | 117 #include "core/loader/FrameLoader.h" |
| 118 #include "core/loader/HistoryItem.h" | 118 #include "core/loader/HistoryItem.h" |
| 119 #include "core/loader/ManifestLoader.h" |
| 119 #include "core/loader/SubstituteData.h" | 120 #include "core/loader/SubstituteData.h" |
| 120 #include "core/page/Chrome.h" | 121 #include "core/page/Chrome.h" |
| 121 #include "core/page/EventHandler.h" | 122 #include "core/page/EventHandler.h" |
| 122 #include "core/page/FocusController.h" | 123 #include "core/page/FocusController.h" |
| 123 #include "core/page/FrameTree.h" | 124 #include "core/page/FrameTree.h" |
| 124 #include "core/page/Page.h" | 125 #include "core/page/Page.h" |
| 125 #include "core/page/PrintContext.h" | 126 #include "core/page/PrintContext.h" |
| 126 #include "core/rendering/HitTestResult.h" | 127 #include "core/rendering/HitTestResult.h" |
| 127 #include "core/rendering/RenderBox.h" | 128 #include "core/rendering/RenderBox.h" |
| 128 #include "core/rendering/RenderFrame.h" | 129 #include "core/rendering/RenderFrame.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 147 #include "platform/network/ResourceRequest.h" | 148 #include "platform/network/ResourceRequest.h" |
| 148 #include "platform/scroll/ScrollTypes.h" | 149 #include "platform/scroll/ScrollTypes.h" |
| 149 #include "platform/scroll/ScrollbarTheme.h" | 150 #include "platform/scroll/ScrollbarTheme.h" |
| 150 #include "platform/weborigin/KURL.h" | 151 #include "platform/weborigin/KURL.h" |
| 151 #include "platform/weborigin/SchemeRegistry.h" | 152 #include "platform/weborigin/SchemeRegistry.h" |
| 152 #include "platform/weborigin/SecurityPolicy.h" | 153 #include "platform/weborigin/SecurityPolicy.h" |
| 153 #include "public/platform/Platform.h" | 154 #include "public/platform/Platform.h" |
| 154 #include "public/platform/WebFloatPoint.h" | 155 #include "public/platform/WebFloatPoint.h" |
| 155 #include "public/platform/WebFloatRect.h" | 156 #include "public/platform/WebFloatRect.h" |
| 156 #include "public/platform/WebLayer.h" | 157 #include "public/platform/WebLayer.h" |
| 158 #include "public/platform/WebManifestRequest.h" |
| 157 #include "public/platform/WebPoint.h" | 159 #include "public/platform/WebPoint.h" |
| 158 #include "public/platform/WebRect.h" | 160 #include "public/platform/WebRect.h" |
| 159 #include "public/platform/WebSize.h" | 161 #include "public/platform/WebSize.h" |
| 160 #include "public/platform/WebURLError.h" | 162 #include "public/platform/WebURLError.h" |
| 161 #include "public/platform/WebVector.h" | 163 #include "public/platform/WebVector.h" |
| 162 #include "public/web/WebConsoleMessage.h" | 164 #include "public/web/WebConsoleMessage.h" |
| 163 #include "public/web/WebDOMEvent.h" | 165 #include "public/web/WebDOMEvent.h" |
| 164 #include "public/web/WebDOMEventListener.h" | 166 #include "public/web/WebDOMEventListener.h" |
| 165 #include "public/web/WebDocument.h" | 167 #include "public/web/WebDocument.h" |
| 166 #include "public/web/WebFindOptions.h" | 168 #include "public/web/WebFindOptions.h" |
| (...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 } | 1499 } |
| 1498 | 1500 |
| 1499 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const | 1501 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const |
| 1500 { | 1502 { |
| 1501 if (!frame()) | 1503 if (!frame()) |
| 1502 return WebString(); | 1504 return WebString(); |
| 1503 | 1505 |
| 1504 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD
ebugInfo : LayerTreeNormal)); | 1506 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD
ebugInfo : LayerTreeNormal)); |
| 1505 } | 1507 } |
| 1506 | 1508 |
| 1509 void WebLocalFrameImpl::requestManifest(WebManifestRequest& request) const |
| 1510 { |
| 1511 if (!frame()) { |
| 1512 request.requestFailed(blink::WebManifestRequest::NoLinkManifest); |
| 1513 return; |
| 1514 } |
| 1515 |
| 1516 ManifestLoader::loadManifest(&request, frame()->document()); |
| 1517 } |
| 1518 |
| 1507 // WebLocalFrameImpl public ----------------------------------------------------
----- | 1519 // WebLocalFrameImpl public ----------------------------------------------------
----- |
| 1508 | 1520 |
| 1509 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) | 1521 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) |
| 1510 { | 1522 { |
| 1511 return WebLocalFrameImpl::create(client); | 1523 return WebLocalFrameImpl::create(client); |
| 1512 } | 1524 } |
| 1513 | 1525 |
| 1514 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) | 1526 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) |
| 1515 { | 1527 { |
| 1516 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); | 1528 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 | 1871 |
| 1860 void WebLocalFrameImpl::invalidateAll() const | 1872 void WebLocalFrameImpl::invalidateAll() const |
| 1861 { | 1873 { |
| 1862 ASSERT(frame() && frame()->view()); | 1874 ASSERT(frame() && frame()->view()); |
| 1863 FrameView* view = frame()->view(); | 1875 FrameView* view = frame()->view(); |
| 1864 view->invalidateRect(view->frameRect()); | 1876 view->invalidateRect(view->frameRect()); |
| 1865 invalidateScrollbar(); | 1877 invalidateScrollbar(); |
| 1866 } | 1878 } |
| 1867 | 1879 |
| 1868 } // namespace blink | 1880 } // namespace blink |
| OLD | NEW |