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

Side by Side Diff: Source/core/inspector/InspectorController.cpp

Issue 146693005: Clarify when what notifications are send when a window object is cleared (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 { 192 {
193 m_moduleAgents.append(agent.get()); 193 m_moduleAgents.append(agent.get());
194 m_agents.append(agent); 194 m_agents.append(agent);
195 } 195 }
196 196
197 void InspectorController::setInspectorFrontendClient(PassOwnPtr<InspectorFronten dClient> inspectorFrontendClient) 197 void InspectorController::setInspectorFrontendClient(PassOwnPtr<InspectorFronten dClient> inspectorFrontendClient)
198 { 198 {
199 m_inspectorFrontendClient = inspectorFrontendClient; 199 m_inspectorFrontendClient = inspectorFrontendClient;
200 } 200 }
201 201
202 void InspectorController::didClearWindowObjectInMainWorld(LocalFrame* frame) 202 void InspectorController::didClearDocumentOfWindowObject(LocalFrame* frame)
203 { 203 {
204 // If the page is supposed to serve as InspectorFrontend notify inspector fr ontend 204 // If the page is supposed to serve as InspectorFrontend notify inspector fr ontend
205 // client that it's cleared so that the client can expose inspector bindings . 205 // client that it's cleared so that the client can expose inspector bindings .
206 if (m_inspectorFrontendClient && frame == m_page->mainFrame()) 206 if (m_inspectorFrontendClient && frame == m_page->mainFrame())
207 m_inspectorFrontendClient->windowObjectCleared(); 207 m_inspectorFrontendClient->windowObjectCleared();
208 } 208 }
209 209
210 void InspectorController::connectFrontend(InspectorFrontendChannel* frontendChan nel) 210 void InspectorController::connectFrontend(InspectorFrontendChannel* frontendChan nel)
211 { 211 {
212 ASSERT(frontendChannel); 212 ASSERT(frontendChannel);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 m_layerTreeAgent->willAddPageOverlay(layer); 474 m_layerTreeAgent->willAddPageOverlay(layer);
475 } 475 }
476 476
477 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) 477 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer)
478 { 478 {
479 if (m_layerTreeAgent) 479 if (m_layerTreeAgent)
480 m_layerTreeAgent->didRemovePageOverlay(layer); 480 m_layerTreeAgent->didRemovePageOverlay(layer);
481 } 481 }
482 482
483 } // namespace WebCore 483 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698