| OLD | NEW |
| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 { | 261 { |
| 262 if (m_runningForCreateWindow) { | 262 if (m_runningForCreateWindow) { |
| 263 m_runningForCreateWindow = false; | 263 m_runningForCreateWindow = false; |
| 264 if (!m_runningForDebugBreak) | 264 if (!m_runningForDebugBreak) |
| 265 m_messageLoop->quitNow(); | 265 m_messageLoop->quitNow(); |
| 266 return true; | 266 return true; |
| 267 } | 267 } |
| 268 return false; | 268 return false; |
| 269 } | 269 } |
| 270 | 270 |
| 271 void resumeStartup(LocalFrame* frame) override | 271 void runIfWaitingForDebugger(LocalFrame* frame) override |
| 272 { | 272 { |
| 273 // If we've paused for createWindow, handle it ourselves. | 273 // If we've paused for createWindow, handle it ourselves. |
| 274 if (quitForCreateWindow()) | 274 if (quitForCreateWindow()) |
| 275 return; | 275 return; |
| 276 // Otherwise, pass to the client (embedded workers do it differently). | 276 // Otherwise, pass to the client (embedded workers do it differently). |
| 277 WebDevToolsAgentImpl* agent = WebLocalFrameImpl::fromFrame(frame)->devTo
olsAgentImpl(); | 277 WebDevToolsAgentImpl* agent = WebLocalFrameImpl::fromFrame(frame)->devTo
olsAgentImpl(); |
| 278 if (agent && agent->client()) | 278 if (agent && agent->client()) |
| 279 agent->client()->resumeStartup(); | 279 agent->client()->resumeStartup(); |
| 280 } | 280 } |
| 281 | 281 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) | 669 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) |
| 670 { | 670 { |
| 671 return method == "Debugger.pause" | 671 return method == "Debugger.pause" |
| 672 || method == "Debugger.setBreakpoint" | 672 || method == "Debugger.setBreakpoint" |
| 673 || method == "Debugger.setBreakpointByUrl" | 673 || method == "Debugger.setBreakpointByUrl" |
| 674 || method == "Debugger.removeBreakpoint" | 674 || method == "Debugger.removeBreakpoint" |
| 675 || method == "Debugger.setBreakpointsActive"; | 675 || method == "Debugger.setBreakpointsActive"; |
| 676 } | 676 } |
| 677 | 677 |
| 678 } // namespace blink | 678 } // namespace blink |
| OLD | NEW |