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

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, 5 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::shouldReportDetailedMessageForContext(v8::Handle<v8::Cont ext> context)
379 MessageLevel level, 379 {
380 const String& message, 380 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa geForContext(context);
381 unsigned lineNumber, 381 }
382 const String& sourceID) 382
383 bool ChromeClientImpl::shouldReportDetailedMessageForURL(const String& url)
384 {
385 return m_webView->client() && m_webView->client()->shouldReportDetailedMessa geForURL(url);
386 }
387
388 void ChromeClientImpl::addMessageToConsole(
389 MessageSource source, MessageLevel level, const String& message,
390 unsigned lineNumber, const String& sourceID, const String& details)
383 { 391 {
384 if (m_webView->client()) { 392 if (m_webView->client()) {
385 m_webView->client()->didAddMessageToConsole( 393 m_webView->client()->didAddMessageToConsole(
386 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age), 394 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess age),
387 sourceID, 395 sourceID,
388 lineNumber); 396 lineNumber,
397 details);
389 } 398 }
390 } 399 }
391 400
392 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() 401 bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel()
393 { 402 {
394 return !!m_webView->client(); 403 return !!m_webView->client();
395 } 404 }
396 405
397 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame) 406 bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, Frame* frame)
398 { 407 {
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 { 1022 {
1014 } 1023 }
1015 1024
1016 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 1025 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1017 { 1026 {
1018 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1027 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1019 } 1028 }
1020 #endif 1029 #endif
1021 1030
1022 } // namespace WebKit 1031 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698