OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 } | 301 } |
302 | 302 |
303 String PageScriptDebugServer::preprocessEventListener(LocalFrame* frame, const S
tring& source, const String& url, const String& functionName) | 303 String PageScriptDebugServer::preprocessEventListener(LocalFrame* frame, const S
tring& source, const String& url, const String& functionName) |
304 { | 304 { |
305 if (!canPreprocess(frame)) | 305 if (!canPreprocess(frame)) |
306 return source; | 306 return source; |
307 | 307 |
308 return m_scriptPreprocessor->preprocessSourceCode(source, url, functionName)
; | 308 return m_scriptPreprocessor->preprocessSourceCode(source, url, functionName)
; |
309 } | 309 } |
310 | 310 |
| 311 void PageScriptDebugServer::clearPreprocessor() |
| 312 { |
| 313 m_scriptPreprocessor.clear(); |
| 314 } |
| 315 |
311 void PageScriptDebugServer::muteWarningsAndDeprecations() | 316 void PageScriptDebugServer::muteWarningsAndDeprecations() |
312 { | 317 { |
313 FrameConsole::mute(); | 318 FrameConsole::mute(); |
314 UseCounter::muteForInspector(); | 319 UseCounter::muteForInspector(); |
315 } | 320 } |
316 | 321 |
317 void PageScriptDebugServer::unmuteWarningsAndDeprecations() | 322 void PageScriptDebugServer::unmuteWarningsAndDeprecations() |
318 { | 323 { |
319 FrameConsole::unmute(); | 324 FrameConsole::unmute(); |
320 UseCounter::unmuteForInspector(); | 325 UseCounter::unmuteForInspector(); |
321 } | 326 } |
322 | 327 |
323 } // namespace blink | 328 } // namespace blink |
OLD | NEW |