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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 bool ChromeClientImpl::menubarVisible() | 365 bool ChromeClientImpl::menubarVisible() |
366 { | 366 { |
367 return m_menubarVisible; | 367 return m_menubarVisible; |
368 } | 368 } |
369 | 369 |
370 void ChromeClientImpl::setResizable(bool value) | 370 void ChromeClientImpl::setResizable(bool value) |
371 { | 371 { |
372 m_resizable = value; | 372 m_resizable = value; |
373 } | 373 } |
374 | 374 |
| 375 bool ChromeClientImpl::shouldReportDetailedMessageForSource(const String& url) |
| 376 { |
| 377 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa
geForSource(url); |
| 378 } |
| 379 |
375 void ChromeClientImpl::addMessageToConsole(MessageSource source, | 380 void ChromeClientImpl::addMessageToConsole(MessageSource source, |
376 MessageLevel level, | 381 MessageLevel level, |
377 const String& message, | 382 const String& message, |
378 unsigned lineNumber, | 383 unsigned lineNumber, |
379 const String& sourceID) | 384 const String& sourceID) |
380 { | 385 { |
381 if (m_webView->client()) { | 386 if (m_webView->client()) { |
382 m_webView->client()->didAddMessageToConsole( | 387 m_webView->client()->didAddMessageToConsole( |
383 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), | 388 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), |
384 sourceID, | 389 sourceID, |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 { | 1006 { |
1002 } | 1007 } |
1003 | 1008 |
1004 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1009 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1005 { | 1010 { |
1006 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1011 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1007 } | 1012 } |
1008 #endif | 1013 #endif |
1009 | 1014 |
1010 } // namespace WebKit | 1015 } // namespace WebKit |
OLD | NEW |