Chromium Code Reviews| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 bool ChromeClientImpl::menubarVisible() | 367 bool ChromeClientImpl::menubarVisible() |
| 368 { | 368 { |
| 369 return m_menubarVisible; | 369 return m_menubarVisible; |
| 370 } | 370 } |
| 371 | 371 |
| 372 void ChromeClientImpl::setResizable(bool value) | 372 void ChromeClientImpl::setResizable(bool value) |
| 373 { | 373 { |
| 374 m_resizable = value; | 374 m_resizable = value; |
| 375 } | 375 } |
| 376 | 376 |
| 377 void ChromeClientImpl::addMessageToConsole(MessageSource source, | 377 bool ChromeClientImpl::shouldReportDetailedMessage(const String& source) |
| 378 MessageLevel level, | 378 { |
| 379 const String& message, | 379 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa ge(source); |
|
pfeldman
2013/07/17 09:09:38
You should decide based on the context.
Devlin
2013/07/17 22:14:13
Deciding based on v8::Context, rather than URL, is
| |
| 380 unsigned lineNumber, | 380 } |
| 381 const String& sourceID) | 381 |
| 382 void ChromeClientImpl::addMessageToConsole( | |
| 383 MessageSource source, MessageLevel level, const String& message, | |
| 384 unsigned lineNumber, const String& sourceID, const String& stackTrace) | |
| 382 { | 385 { |
| 383 if (m_webView->client()) { | 386 if (m_webView->client()) { |
| 384 m_webView->client()->didAddMessageToConsole( | 387 m_webView->client()->didAddMessageToConsole( |
| 385 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age), | 388 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age), |
| 386 sourceID, | 389 sourceID, |
| 387 lineNumber); | 390 lineNumber, |
| 391 stackTrace); | |
| 388 } | 392 } |
| 389 } | 393 } |
| 390 | 394 |
| 391 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() | 395 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() |
| 392 { | 396 { |
| 393 return !!m_webView->client(); | 397 return !!m_webView->client(); |
| 394 } | 398 } |
| 395 | 399 |
| 396 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame) | 400 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame) |
| 397 { | 401 { |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1023 { | 1027 { |
| 1024 } | 1028 } |
| 1025 | 1029 |
| 1026 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) | 1030 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) |
| 1027 { | 1031 { |
| 1028 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1032 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
| 1029 } | 1033 } |
| 1030 #endif | 1034 #endif |
| 1031 | 1035 |
| 1032 } // namespace WebKit | 1036 } // namespace WebKit |
| OLD | NEW |