OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 FOR_EACH_OBSERVER( | 2809 FOR_EACH_OBSERVER( |
2810 RenderViewObserver, | 2810 RenderViewObserver, |
2811 observers_, | 2811 observers_, |
2812 DraggableRegionsChanged(webview()->mainFrame())); | 2812 DraggableRegionsChanged(webview()->mainFrame())); |
2813 } | 2813 } |
2814 | 2814 |
2815 void RenderViewImpl::pageImportanceSignalsChanged() { | 2815 void RenderViewImpl::pageImportanceSignalsChanged() { |
2816 if (!webview() || !main_render_frame_) | 2816 if (!webview() || !main_render_frame_) |
2817 return; | 2817 return; |
2818 | 2818 |
2819 const auto& web_signals = webview()->pageImportanceSignals(); | 2819 auto* web_signals = webview()->pageImportanceSignals(); |
2820 | 2820 |
2821 PageImportanceSignals signals; | 2821 PageImportanceSignals signals; |
2822 signals.had_form_interaction = web_signals->hadFormInteraction(); | 2822 signals.had_form_interaction = web_signals->hadFormInteraction(); |
2823 | 2823 |
2824 main_render_frame_->Send(new FrameHostMsg_UpdatePageImportanceSignals( | 2824 main_render_frame_->Send(new FrameHostMsg_UpdatePageImportanceSignals( |
2825 main_render_frame_->GetRoutingID(), signals)); | 2825 main_render_frame_->GetRoutingID(), signals)); |
2826 } | 2826 } |
2827 | 2827 |
2828 #if defined(OS_ANDROID) | 2828 #if defined(OS_ANDROID) |
2829 WebContentDetectionResult RenderViewImpl::detectContentAround( | 2829 WebContentDetectionResult RenderViewImpl::detectContentAround( |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3101 return render_frame->focused_pepper_plugin(); | 3101 return render_frame->focused_pepper_plugin(); |
3102 } | 3102 } |
3103 frame = frame->traverseNext(false); | 3103 frame = frame->traverseNext(false); |
3104 } | 3104 } |
3105 | 3105 |
3106 return nullptr; | 3106 return nullptr; |
3107 } | 3107 } |
3108 #endif | 3108 #endif |
3109 | 3109 |
3110 } // namespace content | 3110 } // namespace content |
OLD | NEW |