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

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

Issue 2909223002: Renamed WebViewBase::ChromeClient to GetChromeClient (Closed)
Patch Set: Removed blink:: qualifier Created 3 years, 6 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/ValidationMessageClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698