Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 18822004: Extension Error Piping - Blink: WebKit Side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::shouldReportDetailedMessageForSource(const String& url)
378 MessageLevel level, 378 {
379 const String& message, 379 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa geForSource(url);
380 unsigned lineNumber, 380 }
381 const String& sourceID) 381
382 void ChromeClientImpl::addMessageToConsole(MessageSource source, MessageLevel le vel, const String& message, unsigned lineNumber, const String& sourceID, const S tring& stackTrace)
382 { 383 {
383 if (m_webView->client()) { 384 if (m_webView->client()) {
384 m_webView->client()->didAddMessageToConsole( 385 m_webView->client()->didAddMessageToConsole(
385 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age), 386 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age),
386 sourceID, 387 sourceID,
387 lineNumber); 388 lineNumber,
389 stackTrace);
388 } 390 }
389 } 391 }
390 392
391 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() 393 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel()
392 { 394 {
393 return !!m_webView->client(); 395 return !!m_webView->client();
394 } 396 }
395 397
396 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame) 398 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame)
397 { 399 {
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 { 1011 {
1010 } 1012 }
1011 1013
1012 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 1014 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1013 { 1015 {
1014 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1016 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1015 } 1017 }
1016 #endif 1018 #endif
1017 1019
1018 } // namespace WebKit 1020 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698