Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 23 matching lines...) Expand all
34 #include "bindings/core/v8/ScriptController.h" 34 #include "bindings/core/v8/ScriptController.h"
35 #include "core/HTMLNames.h" 35 #include "core/HTMLNames.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/Fullscreen.h" 37 #include "core/dom/Fullscreen.h"
38 #include "core/events/MessageEvent.h" 38 #include "core/events/MessageEvent.h"
39 #include "core/events/MouseEvent.h" 39 #include "core/events/MouseEvent.h"
40 #include "core/events/UIEventWithKeyState.h" 40 #include "core/events/UIEventWithKeyState.h"
41 #include "core/frame/FrameView.h" 41 #include "core/frame/FrameView.h"
42 #include "core/frame/Settings.h" 42 #include "core/frame/Settings.h"
43 #include "core/html/HTMLFrameElementBase.h" 43 #include "core/html/HTMLFrameElementBase.h"
44 #include "core/html/HTMLFrameletElement.h"
44 #include "core/html/HTMLMediaElement.h" 45 #include "core/html/HTMLMediaElement.h"
45 #include "core/html/HTMLPlugInElement.h" 46 #include "core/html/HTMLPlugInElement.h"
46 #include "core/input/EventHandler.h" 47 #include "core/input/EventHandler.h"
47 #include "core/layout/HitTestResult.h" 48 #include "core/layout/HitTestResult.h"
48 #include "core/loader/DocumentLoader.h" 49 #include "core/loader/DocumentLoader.h"
49 #include "core/loader/FrameLoadRequest.h" 50 #include "core/loader/FrameLoadRequest.h"
50 #include "core/loader/FrameLoader.h" 51 #include "core/loader/FrameLoader.h"
51 #include "core/loader/HistoryItem.h" 52 #include "core/loader/HistoryItem.h"
52 #include "core/page/Page.h" 53 #include "core/page/Page.h"
53 #include "core/page/WindowFeatures.h" 54 #include "core/page/WindowFeatures.h"
(...skipping 26 matching lines...) Expand all
80 #include "public/platform/WebVector.h" 81 #include "public/platform/WebVector.h"
81 #include "public/platform/modules/mediasession/WebMediaSession.h" 82 #include "public/platform/modules/mediasession/WebMediaSession.h"
82 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" 83 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h"
83 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h " 84 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h "
84 #include "public/web/WebAutofillClient.h" 85 #include "public/web/WebAutofillClient.h"
85 #include "public/web/WebContentSettingsClient.h" 86 #include "public/web/WebContentSettingsClient.h"
86 #include "public/web/WebDOMEvent.h" 87 #include "public/web/WebDOMEvent.h"
87 #include "public/web/WebDocument.h" 88 #include "public/web/WebDocument.h"
88 #include "public/web/WebFormElement.h" 89 #include "public/web/WebFormElement.h"
89 #include "public/web/WebFrameClient.h" 90 #include "public/web/WebFrameClient.h"
91 #include "public/web/WebFrameletClient.h"
90 #include "public/web/WebNode.h" 92 #include "public/web/WebNode.h"
91 #include "public/web/WebPlugin.h" 93 #include "public/web/WebPlugin.h"
92 #include "public/web/WebPluginParams.h" 94 #include "public/web/WebPluginParams.h"
93 #include "public/web/WebViewClient.h" 95 #include "public/web/WebViewClient.h"
94 #include "web/DevToolsEmulator.h" 96 #include "web/DevToolsEmulator.h"
95 #include "web/SharedWorkerRepositoryClientImpl.h" 97 #include "web/SharedWorkerRepositoryClientImpl.h"
96 #include "web/WebDataSourceImpl.h" 98 #include "web/WebDataSourceImpl.h"
97 #include "web/WebDevToolsAgentImpl.h" 99 #include "web/WebDevToolsAgentImpl.h"
98 #include "web/WebDevToolsFrontendImpl.h" 100 #include "web/WebDevToolsFrontendImpl.h"
101 #include "web/WebFrameletImpl.h"
99 #include "web/WebLocalFrameImpl.h" 102 #include "web/WebLocalFrameImpl.h"
100 #include "web/WebPluginContainerImpl.h" 103 #include "web/WebPluginContainerImpl.h"
101 #include "web/WebViewImpl.h" 104 #include "web/WebViewImpl.h"
102 #include "wtf/StringExtras.h" 105 #include "wtf/StringExtras.h"
103 #include "wtf/text/CString.h" 106 #include "wtf/text/CString.h"
104 #include "wtf/text/WTFString.h" 107 #include "wtf/text/WTFString.h"
105 #include <v8.h> 108 #include <v8.h>
106 109
107 namespace blink { 110 namespace blink {
108 111
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } 742 }
740 743
741 PassRefPtrWillBeRawPtr<LocalFrame> FrameLoaderClientImpl::createFrame( 744 PassRefPtrWillBeRawPtr<LocalFrame> FrameLoaderClientImpl::createFrame(
742 const FrameLoadRequest& request, 745 const FrameLoadRequest& request,
743 const AtomicString& name, 746 const AtomicString& name,
744 HTMLFrameOwnerElement* ownerElement) 747 HTMLFrameOwnerElement* ownerElement)
745 { 748 {
746 return m_webFrame->createChildFrame(request, name, ownerElement); 749 return m_webFrame->createChildFrame(request, name, ownerElement);
747 } 750 }
748 751
752 WebFramelet* FrameLoaderClientImpl::createFramelet(const KURL& url, HTMLFramelet Element* ownerElement)
753 {
754 WebFramelet* framelet = m_webFrame->createFramelet(url);
755 static_cast<WebFrameletImpl*>(framelet)->initializeCoreFramelet(ownerElement );
756 return framelet;
757 }
758
749 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp e) const 759 bool FrameLoaderClientImpl::canCreatePluginWithoutRenderer(const String& mimeTyp e) const
750 { 760 {
751 if (!m_webFrame->client()) 761 if (!m_webFrame->client())
752 return false; 762 return false;
753 763
754 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType); 764 return m_webFrame->client()->canCreatePluginWithoutRenderer(mimeType);
755 } 765 }
756 766
757 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( 767 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin(
758 HTMLPlugInElement* element, 768 HTMLPlugInElement* element,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 1011
1002 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 1012 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
1003 { 1013 {
1004 if (m_webFrame->client()) { 1014 if (m_webFrame->client()) {
1005 m_webFrame->client()->suddenTerminationDisablerChanged( 1015 m_webFrame->client()->suddenTerminationDisablerChanged(
1006 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 1016 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
1007 } 1017 }
1008 } 1018 }
1009 1019
1010 } // namespace blink 1020 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/FrameletClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698