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

Side by Side Diff: Source/core/inspector/InjectedScriptHost.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 m_inspectedObjects.prepend(object); 99 m_inspectedObjects.prepend(object);
100 while (m_inspectedObjects.size() > 5) 100 while (m_inspectedObjects.size() > 5)
101 m_inspectedObjects.removeLast(); 101 m_inspectedObjects.removeLast();
102 } 102 }
103 103
104 void InjectedScriptHost::clearInspectedObjects() 104 void InjectedScriptHost::clearInspectedObjects()
105 { 105 {
106 m_inspectedObjects.clear(); 106 m_inspectedObjects.clear();
107 } 107 }
108 108
109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig ned int num) 109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig ned num)
110 { 110 {
111 if (num >= m_inspectedObjects.size()) 111 if (num >= m_inspectedObjects.size())
112 return m_defaultInspectableObject.get(); 112 return m_defaultInspectableObject.get();
113 return m_inspectedObjects[num].get(); 113 return m_inspectedObjects[num].get();
114 } 114 }
115 115
116 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i nt columnNumber) 116 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i nt columnNumber)
117 { 117 {
118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect orDebuggerAgent::DebugCommandBreakpointSource); 119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect orDebuggerAgent::DebugCommandBreakpointSource);
(...skipping 19 matching lines...) Expand all
139 } 139 }
140 140
141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber) 141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber)
142 { 142 {
143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource); 144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource);
145 } 145 }
146 146
147 } // namespace WebCore 147 } // namespace WebCore
148 148
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698