OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |