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

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

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 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) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 disable(&error); 112 disable(&error);
113 } 113 }
114 114
115 void InspectorInspectorAgent::enable(ErrorString*) 115 void InspectorInspectorAgent::enable(ErrorString*)
116 { 116 {
117 m_state->setBoolean(InspectorAgentState::inspectorAgentEnabled, true); 117 m_state->setBoolean(InspectorAgentState::inspectorAgentEnabled, true);
118 118
119 if (m_pendingInspectData.first) 119 if (m_pendingInspectData.first)
120 inspect(m_pendingInspectData.first, m_pendingInspectData.second); 120 inspect(m_pendingInspectData.first, m_pendingInspectData.second);
121 121
122 for (Vector<pair<long, String> >::iterator it = m_pendingEvaluateTestCommand s.begin(); m_frontend && it != m_pendingEvaluateTestCommands.end(); ++it) 122 for (Vector<pair<long, String>>::iterator it = m_pendingEvaluateTestCommands .begin(); m_frontend && it != m_pendingEvaluateTestCommands.end(); ++it)
123 m_frontend->evaluateForTestInFrontend(static_cast<int>((*it).first), (*i t).second); 123 m_frontend->evaluateForTestInFrontend(static_cast<int>((*it).first), (*i t).second);
124 m_pendingEvaluateTestCommands.clear(); 124 m_pendingEvaluateTestCommands.clear();
125 } 125 }
126 126
127 void InspectorInspectorAgent::disable(ErrorString*) 127 void InspectorInspectorAgent::disable(ErrorString*)
128 { 128 {
129 m_state->setBoolean(InspectorAgentState::inspectorAgentEnabled, false); 129 m_state->setBoolean(InspectorAgentState::inspectorAgentEnabled, false);
130 } 130 }
131 131
132 void InspectorInspectorAgent::reset(ErrorString*) 132 void InspectorInspectorAgent::reset(ErrorString*)
(...skipping 30 matching lines...) Expand all
163 m_frontend->inspect(objectToInspect, hints); 163 m_frontend->inspect(objectToInspect, hints);
164 m_pendingInspectData.first = nullptr; 164 m_pendingInspectData.first = nullptr;
165 m_pendingInspectData.second = nullptr; 165 m_pendingInspectData.second = nullptr;
166 return; 166 return;
167 } 167 }
168 m_pendingInspectData.first = objectToInspect; 168 m_pendingInspectData.first = objectToInspect;
169 m_pendingInspectData.second = hints; 169 m_pendingInspectData.second = hints;
170 } 170 }
171 171
172 } // namespace blink 172 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInspectorAgent.h ('k') | Source/core/inspector/InspectorLayerTreeAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698