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

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

Issue 900543003: DevTools: do not abuse inspector controller for the front-end side plumbing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed initializer. Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/filesystem/DevToolsHostFileSystem.cpp ('k') | Source/web/InspectorClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "public/web/WebPermissionClient.h" 82 #include "public/web/WebPermissionClient.h"
83 #include "public/web/WebPlugin.h" 83 #include "public/web/WebPlugin.h"
84 #include "public/web/WebPluginParams.h" 84 #include "public/web/WebPluginParams.h"
85 #include "public/web/WebPluginPlaceholder.h" 85 #include "public/web/WebPluginPlaceholder.h"
86 #include "public/web/WebSecurityOrigin.h" 86 #include "public/web/WebSecurityOrigin.h"
87 #include "public/web/WebTransitionElementData.h" 87 #include "public/web/WebTransitionElementData.h"
88 #include "public/web/WebViewClient.h" 88 #include "public/web/WebViewClient.h"
89 #include "web/PluginPlaceholderImpl.h" 89 #include "web/PluginPlaceholderImpl.h"
90 #include "web/SharedWorkerRepositoryClientImpl.h" 90 #include "web/SharedWorkerRepositoryClientImpl.h"
91 #include "web/WebDataSourceImpl.h" 91 #include "web/WebDataSourceImpl.h"
92 #include "web/WebDevToolsFrontendImpl.h"
92 #include "web/WebLocalFrameImpl.h" 93 #include "web/WebLocalFrameImpl.h"
93 #include "web/WebPluginContainerImpl.h" 94 #include "web/WebPluginContainerImpl.h"
94 #include "web/WebPluginLoadObserver.h" 95 #include "web/WebPluginLoadObserver.h"
95 #include "web/WebViewImpl.h" 96 #include "web/WebViewImpl.h"
96 #include "wtf/StringExtras.h" 97 #include "wtf/StringExtras.h"
97 #include "wtf/text/CString.h" 98 #include "wtf/text/CString.h"
98 #include "wtf/text/WTFString.h" 99 #include "wtf/text/WTFString.h"
99 #include <v8.h> 100 #include <v8.h>
100 101
101 namespace blink { 102 namespace blink {
(...skipping 22 matching lines...) Expand all
124 DeviceMotionController::from(*document); 125 DeviceMotionController::from(*document);
125 DeviceOrientationController::from(*document); 126 DeviceOrientationController::from(*document);
126 if (RuntimeEnabledFeatures::deviceLightEnabled()) 127 if (RuntimeEnabledFeatures::deviceLightEnabled())
127 DeviceLightController::from(*document); 128 DeviceLightController::from(*document);
128 NavigatorGamepad::from(*document); 129 NavigatorGamepad::from(*document);
129 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) 130 if (RuntimeEnabledFeatures::serviceWorkerEnabled())
130 NavigatorServiceWorker::from(*document); 131 NavigatorServiceWorker::from(*document);
131 DOMWindowStorageController::from(*document); 132 DOMWindowStorageController::from(*document);
132 } 133 }
133 } 134 }
135 // FIXME: when extensions go out of process, this whole concept stops workin g.
136 WebDevToolsFrontendImpl* devToolsFrontend = m_webFrame->top()->isWebLocalFra me() ? toWebLocalFrameImpl(m_webFrame->top())->devToolsFrontend() : nullptr;
137 if (devToolsFrontend)
138 devToolsFrontend->didClearWindowObject(m_webFrame);
134 } 139 }
135 140
136 void FrameLoaderClientImpl::documentElementAvailable() 141 void FrameLoaderClientImpl::documentElementAvailable()
137 { 142 {
138 if (m_webFrame->client()) 143 if (m_webFrame->client())
139 m_webFrame->client()->didCreateDocumentElement(m_webFrame); 144 m_webFrame->client()->didCreateDocumentElement(m_webFrame);
140 } 145 }
141 146
142 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte xt, int extensionGroup, int worldId) 147 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte xt, int extensionGroup, int worldId)
143 { 148 {
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 937
933 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 938 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
934 { 939 {
935 if (m_webFrame->client()) { 940 if (m_webFrame->client()) {
936 m_webFrame->client()->suddenTerminationDisablerChanged( 941 m_webFrame->client()->suddenTerminationDisablerChanged(
937 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 942 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
938 } 943 }
939 } 944 }
940 945
941 } // namespace blink 946 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DevToolsHostFileSystem.cpp ('k') | Source/web/InspectorClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698