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

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

Issue 33523002: Have Frame::script() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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/web/WebBindings.cpp ('k') | Source/web/WebDevToolsFrontendImpl.cpp » ('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) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 if (InspectorController* ic = inspectorController()) 271 if (InspectorController* ic = inspectorController())
272 ic->didComposite(); 272 ic->didComposite();
273 } 273 }
274 274
275 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo rldId) 275 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo rldId)
276 { 276 {
277 // Skip non main world contexts. 277 // Skip non main world contexts.
278 if (worldId) 278 if (worldId)
279 return; 279 return;
280 if (WebCore::Frame* frame = webframe->frame()) 280 if (WebCore::Frame* frame = webframe->frame())
281 frame->script()->setContextDebugId(m_hostId); 281 frame->script().setContextDebugId(m_hostId);
282 } 282 }
283 283
284 void WebDevToolsAgentImpl::webViewResized(const WebSize& size) 284 void WebDevToolsAgentImpl::webViewResized(const WebSize& size)
285 { 285 {
286 if (InspectorController* ic = inspectorController()) 286 if (InspectorController* ic = inspectorController())
287 ic->webViewResized(IntSize()); 287 ic->webViewResized(IntSize());
288 } 288 }
289 289
290 bool WebDevToolsAgentImpl::handleInputEvent(WebCore::Page* page, const WebInputE vent& inputEvent) 290 bool WebDevToolsAgentImpl::handleInputEvent(WebCore::Page* page, const WebInputE vent& inputEvent)
291 { 291 {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack endDispatcher::kProfiler_getCPUProfileCmd] 580 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack endDispatcher::kProfiler_getCPUProfileCmd]
581 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; 581 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack endDispatcher::kHeapProfiler_getHeapSnapshotCmd];
582 } 582 }
583 583
584 void WebDevToolsAgent::processPendingMessages() 584 void WebDevToolsAgent::processPendingMessages()
585 { 585 {
586 PageScriptDebugServer::shared().runPendingTasks(); 586 PageScriptDebugServer::shared().runPendingTasks();
587 } 587 }
588 588
589 } // namespace WebKit 589 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/WebBindings.cpp ('k') | Source/web/WebDevToolsFrontendImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698