diff --git a/blink/public/web/web_settings.h b/blink/public/web/web_settings.h index 873baf80de2269dc7cc68292a68317662d267939..53f269a36328cdcbf4960d6ad4e297ab56a0142b 100644 --- a/blink/public/web/web_settings.h +++ b/blink/public/web/web_settings.h @@ -309,6 +309,10 @@ class WebSettings { virtual void SetCustomVideoPlayerOverlay(bool overlay) = 0; #endif // OHOS_CUSTOM_VIDEO_PLAYER +#if defined(OHOS_LOGGER_REPORT) + virtual int32_t GetUsageScenario() = 0; +#endif + #ifdef OHOS_MEDIA_NETWORK_TRAFFIC_PROMPT virtual void SetMediaNetworkTrafficPromptEnabled(bool enable) = 0; virtual void SetPlaybackWithMobileDataAllowed(bool allowed) = 0; diff --git a/blink/renderer/core/css/resolver/style_cascade.cc b/blink/renderer/core/css/resolver/style_cascade.cc index 96d7c8e96e184e576301dcbfeb3207637c98899f..28a4ad3f5119dfd14ed86d39a7461274d8a5e232 100644 --- a/blink/renderer/core/css/resolver/style_cascade.cc +++ b/blink/renderer/core/css/resolver/style_cascade.cc @@ -766,6 +766,13 @@ void StyleCascade::LookupAndApplyDeclaration(const CSSProperty& property, LOG(INFO) << "[AdBlock] Element("<< state_.GetElement().ToString() << " ) dom path:" << GetDomPath(state_.GetElement(), false, true); + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "[AdBlock] Element("<< state_.GetElement().ToString() + << " ) dom path:" + << GetDomPath(state_.GetElement(), false, true); +#endif + } } @@ -785,6 +792,11 @@ void StyleCascade::LookupAndApplyDeclaration(const CSSProperty& property, LOG(INFO) << "[User AdBlock] Element(" << state_.GetElement().ToString() << ") dom path:" << GetDomPath(state_.GetElement(), false, true); +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "[User AdBlock] Element(" << state_.GetElement().ToString() + << ") dom path:" + << GetDomPath(state_.GetElement(), false, true); +#endif } } #endif diff --git a/blink/renderer/core/editing/iterators/text_iterator_text_node_handler.cc b/blink/renderer/core/editing/iterators/text_iterator_text_node_handler.cc index 243fae6744ec5d7f9e331e2ac34401ff9dbdd3e8..08f00ffd122a6f9f5010eb4d7125cbd9982f51f0 100644 --- a/blink/renderer/core/editing/iterators/text_iterator_text_node_handler.cc +++ b/blink/renderer/core/editing/iterators/text_iterator_text_node_handler.cc @@ -172,6 +172,9 @@ void TextIteratorTextNodeHandler::HandleTextNodeInRange(const Text* node, const NGOffsetMapping* const mapping = NGOffsetMapping::ForceGetFor(Position(node, offset_)); if (UNLIKELY(!mapping)) { +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "We have LayoutText outside LayoutBlockFlow " << text_node_; +#endif NOTREACHED() << "We have LayoutText outside LayoutBlockFlow " << text_node_; return; } diff --git a/blink/renderer/core/exported/web_settings_impl.cc b/blink/renderer/core/exported/web_settings_impl.cc index e6f12d7a670710e19facb6b0cf0ff74a0d0de524..ad17ad70ebfb37b1265c2832882c2ab5460ef222 100644 --- a/blink/renderer/core/exported/web_settings_impl.cc +++ b/blink/renderer/core/exported/web_settings_impl.cc @@ -864,4 +864,12 @@ void WebSettingsImpl::SetPlaybackWithMobileDataAllowed(bool allowed) { settings_->SetPlaybackWithMobileDataAllowed(allowed); } #endif // OHOS_MEDIA_NETWORK_TRAFFIC_PROMPT + +#ifdef OHOS_LOGGER_REPORT +int32_t WebSettingsImpl::GetUsageScenario() +{ + return settings_->GetUsageScenario(); +} +#endif + } // namespace blink diff --git a/blink/renderer/core/exported/web_settings_impl.h b/blink/renderer/core/exported/web_settings_impl.h index cadb901c2f30650a5f6c4b3d187e22ab48318e7d..f7a658679edcac22fe290c2081d5298c3058dbeb 100644 --- a/blink/renderer/core/exported/web_settings_impl.h +++ b/blink/renderer/core/exported/web_settings_impl.h @@ -258,6 +258,10 @@ class CORE_EXPORT WebSettingsImpl final : public WebSettings { void SetCustomVideoPlayerOverlay(bool overlay) override; #endif // OHOS_CUSTOM_VIDEO_PLAYER +#ifdef OHOS_LOGGER_REPORT + int32_t GetUsageScenario() override; +#endif + #ifdef OHOS_MEDIA_NETWORK_TRAFFIC_PROMPT void SetMediaNetworkTrafficPromptEnabled(bool enable) override; void SetPlaybackWithMobileDataAllowed(bool allowed) override; diff --git a/blink/renderer/core/frame/fullscreen_controller.cc b/blink/renderer/core/frame/fullscreen_controller.cc index dd51e003182ee97c9abd3ae2ac1daa3be32838af..eb02ffc4d88342d112d73c96b92830145afda950 100644 --- a/blink/renderer/core/frame/fullscreen_controller.cc +++ b/blink/renderer/core/frame/fullscreen_controller.cc @@ -278,6 +278,11 @@ void FullscreenController::FullscreenElementChanged( << new_element->localName(); #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::FullscreenElementChanged new_element = " + << new_element->localName(); +#endif + if (auto* video_element = DynamicTo(*new_element)) { video_element->DidEnterFullscreen(); } @@ -290,6 +295,11 @@ void FullscreenController::FullscreenElementChanged( << old_element->localName(); #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::FullscreenElementChanged old_element = " + << old_element->localName(); +#endif + if (old_video_element) old_video_element->DidExitFullscreen(); } diff --git a/blink/renderer/core/frame/history.cc b/blink/renderer/core/frame/history.cc index f4119ca3a9de9e33633b100c198f60c1a5d4ab0a..d8dee9ab6c9ba67b7d98bd5e8d47d51d33e22247 100644 --- a/blink/renderer/core/frame/history.cc +++ b/blink/renderer/core/frame/history.cc @@ -196,6 +196,11 @@ void History::go(ScriptState* script_state, "fully active"); return; } + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "WebViewBackForward history::go[offset]" << delta; +#endif + LocalFrame* frame = window->GetFrame(); DCHECK(frame); diff --git a/blink/renderer/core/frame/local_frame_mojo_handler.cc b/blink/renderer/core/frame/local_frame_mojo_handler.cc index ea63acd1610d73c107d8bda709d553d5c437094e..cb98efa4e3dd24d95f02dbbcf189c11d02589d12 100644 --- a/blink/renderer/core/frame/local_frame_mojo_handler.cc +++ b/blink/renderer/core/frame/local_frame_mojo_handler.cc @@ -1386,6 +1386,9 @@ void LocalFrameMojoHandler::GetImageFromCache( blink::Document* document = frame_->GetDocument(); if (document == nullptr) { LOG(ERROR) << "getImageFromCache: document nullptr"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: document nullptr"; +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; @@ -1394,6 +1397,9 @@ void LocalFrameMojoHandler::GetImageFromCache( DocumentLoader* loader = document->Loader(); if (loader == nullptr) { LOG(ERROR) << "getImageFromCache: loader nullptr"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: loader nullptr"; +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; @@ -1403,6 +1409,9 @@ void LocalFrameMojoHandler::GetImageFromCache( loader->OnGetImageFromCache(url); if (resource_buffer == nullptr) { LOG(ERROR) << "getImageFromCache: Get resource buffer null"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: Get resource buffer null"; +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; @@ -1412,6 +1421,9 @@ void LocalFrameMojoHandler::GetImageFromCache( base::WritableSharedMemoryRegion::Create(resource_buffer->size()); if (!region.IsValid()) { LOG(ERROR) << "getImageFromCache: WritableSharedMemoryRegion create failed"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: WritableSharedMemoryRegion create failed"; +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; @@ -1420,6 +1432,9 @@ void LocalFrameMojoHandler::GetImageFromCache( base::WritableSharedMemoryMapping mapping = region.Map(); if (!mapping.IsValid()) { LOG(ERROR) << "getImageFromCache: WritableSharedMemoryRegion map failed"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: WritableSharedMemoryRegion map failed"; +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; @@ -1431,6 +1446,10 @@ void LocalFrameMojoHandler::GetImageFromCache( LOG(ERROR) << "getImageFromCache: Get resource bytes unfinished, buffer size " << resource_buffer->size(); +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "getImageFromCache: Get resource bytes unfinished, buffer size " + << resource_buffer->size(); +#endif // Client()->OnGetImageDataForUrl(url, 0, nullptr); std::move(callback).Run(0, base::ReadOnlySharedMemoryRegion()); return; diff --git a/blink/renderer/core/fullscreen/fullscreen.cc b/blink/renderer/core/fullscreen/fullscreen.cc index 33ec3d7e5722a3a71674055f2dd3936265c78539..546a25882a72e86d23cae79aee7e25245ecf3c55 100644 --- a/blink/renderer/core/fullscreen/fullscreen.cc +++ b/blink/renderer/core/fullscreen/fullscreen.cc @@ -697,6 +697,13 @@ ScriptPromise Fullscreen::RequestFullscreen(Element& pending, << pending.localName() << ", CountFullscreenInTopLayer = " << CountFullscreenInTopLayer(pending.GetDocument()); #endif // OHOS_MEDIA + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::RequestFullscreen localName = " + << pending.localName() << ", CountFullscreenInTopLayer = " + << CountFullscreenInTopLayer(pending.GetDocument()); +#endif + RequestFullscreenScope scope; // 1. Let |pending| be the context object. @@ -985,6 +992,11 @@ ScriptPromise Fullscreen::ExitFullscreen(Document& doc, #ifdef OHOS_MEDIA LOG(WARNING) << "OhMedia::ExitFullscreen"; #endif // OHOS_MEDIA + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::ExitFullscreen"; +#endif + // 1. Let |promise| be a new promise. // ScriptPromiseResolver is allocated after step 2. ScriptPromiseResolver* resolver = nullptr; @@ -1070,6 +1082,11 @@ void Fullscreen::DidExitFullscreen(Document& document) { #ifdef OHOS_MEDIA LOG(WARNING) << "OhMedia::DidExitFullscreen"; #endif // OHOS_MEDIA + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::DidExitFullscreen"; +#endif + // If this is a response to an ExitFullscreen call then // continue exiting. Otherwise call FullyExitFullscreen. Fullscreen& fullscreen = From(*document.domWindow()); diff --git a/blink/renderer/core/html/media/html_media_element.cc b/blink/renderer/core/html/media/html_media_element.cc index fbba2ca2e9b919e115a9f479a103d3b78a65f24b..7c7cfd3e143356e539d194375c5e1471f733e3ec 100644 --- a/blink/renderer/core/html/media/html_media_element.cc +++ b/blink/renderer/core/html/media/html_media_element.cc @@ -407,6 +407,9 @@ float PageConstraintInitalScale(const Document& document) { scale = page->GetPageScaleConstraintsSet().FinalConstraints().initial_scale; } else { LOG(INFO) << "using default scale 1.0"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "using default scale 1.0"; +#endif } return scale; } @@ -918,6 +921,9 @@ void HTMLMediaElement::ScheduleEvent(const AtomicString& event_name) { event_name == event_type_names::kSeeking || event_name == event_type_names::kStalled) { LOG(INFO) << "OhMedia::ScheduleEvent(" << *this << ") " << event_name; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::ScheduleEvent(" << *this << ") " << event_name; +#endif } #endif // OHOS_MEDIA } @@ -1384,6 +1390,9 @@ void HTMLMediaElement::LoadResource(const WebMediaPlayerSource& source, #ifdef OHOS_MEDIA } else { LOG(WARNING) << "OhMedia::LoadResource source is not url"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::LoadResource source is not url"; +#endif #endif // OHOS_MEDIA } @@ -1969,6 +1978,10 @@ void HTMLMediaElement::MediaLoadingFailed(WebMediaPlayer::NetworkState error, #ifdef OHOS_MEDIA LOG(INFO) << "OhMedia::MediaLoadingFailed error = " << (int)error << ", input_message = " << input_message << ")"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::MediaLoadingFailed error = " << (int)error + << ", input_message = " << input_message << ")"; +#endif #endif // OHOS_MEDIA bool should_be_opaque = MediaShouldBeOpaque(); @@ -2835,6 +2848,9 @@ ScriptPromise HTMLMediaElement::playForBindings(ScriptState* script_state) { #ifdef OHOS_MEDIA LOG(INFO) << "OhMedia::playForBindings(" << *this << ")"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::playForBindings(" << *this << ")"; +#endif #endif // OHOS_MEDIA absl::optional code = Play(); @@ -2944,6 +2960,9 @@ void HTMLMediaElement::pause() { #ifdef OHOS_MEDIA LOG(WARNING) << "OhMedia::pause"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::pause"; +#endif #endif // OHOS_MEDIA // When updating pause, be sure to update PauseToLetDescriptionFinish(). @@ -4003,10 +4022,18 @@ void HTMLMediaElement::UpdatePlayState(bool pause_speech /* = true */) { pause(); LOG(INFO) << "UpdatePlayState document is hidden, video do not " "be allow to play"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "UpdatePlayState document is hidden, video do not " + "be allow to play"; +#endif } } LOG(WARNING) << "OhMedia::UpdatePlayState should_be_playing = " << should_be_playing << ",is_playing = " << is_playing; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::UpdatePlayState should_be_playing = " + << should_be_playing << ",is_playing = " << is_playing; +#endif #endif // OHOS_MEDIA_POLICY if (should_be_playing) { @@ -5192,6 +5219,11 @@ std::string HTMLMediaElement::GetOutgoingReferrerString() { void HTMLMediaElement::UpdatePlaybackStatus(uint32_t status) { LOG(INFO) << "UpdatePlaybackStatus(" << status << "), paused_[" << paused_ << "]"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "UpdatePlaybackStatus(" << status << "), paused_[" << paused_ << "]"; +#endif + base::AutoReset resetter(&played_by_custom_mp_, true); if (paused_ == !status) { return; @@ -5229,6 +5261,11 @@ gfx::Rect HTMLMediaElement::GetVideoRect() { ToFlooredSize(layout_box->Size())); } LOG(INFO) << "using default vidoe size"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "using default vidoe size"; +#endif + return gfx::Rect(LayoutReplaced::kDefaultWidth, LayoutReplaced::kDefaultHeight); } diff --git a/blink/renderer/core/input/gesture_manager.cc b/blink/renderer/core/input/gesture_manager.cc index 7e6071c83dea43001a5a4f2708e1e6ab08a9dc9a..bb408aae1d006e973367b59264e5841435f4af84 100644 --- a/blink/renderer/core/input/gesture_manager.cc +++ b/blink/renderer/core/input/gesture_manager.cc @@ -522,6 +522,9 @@ WebInputEventResult GestureManager::HandleGestureLongPress( WebInputEventResult GestureManager::HandleGestureDragLongPress( const GestureEventWithHitTestResults& targeted_event) { LOG(INFO) << "DragDrop HandleGestureDragLongPress"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "DragDrop HandleGestureDragLongPress"; +#endif const WebGestureEvent& gesture_event = targeted_event.Event(); // FIXME: Ideally we should try to remove the extra mouse-specific hit-tests diff --git a/blink/renderer/core/loader/base_fetch_context.cc b/blink/renderer/core/loader/base_fetch_context.cc index 429d26866aaeae7a1bf426901568b96e8e0259c8..a35ad703d77d85313d65202aea56fc6c1af56423 100644 --- a/blink/renderer/core/loader/base_fetch_context.cc +++ b/blink/renderer/core/loader/base_fetch_context.cc @@ -34,6 +34,10 @@ #include "third_party/blink/renderer/platform/weborigin/scheme_registry.h" #include "third_party/blink/renderer/platform/weborigin/security_policy.h" +#ifdef OHOS_LOGGER_REPORT +#include "url/ohos/log_utils.h" +#endif + namespace { // Creates a serialized AtomicString header value out of the input string, using @@ -120,6 +124,10 @@ BaseFetchContext::CanRequestBasedOnSubresourceFilterOnly( type); } LOG(INFO) << "[User AdBlock] Subresource request blocked : ***"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "[User AdBlock] Subresource request blocked : " + << url::LogUtils::ConvertUrlWithMask(url.GetString().Utf8()); +#endif return ResourceRequestBlockedReason::kSubresourceFilter; } #endif @@ -726,12 +734,24 @@ BaseFetchContext::CanRequestInternal( !GetSubresourceFilter()->AllowLoad(url, request_context, reporting_disposition))) { LOG(WARNING) << "[AdBlock] Subresource request blocked : ***"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "[AdBlock] Subresource request blocked : " + << url::LogUtils::ConvertUrlWithMask(url.GetString().Utf8()); +#endif + return ResourceRequestBlockedReason::kSubresourceFilter; } if ((GetUserSubresourceFilter() && !GetUserSubresourceFilter()->AllowLoad(url, request_context, reporting_disposition))) { LOG(WARNING) << "[User AdBlock] Subresource request blocked : ***"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "[User AdBlock] Subresource request blocked : " + << url::LogUtils::ConvertUrlWithMask(url.GetString().Utf8()); +#endif + return ResourceRequestBlockedReason::kSubresourceFilter; } #else @@ -739,6 +759,12 @@ BaseFetchContext::CanRequestInternal( if (!GetSubresourceFilter()->AllowLoad(url, request_context, reporting_disposition)) { LOG(WARNING) << "[AdBlock] Subresource request blocked : ***"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "[AdBlock] Subresource request blocked : " + << url::LogUtils::ConvertUrlWithMask(url.GetString().Utf8()); +#endif + return ResourceRequestBlockedReason::kSubresourceFilter; } } diff --git a/blink/renderer/core/loader/document_loader.cc b/blink/renderer/core/loader/document_loader.cc index 5d7b727f80af32b59968f87ce784b8c9470a536e..b22b062eda61c54d9f766342eb80258a42465061 100644 --- a/blink/renderer/core/loader/document_loader.cc +++ b/blink/renderer/core/loader/document_loader.cc @@ -168,6 +168,10 @@ #include "third_party/blink/renderer/core/html/image_document.h" #endif +#ifdef OHOS_LOGGER_REPORT +#include "url/ohos/log_utils.h" +#endif + namespace blink { namespace { @@ -1657,6 +1661,10 @@ void DocumentLoader::DetachFromFrame(bool flush_microtask_queue) { #ifdef OHOS_LOG_MESSAGE LOG(INFO) << "Document loader DetachFromFrame, url: ***"; #endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Document loader DetachFromFrame, url: " + << url::LogUtils::ConvertUrlWithMask(url_.GetString().Utf8()); +#endif StopLoading(); // `frame_` may become null because this method can get re-entered. If it @@ -1864,6 +1872,10 @@ void DocumentLoader::StartLoadingResponse() { LOG(INFO) << "Document loader StartLoadingResponse, url: ***"; #endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Document loader StartLoadingResponse, url: " + << url::LogUtils::ConvertUrlWithMask(url_.GetString().Utf8()); +#endif StopLoading(); return; } @@ -3401,18 +3413,33 @@ scoped_refptr GetShareBufferForImageDocument( HTMLImageElement* element = To(document)->ImageElement(); if (!element) { LOG(ERROR) << "GetShareBufferForImageDocument, element is null"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "GetShareBufferForImageDocument, element is null"; +#endif + return nullptr; } ImageResourceContent* content = element->CachedImage(); if (!content) { LOG(ERROR) << "GetShareBufferForImageDocument, content is null"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "GetShareBufferForImageDocument, content is null"; +#endif + return nullptr; } blink::Image* image = content->GetImage(); if (!image || image->IsNull()) { LOG(ERROR) << "GetShareBufferForImageDocument, image is null"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(ERROR) << "GetShareBufferForImageDocument, image is null"; +#endif + return nullptr; } diff --git a/blink/renderer/core/loader/frame_loader.cc b/blink/renderer/core/loader/frame_loader.cc index 2fc545f4e7fe8f4b7ea603cf05ca0a5edd785958..5ee739f9c72560e4eaa41d46fe859b8817b52e88 100644 --- a/blink/renderer/core/loader/frame_loader.cc +++ b/blink/renderer/core/loader/frame_loader.cc @@ -132,6 +132,10 @@ #include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" +#ifdef OHOS_LOGGER_REPORT +#include "url/ohos/log_utils.h" +#endif + namespace blink { namespace { @@ -1122,6 +1126,11 @@ void FrameLoader::CommitNavigation( LOG(INFO) << "Frame loader CommitNavigation, url: ***"; #endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Frame loader CommitNavigation, url: " + << url::LogUtils::ConvertUrlWithMask( + navigation_params->url.GetString().Utf8()); +#endif if (!DetachDocument()) { DCHECK(!is_provisional); return; @@ -1243,6 +1252,11 @@ void FrameLoader::StopAllLoaders(bool abort_client) { #ifdef OHOS_LOG_MESSAGE if (document_loader_) { LOG(INFO) << "Frame loader StopAllLoaders, url: ***"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Frame loader StopAllLoaders, url: " + << url::LogUtils::ConvertUrlWithMask( + frame_->GetDocument()->Url().GetString().Utf8()); +#endif document_loader_->StopLoading(); } #else diff --git a/blink/renderer/core/page/drag_controller.cc b/blink/renderer/core/page/drag_controller.cc index a9cf8d369c076d66bccd6c38e7b94cb7aaaf473e..d24e6101fc44ebc844a9dea393ca6aa43d92581b 100644 --- a/blink/renderer/core/page/drag_controller.cc +++ b/blink/renderer/core/page/drag_controller.cc @@ -1130,6 +1130,9 @@ static std::unique_ptr ClippedDragImageForImage( gfx::Size image_size = image->Size(respect_orientation); if (image_size.IsEmpty()) { LOG(INFO) << "DragDrop Try to get clipped drag image failed, the size is empty"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "DragDrop Try to get clipped drag image failed, the size is empty"; +#endif return nullptr; } @@ -1247,6 +1250,12 @@ std::unique_ptr DragImageForImage( LOG(WARNING) << "The image (" << image_size.width() << "," << image_size.height() << ") is too big to support drag"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "The image (" + << image_size.width() << "," << image_size.height() + << ") is too big to support drag"; +#endif } #endif return DragImage::Create(image.get(), respect_orientation, diff --git a/blink/renderer/core/page/drag_image.cc b/blink/renderer/core/page/drag_image.cc index f97bd7a198060083b97a4bedd1c1f86d4ee30c94..6a579733f469260137efbaeda6be770e5f2cbe0d 100644 --- a/blink/renderer/core/page/drag_image.cc +++ b/blink/renderer/core/page/drag_image.cc @@ -143,12 +143,22 @@ std::unique_ptr DragImage::CreateClippedByVisualViewport( gfx::Vector2dF image_scale) { if (!image) { LOG(WARNING) << "DragDrop Invalid image input"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "DragDrop Invalid image input"; +#endif + return nullptr; } PaintImage paint_image = image->PaintImageForCurrentFrame(); if (!paint_image) { LOG(WARNING) << "DragDrop Invalid paint image"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "DragDrop Invalid paint image"; +#endif + return nullptr; } @@ -164,6 +174,11 @@ std::unique_ptr DragImage::CreateClippedByVisualViewport( interpolation_quality); if (!paint_image || !paint_image.GetSwSkImage()->asLegacyBitmap(&bm)) { LOG(WARNING) << "DragDrop Invalid paint image or bitmap after clip"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "DragDrop Invalid paint image or bitmap after clip"; +#endif + return nullptr; } (void)device_scale_factor; diff --git a/blink/renderer/core/paint/timing/paint_timing.cc b/blink/renderer/core/paint/timing/paint_timing.cc index 5df3bae43b016c26e6d420d8410c627653798eef..2e784828b7c4ff3ee71d5c358a5a714aa4cfab8b 100644 --- a/blink/renderer/core/paint/timing/paint_timing.cc +++ b/blink/renderer/core/paint/timing/paint_timing.cc @@ -130,6 +130,11 @@ void PaintTiming::MarkFirstContentfulPaint() { #ifdef OHOS_LOG_MESSAGE LOG(INFO) << "event_message: MarkFirstContentfulPaint"; #endif + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "event_message: MarkFirstContentfulPaint"; +#endif + SetFirstContentfulPaint(clock_->NowTicks()); } diff --git a/blink/renderer/core/workers/worker_or_worklet_global_scope.cc b/blink/renderer/core/workers/worker_or_worklet_global_scope.cc index 01172fd468f9820aefd28f03995014b05483b3e1..2d6f2d3d435ae934e04e85ef5960d0756bf0f144 100644 --- a/blink/renderer/core/workers/worker_or_worklet_global_scope.cc +++ b/blink/renderer/core/workers/worker_or_worklet_global_scope.cc @@ -465,6 +465,10 @@ void WorkerOrWorkletGlobalScope::Dispose() { if (resource_fetchers_.size()) { LOG(INFO) << "Worker or WorkletGlobalScope Dispose, the size of resource_fetchers_: " << resource_fetchers_.size(); +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Worker or WorkletGlobalScope Dispose, the size of resource_fetchers_: " + << resource_fetchers_.size(); +#endif } #endif diff --git a/blink/renderer/modules/media_controls/media_controls_impl.cc b/blink/renderer/modules/media_controls/media_controls_impl.cc index cb176296f6c470cc2476fff12fb692ab8fe0c18d..9beb6c6d6dae2a98093ae8ff131f23ba52271ec9 100644 --- a/blink/renderer/modules/media_controls/media_controls_impl.cc +++ b/blink/renderer/modules/media_controls/media_controls_impl.cc @@ -918,6 +918,9 @@ void MediaControlsImpl::Reset() { #ifdef OHOS_MEDIA LOG(INFO) << "OhMedia::pause"; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::pause"; +#endif MediaElement().pause(); } @@ -1065,6 +1068,10 @@ void MediaControlsImpl::MakeOpaque() { LOG(WARNING) << "OhMedia::MakeOpaque"; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::MakeOpaque"; +#endif + ShowCursor(); #if defined(OHOS_MEDIA) if (MediaElement().IsFullscreen()) { diff --git a/blink/renderer/modules/netinfo/network_information.cc b/blink/renderer/modules/netinfo/network_information.cc index 30bfe76704b3f270125ad5107aac7b93610ce948..551b4045d5bd9ef091f7dd08504a4595c0754bc6 100644 --- a/blink/renderer/modules/netinfo/network_information.cc +++ b/blink/renderer/modules/netinfo/network_information.cc @@ -20,6 +20,13 @@ #include "third_party/blink/renderer/platform/weborigin/kurl.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" +#ifdef OHOS_LOGGER_REPORT +#include "base/base_switches.h" +#include "base/command_line.h" +#include "content/public/common/content_switches.h" +#include "url/ohos/log_utils.h" +#endif + namespace blink { namespace { @@ -182,7 +189,24 @@ void NetworkInformation::ConnectionChange( bool type_changed = RuntimeEnabledFeatures::NetInfoDownlinkMaxEnabled() && (type_ != type || downlink_max_mbps_ != downlink_max_mbps); - +#ifdef OHOS_LOGGER_REPORT + if (type_changed && base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableLoggerReport)) { + LOG_FEEDBACK(INFO) << "NetworkInformation::ConnectionChange, type_ " + << static_cast(type_) << ", type " << static_cast(type) + << ", downlink_max_mbps_ " << downlink_max_mbps_ + << ", downlink_max_mbps " << downlink_max_mbps + << ", network_quality_estimate_changed " + << network_quality_estimate_changed << ", save_data_ " + << save_data_ << ", save_data " << save_data + << ", effective_type_ " << static_cast(effective_type_) + << ", effective_type " << static_cast(effective_type) + << ", http_rtt_msec_ " << http_rtt_msec_ << ", new_http_rtt_msec " + << new_http_rtt_msec << ", downlink_mbps_ " << downlink_mbps_ + << ", new_downlink_mbps " << new_downlink_mbps << ", host: " + << url::LogUtils::ConvertUrlWithMask(host.Utf8()); + } +#endif type_ = type; downlink_max_mbps_ = downlink_max_mbps; if (network_quality_estimate_changed) { diff --git a/blink/renderer/modules/screen_orientation/screen_orientation.cc b/blink/renderer/modules/screen_orientation/screen_orientation.cc index a7776ff0da0c06a5945b6ccacf8bf8adf58ced75..c87c1b8e612be0edd58ba25cbe7e83fc90cd8032 100644 --- a/blink/renderer/modules/screen_orientation/screen_orientation.cc +++ b/blink/renderer/modules/screen_orientation/screen_orientation.cc @@ -144,6 +144,9 @@ ScriptPromise ScreenOrientation::lock(ScriptState* state, #ifdef OHOS_MEDIA LOG(INFO) << "OhMedia::ScreenOrientation lock = " << lock_string; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::ScreenOrientation lock = " << lock_string; +#endif if (!state->ContextIsValid() || !Controller()) { exception_state.ThrowDOMException( DOMExceptionCode::kInvalidStateError, diff --git a/blink/renderer/platform/graphics/image.cc b/blink/renderer/platform/graphics/image.cc index 1fbc3fa2d5a3897fb28a4e384f1d33343b2b8792..16fba64fc016305c32376fb81bc3874f14608fca 100644 --- a/blink/renderer/platform/graphics/image.cc +++ b/blink/renderer/platform/graphics/image.cc @@ -206,6 +206,11 @@ PaintImage Image::ClipResizeAndOrientImage( if (size.IsEmpty()) { LOG(INFO) << "DragDrop Clip resize and orient image but the size is empty."; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "DragDrop Clip resize and orient image but the size is empty."; +#endif + return PaintImage(); } @@ -213,6 +218,11 @@ PaintImage Image::ClipResizeAndOrientImage( clip_rect.width() == image.width() && clip_rect.height() == image.height()) { LOG(INFO) << "DragDrop Nothing to adjust drag image, just use the original"; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "DragDrop Nothing to adjust drag image, just use the original"; +#endif + DCHECK_EQ(image.width(), size.width()); DCHECK_EQ(image.height(), size.height()); return image; @@ -225,6 +235,12 @@ PaintImage Image::ClipResizeAndOrientImage( if (!surface) { LOG(WARNING) << "DragDrop Make a SkImageInfo with w=" << clip_size.width() << ", h=" << clip_size.height() << " failed."; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "DragDrop Make a SkImageInfo with w=" << clip_size.width() + << ", h=" << clip_size.height() << " failed."; +#endif + return PaintImage(); } @@ -248,6 +264,14 @@ PaintImage Image::ClipResizeAndOrientImage( << ") from intrinsic(" << image.width() << "*" << image.height() << ") to visual size(" << clip_size.width() << "*" << clip_size.height() << "), opacity=" << opacity; + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "DragDrop Create a clipped drag image(" << clip_rect.ToString() + << ") from intrinsic(" << image.width() << "*" << image.height() + << ") to visual size(" << clip_size.width() << "*" + << clip_size.height() << "), opacity=" << opacity; +#endif + return PaintImageBuilder::WithProperties(std::move(image)) .set_image(surface->makeImageSnapshot(), PaintImage::GetNextContentId()) .TakePaintImage(); diff --git a/blink/renderer/platform/loader/fetch/resource_fetcher.cc b/blink/renderer/platform/loader/fetch/resource_fetcher.cc index 3e4fa3d3e54da47d24ccae69ea1f907c87d5aee6..e82a6062b2cc3b83472c2db914209a1f38cf84d3 100644 --- a/blink/renderer/platform/loader/fetch/resource_fetcher.cc +++ b/blink/renderer/platform/loader/fetch/resource_fetcher.cc @@ -2652,6 +2652,11 @@ void ResourceFetcher::StopFetchingInternal(StopFetchingTarget target) { LOG(INFO) << "Resource fetcher StopFetchingInternal, the size of loaders_to_cancel: " << loaders_to_cancel.size() << ", target: " << static_cast(target); +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "Resource fetcher StopFetchingInternal, the size of loaders_to_cancel: " + << loaders_to_cancel.size() << ", target: " + << static_cast(target); +#endif } #endif diff --git a/blink/renderer/platform/loader/fetch/resource_loader.cc b/blink/renderer/platform/loader/fetch/resource_loader.cc index c9a0ea5c5d1e3461c4c4243a8072ed4e1f4623ab..b68034b63ddc7e175bba885e7caadf8d225ad164 100644 --- a/blink/renderer/platform/loader/fetch/resource_loader.cc +++ b/blink/renderer/platform/loader/fetch/resource_loader.cc @@ -101,6 +101,10 @@ #include "base/logging.h" #endif +#ifdef OHOS_LOGGER_REPORT +#include "url/ohos/log_utils.h" +#endif + namespace blink { namespace { @@ -549,6 +553,11 @@ bool ResourceLoader::ShouldFetchCodeCache() { LOG(DEBUG) << "Resource loader if scheme:" << request.Url().Protocol().Utf8().c_str() << " supports code cache:" << is_protocal_support_code_cache; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(DEBUG) << "Resource loader if scheme: " + << url::LogUtils::ConvertUrlWithMask(request.Url().Protocol().Utf8().c_str()) + << " supports code cache:" << is_protocal_support_code_cache; +#endif #endif if (!request.Url().ProtocolIsInHTTPFamily() && !should_use_source_hash #if BUILDFLAG(IS_OHOS) @@ -684,6 +693,11 @@ void ResourceLoader::DidFailLoadingBody() { void ResourceLoader::DidCancelLoadingBody() { #ifdef OHOS_LOG_MESSAGE LOG(WARNING) << "Resource loader DidCancelLoadingBody, url: ***"; +#endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "Resource loader DidCancelLoadingBody, url: " + << url::LogUtils::ConvertUrlWithMask( + resource_->LastResourceRequest().Url().GetString().Utf8()); #endif Cancel(); } @@ -696,6 +710,11 @@ void ResourceLoader::StartWith(const ResourceRequestHead& request) { fetcher_->GetProperties().FreezeMode() != LoaderFreezeMode::kNone) { #ifdef OHOS_LOG_MESSAGE LOG(WARNING) << "Resource loader StartWith, url: ***"; +#endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "Resource loader StartWith, url: " + << url::LogUtils::ConvertUrlWithMask( + resource_->LastResourceRequest().Url().GetString().Utf8()); #endif // TODO(yuzus): Evict bfcache if necessary. Cancel(); @@ -809,6 +828,11 @@ void ResourceLoader::CancelTimerFired(TimerBase*) { #ifdef OHOS_LOG_MESSAGE if (loader_ && !resource_->HasClientsOrObservers()) { LOG(WARNING) << "Resource loader CancelTimerFired, url *"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "Resource loader CancelTimerFired, url " + << url::LogUtils::ConvertUrlWithMask( + resource_->LastResourceRequest().Url().GetString().Utf8()); +#endif Cancel(); } #else diff --git a/blink/renderer/platform/media/multi_buffer.cc b/blink/renderer/platform/media/multi_buffer.cc index 0aa9a7cd87f30011fe89d4eb80d4bb0853b3c3c9..0865ffba6546dfc7c1d592b83184aa724eff75fe 100644 --- a/blink/renderer/platform/media/multi_buffer.cc +++ b/blink/renderer/platform/media/multi_buffer.cc @@ -223,6 +223,11 @@ void MultiBuffer::AddReader(const BlockId& pos, Reader* reader) { writer_index_[pos] = CreateWriter(pos, is_client_audio_element_); provider = writer_index_[pos].get(); } +#ifdef OHOS_LOGGER_REPORT + if (!provider) { + LOG_FEEDBACK(INFO) << "VLO AddReader error: provider=null"; + } +#endif provider->SetDeferred(false); } diff --git a/blink/renderer/platform/media/web_media_player_impl.cc b/blink/renderer/platform/media/web_media_player_impl.cc index 3acf4226edd6bad95702e9706f0abc9c0be1e152..999cb3f24223aa17173f1c20db7805d85d8738a1 100644 --- a/blink/renderer/platform/media/web_media_player_impl.cc +++ b/blink/renderer/platform/media/web_media_player_impl.cc @@ -890,6 +890,9 @@ void WebMediaPlayerImpl::DoLoad(LoadType load_type, #if defined(OHOS_CUSTOM_VIDEO_PLAYER) if (loaded_url_.SchemeIs(media::remoting::kRemotingScheme)) { LOG(INFO) << "disable custom renderer for remote scheme"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "disable custom renderer for remote scheme"; +#endif should_create_custom_renderer_ = false; should_overlay_ = false; } @@ -1121,6 +1124,10 @@ void WebMediaPlayerImpl::DoSeek(base::TimeDelta time, bool time_updated) { LOG(WARNING) << "OhMedia::DoSeek seconds = " << time.InSecondsF(); #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::DoSeek seconds = " << time.InSecondsF(); +#endif + ReadyState old_state = ready_state_; if (ready_state_ > WebMediaPlayer::kReadyStateHaveMetadata) SetReadyState(WebMediaPlayer::kReadyStateHaveMetadata); @@ -1206,6 +1213,10 @@ void WebMediaPlayerImpl::SetVolume(double volume) { LOG(INFO) << "OhMedia::SetVolume volume is :" << volume; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::SetVolume volume is :" << volume; +#endif + if (delegate_has_audio_ != HasUnmutedAudio()) { delegate_has_audio_ = HasUnmutedAudio(); media::MediaContentType content_type = GetMediaContentType(); @@ -1960,6 +1971,10 @@ void WebMediaPlayerImpl::RestartForHls() { void WebMediaPlayerImpl::RestartForPrimitive() { LOG(INFO) << "RestartForPrimitive, primitive_renderer_type_[" << GetRendererName(primitive_renderer_type_) << "]"; +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "RestartForPrimitive, primitive_renderer_type_[" + << GetRendererName(primitive_renderer_type_) << "]"; +#endif DCHECK(main_task_runner_->BelongsToCurrentThread()); should_create_custom_renderer_= false; should_overlay_ = false; @@ -1981,6 +1996,10 @@ void WebMediaPlayerImpl::OnError(media::PipelineStatus status) { LOG(INFO) << "OhMedia::OnError PipelineStatus = " << status; #endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::OnError PipelineStatus = " << status; +#endif + if (suppress_destruction_errors_) return; @@ -2299,6 +2318,11 @@ void WebMediaPlayerImpl::OnBufferingStateChangeInternal( << " state:" << BufferingStateToString(state, reason); #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::OnBufferingStateChangeInternal(" << (void*)this << ")" + << " state:" << BufferingStateToString(state, reason); +#endif + DCHECK(main_task_runner_->BelongsToCurrentThread()); // Ignore buffering state changes caused by back-to-back seeking, so as not @@ -2637,6 +2661,11 @@ void WebMediaPlayerImpl::OnFrameHidden() { << " delegate_id_:" << delegate_id_; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::WebMediaPlayerImpl::OnFrameHidden()" + << " delegate_id_:" << delegate_id_; +#endif + // Backgrounding a video requires a user gesture to resume playback. if (IsHidden()) video_locked_when_paused_when_hidden_ = true; @@ -2687,6 +2716,11 @@ void WebMediaPlayerImpl::OnFrameShown() { << " delegate_id_:" << delegate_id_; #endif // OHOS_MEDIA +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << "OhMedia::WebMediaPlayerImpl::OnFrameShown()" + << " delegate_id_:" << delegate_id_; +#endif + // Foreground videos don't require user gesture to continue playback. video_locked_when_paused_when_hidden_ = false; @@ -2711,6 +2745,11 @@ void WebMediaPlayerImpl::OnFrameShown() { #ifdef OHOS_MEDIA LOG(WARNING) << "OhMedia::OnFrameShown ResumePlayback()"; #endif // OHOS_MEDIA + +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(WARNING) << "OhMedia::OnFrameShown ResumePlayback()"; +#endif + client_->ResumePlayback(); // Calls UpdatePlayState() so return afterwards. return; } @@ -4076,6 +4115,11 @@ void WebMediaPlayerImpl::OnFirstFrame(base::TimeTicks frame_time) { << " elapsed:" << elapsed.InSecondsF(); #endif +#ifdef OHOS_LOGGER_REPORT + LOG_FEEDBACK(INFO) << __func__ << " OhMedia::delegate_id_:" << delegate_id_ + << " elapsed:" << elapsed.InSecondsF(); +#endif + media::PipelineStatistics ps = GetPipelineStatistics(); if (client_) { client_->OnFirstFrame(frame_time, ps.video_bytes_decoded); diff --git a/blink/renderer/platform/widget/input/widget_base_input_handler.cc b/blink/renderer/platform/widget/input/widget_base_input_handler.cc index f129dff2b6c558ab3cda51ff10c0491fbee6b686..f14c72746a1e2565780cd17c7feabe98c3d3b3eb 100644 --- a/blink/renderer/platform/widget/input/widget_base_input_handler.cc +++ b/blink/renderer/platform/widget/input/widget_base_input_handler.cc @@ -36,6 +36,12 @@ #include #endif +#ifdef OHOS_LOGGER_REPORT +#include "base/base_switches.h" +#include "base/command_line.h" +#include "content/public/common/content_switches.h" +#endif + using perfetto::protos::pbzero::ChromeLatencyInfo; using perfetto::protos::pbzero::TrackEvent; @@ -535,6 +541,14 @@ if (processed != WebInputEventResult::kNotHandled) { LOG(INFO) << "input event not handled by webkit: " << WebInputEvent::GetName(input_event.GetType()) << ", processed:" << static_cast(processed); +#ifdef OHOS_LOGGER_REPORT + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + ::switches::kEnableLoggerReport)) { + LOG_FEEDBACK(INFO) << "input event not handled by webkit: " + << WebInputEvent::GetName(input_event.GetType()) + << ", processed:" << static_cast(processed); + } +#endif } // Ensure all injected scrolls were handled or queue up - any remaining