OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 m_delegate->printMessage(" - didChangeLocationWithinPageForFrame\n"); | 1265 m_delegate->printMessage(" - didChangeLocationWithinPageForFrame\n"); |
1266 } | 1266 } |
1267 } | 1267 } |
1268 | 1268 |
1269 void WebTestProxyBase::didDetectXSS(WebFrame*, const WebURL&, bool) | 1269 void WebTestProxyBase::didDetectXSS(WebFrame*, const WebURL&, bool) |
1270 { | 1270 { |
1271 if (m_testInterfaces->testRunner()->shouldDumpFrameLoadCallbacks()) | 1271 if (m_testInterfaces->testRunner()->shouldDumpFrameLoadCallbacks()) |
1272 m_delegate->printMessage("didDetectXSS\n"); | 1272 m_delegate->printMessage("didDetectXSS\n"); |
1273 } | 1273 } |
1274 | 1274 |
| 1275 void WebTestProxyBase::didDispatchPingLoader(WebFrame*, const WebURL& url) |
| 1276 { |
| 1277 if (m_testInterfaces->testRunner()->shouldDumpPingLoaderCallbacks()) |
| 1278 m_delegate->printMessage(string("PingLoader dispatched to '") + URLDescr
iption(url).c_str() + "'.\n"); |
| 1279 } |
| 1280 |
1275 void WebTestProxyBase::willRequestResource(WebFrame* frame, const WebKit::WebCac
hedURLRequest& request) | 1281 void WebTestProxyBase::willRequestResource(WebFrame* frame, const WebKit::WebCac
hedURLRequest& request) |
1276 { | 1282 { |
1277 if (m_testInterfaces->testRunner()->shouldDumpResourceRequestCallbacks()) { | 1283 if (m_testInterfaces->testRunner()->shouldDumpResourceRequestCallbacks()) { |
1278 printFrameDescription(m_delegate, frame); | 1284 printFrameDescription(m_delegate, frame); |
1279 m_delegate->printMessage(string(" - ") + request.initiatorName().utf8().
data()); | 1285 m_delegate->printMessage(string(" - ") + request.initiatorName().utf8().
data()); |
1280 m_delegate->printMessage(string(" requested '") + URLDescription(request
.urlRequest().url()).c_str() + "'\n"); | 1286 m_delegate->printMessage(string(" requested '") + URLDescription(request
.urlRequest().url()).c_str() + "'\n"); |
1281 } | 1287 } |
1282 } | 1288 } |
1283 | 1289 |
1284 void WebTestProxyBase::didCreateDataSource(WebFrame*, WebDataSource* ds) | 1290 void WebTestProxyBase::didCreateDataSource(WebFrame*, WebDataSource* ds) |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 | 1480 |
1475 void WebTestProxyBase::resetInputMethod() | 1481 void WebTestProxyBase::resetInputMethod() |
1476 { | 1482 { |
1477 // If a composition text exists, then we need to let the browser process | 1483 // If a composition text exists, then we need to let the browser process |
1478 // to cancel the input method's ongoing composition session. | 1484 // to cancel the input method's ongoing composition session. |
1479 if (m_webWidget) | 1485 if (m_webWidget) |
1480 m_webWidget->confirmComposition(); | 1486 m_webWidget->confirmComposition(); |
1481 } | 1487 } |
1482 | 1488 |
1483 } | 1489 } |
OLD | NEW |