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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 void RunLoop(WebLocalFrameBase* frame) { | 162 void RunLoop(WebLocalFrameBase* frame) { |
163 // 0. Flush pending frontend messages. | 163 // 0. Flush pending frontend messages. |
164 WebDevToolsAgentImpl* agent = frame->DevToolsAgentImpl(); | 164 WebDevToolsAgentImpl* agent = frame->DevToolsAgentImpl(); |
165 agent->FlushProtocolNotifications(); | 165 agent->FlushProtocolNotifications(); |
166 | 166 |
167 // 1. Disable input events. | 167 // 1. Disable input events. |
168 WebFrameWidgetBase::SetIgnoreInputEvents(true); | 168 WebFrameWidgetBase::SetIgnoreInputEvents(true); |
169 for (const auto view : WebViewBase::AllInstances()) | 169 for (const auto view : WebViewBase::AllInstances()) |
170 view->ChromeClient().NotifyPopupOpeningObservers(); | 170 view->GetChromeClient().NotifyPopupOpeningObservers(); |
171 | 171 |
172 // 2. Notify embedder about pausing. | 172 // 2. Notify embedder about pausing. |
173 if (agent->Client()) | 173 if (agent->Client()) |
174 agent->Client()->WillEnterDebugLoop(); | 174 agent->Client()->WillEnterDebugLoop(); |
175 | 175 |
176 // 3. Disable active objects | 176 // 3. Disable active objects |
177 WebView::WillEnterModalLoop(); | 177 WebView::WillEnterModalLoop(); |
178 | 178 |
179 // 4. Process messages until quitNow is called. | 179 // 4. Process messages until quitNow is called. |
180 message_loop_->Run(); | 180 message_loop_->Run(); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 } | 648 } |
649 | 649 |
650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { | 650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { |
651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || | 651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || |
652 method == "Debugger.setBreakpointByUrl" || | 652 method == "Debugger.setBreakpointByUrl" || |
653 method == "Debugger.removeBreakpoint" || | 653 method == "Debugger.removeBreakpoint" || |
654 method == "Debugger.setBreakpointsActive"; | 654 method == "Debugger.setBreakpointsActive"; |
655 } | 655 } |
656 | 656 |
657 } // namespace blink | 657 } // namespace blink |
OLD | NEW |