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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "web/WebDevToolsAgentImpl.h" 31 #include "web/WebDevToolsAgentImpl.h"
32 32
33 #include <v8-inspector.h>
34 #include <memory>
33 #include "bindings/core/v8/ScriptController.h" 35 #include "bindings/core/v8/ScriptController.h"
34 #include "bindings/core/v8/V8Binding.h" 36 #include "bindings/core/v8/V8Binding.h"
35 #include "core/InstrumentingAgents.h" 37 #include "core/InstrumentingAgents.h"
36 #include "core/frame/FrameHost.h" 38 #include "core/frame/FrameHost.h"
37 #include "core/frame/FrameView.h" 39 #include "core/frame/FrameView.h"
38 #include "core/frame/LocalFrame.h" 40 #include "core/frame/LocalFrame.h"
39 #include "core/frame/Settings.h" 41 #include "core/frame/Settings.h"
40 #include "core/inspector/InspectedFrames.h" 42 #include "core/inspector/InspectedFrames.h"
41 #include "core/inspector/InspectorAnimationAgent.h" 43 #include "core/inspector/InspectorAnimationAgent.h"
42 #include "core/inspector/InspectorApplicationCacheAgent.h" 44 #include "core/inspector/InspectorApplicationCacheAgent.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "web/InspectorRenderingAgent.h" 84 #include "web/InspectorRenderingAgent.h"
83 #include "web/WebFrameWidgetImpl.h" 85 #include "web/WebFrameWidgetImpl.h"
84 #include "web/WebInputEventConversion.h" 86 #include "web/WebInputEventConversion.h"
85 #include "web/WebLocalFrameImpl.h" 87 #include "web/WebLocalFrameImpl.h"
86 #include "web/WebSettingsImpl.h" 88 #include "web/WebSettingsImpl.h"
87 #include "web/WebViewImpl.h" 89 #include "web/WebViewImpl.h"
88 #include "wtf/MathExtras.h" 90 #include "wtf/MathExtras.h"
89 #include "wtf/Noncopyable.h" 91 #include "wtf/Noncopyable.h"
90 #include "wtf/PtrUtil.h" 92 #include "wtf/PtrUtil.h"
91 #include "wtf/text/WTFString.h" 93 #include "wtf/text/WTFString.h"
92 #include <memory>
93 #include <v8-inspector.h>
94 94
95 namespace blink { 95 namespace blink {
96 96
97 namespace { 97 namespace {
98 98
99 bool isMainFrame(WebLocalFrameImpl* frame) { 99 bool isMainFrame(WebLocalFrameImpl* frame) {
100 // TODO(dgozman): sometimes view->mainFrameImpl() does return null, even 100 // TODO(dgozman): sometimes view->mainFrameImpl() does return null, even
101 // though |frame| is meant to be main frame. See http://crbug.com/526162. 101 // though |frame| is meant to be main frame. See http://crbug.com/526162.
102 return frame->viewImpl() && !frame->parent(); 102 return frame->viewImpl() && !frame->parent();
103 } 103 }
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 } 646 }
647 647
648 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) { 648 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) {
649 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || 649 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" ||
650 method == "Debugger.setBreakpointByUrl" || 650 method == "Debugger.setBreakpointByUrl" ||
651 method == "Debugger.removeBreakpoint" || 651 method == "Debugger.removeBreakpoint" ||
652 method == "Debugger.setBreakpointsActive"; 652 method == "Debugger.setBreakpointsActive";
653 } 653 }
654 654
655 } // namespace blink 655 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.h ('k') | third_party/WebKit/Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698