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

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

Issue 2854783003: Remove the last references from production code to WebViewImpl. (Closed)
Patch Set: Created 3 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 RunLoop(frame); 159 RunLoop(frame);
160 } 160 }
161 161
162 void RunLoop(WebLocalFrameImpl* frame) { 162 void RunLoop(WebLocalFrameImpl* 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 : WebViewImpl::AllInstances()) 169 for (const auto view : WebViewBase::AllInstances())
170 view->ChromeClient().NotifyPopupOpeningObservers(); 170 view->ChromeClient().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.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 632 }
633 633
634 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { 634 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) {
635 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || 635 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" ||
636 method == "Debugger.setBreakpointByUrl" || 636 method == "Debugger.setBreakpointByUrl" ||
637 method == "Debugger.removeBreakpoint" || 637 method == "Debugger.removeBreakpoint" ||
638 method == "Debugger.setBreakpointsActive"; 638 method == "Debugger.setBreakpointsActive";
639 } 639 }
640 640
641 } // namespace blink 641 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698