OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 const String& sourceID) | 381 const String& sourceID) |
382 { | 382 { |
383 if (m_webView->client()) { | 383 if (m_webView->client()) { |
384 m_webView->client()->didAddMessageToConsole( | 384 m_webView->client()->didAddMessageToConsole( |
385 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), | 385 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), |
386 sourceID, | 386 sourceID, |
387 lineNumber); | 387 lineNumber); |
388 } | 388 } |
389 } | 389 } |
390 | 390 |
| 391 bool ChromeClientImpl::shouldReportDetailedMessage(const String& source) |
| 392 { |
| 393 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa
ge(source); |
| 394 } |
| 395 |
| 396 void ChromeClientImpl::reportDetailedMessage(const String& source, MessageLevel
level, const String& message, const String& jsonStackTrace) |
| 397 { |
| 398 if (m_webView->client()) |
| 399 m_webView->client()->reportDetailedMessage(source, static_cast<WebConsol
eMessage::Level>(level), message, jsonStackTrace); |
| 400 } |
| 401 |
391 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() | 402 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() |
392 { | 403 { |
393 return !!m_webView->client(); | 404 return !!m_webView->client(); |
394 } | 405 } |
395 | 406 |
396 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame*
frame) | 407 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame*
frame) |
397 { | 408 { |
398 if (m_webView->client()) { | 409 if (m_webView->client()) { |
399 return m_webView->client()->runModalBeforeUnloadDialog( | 410 return m_webView->client()->runModalBeforeUnloadDialog( |
400 WebFrameImpl::fromFrame(frame), message); | 411 WebFrameImpl::fromFrame(frame), message); |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 { | 1034 { |
1024 } | 1035 } |
1025 | 1036 |
1026 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1037 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1027 { | 1038 { |
1028 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1039 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1029 } | 1040 } |
1030 #endif | 1041 #endif |
1031 | 1042 |
1032 } // namespace WebKit | 1043 } // namespace WebKit |
OLD | NEW |