| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 bool ChromeClientImpl::menubarVisible() | 368 bool ChromeClientImpl::menubarVisible() |
| 369 { | 369 { |
| 370 return m_menubarVisible; | 370 return m_menubarVisible; |
| 371 } | 371 } |
| 372 | 372 |
| 373 void ChromeClientImpl::setResizable(bool value) | 373 void ChromeClientImpl::setResizable(bool value) |
| 374 { | 374 { |
| 375 m_resizable = value; | 375 m_resizable = value; |
| 376 } | 376 } |
| 377 | 377 |
| 378 void ChromeClientImpl::addMessageToConsole(MessageSource source, | 378 bool ChromeClientImpl::shouldReportDetailedMessage(v8::Handle<v8::Context> conte
xt, const String& source) |
| 379 MessageLevel level, | 379 { |
| 380 const String& message, | 380 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa
ge(context, source); |
| 381 unsigned lineNumber, | 381 } |
| 382 const String& sourceID) | 382 |
| 383 void ChromeClientImpl::addMessageToConsole( |
| 384 MessageSource source, MessageLevel level, const String& message, |
| 385 unsigned lineNumber, const String& sourceID, const String& details) |
| 383 { | 386 { |
| 384 if (m_webView->client()) { | 387 if (m_webView->client()) { |
| 385 m_webView->client()->didAddMessageToConsole( | 388 m_webView->client()->didAddMessageToConsole( |
| 386 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), | 389 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), |
| 387 sourceID, | 390 sourceID, |
| 388 lineNumber); | 391 lineNumber, |
| 392 details); |
| 389 } | 393 } |
| 390 } | 394 } |
| 391 | 395 |
| 392 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() | 396 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() |
| 393 { | 397 { |
| 394 return !!m_webView->client(); | 398 return !!m_webView->client(); |
| 395 } | 399 } |
| 396 | 400 |
| 397 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame*
frame) | 401 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame*
frame) |
| 398 { | 402 { |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 { | 1017 { |
| 1014 } | 1018 } |
| 1015 | 1019 |
| 1016 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1020 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
| 1017 { | 1021 { |
| 1018 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1022 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
| 1019 } | 1023 } |
| 1020 #endif | 1024 #endif |
| 1021 | 1025 |
| 1022 } // namespace WebKit | 1026 } // namespace WebKit |
| OLD | NEW |