| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 MhtmlSaveStatus save_status, | 2438 MhtmlSaveStatus save_status, |
| 2439 const std::set<std::string>& digests_of_uris_of_serialized_resources, | 2439 const std::set<std::string>& digests_of_uris_of_serialized_resources, |
| 2440 base::TimeDelta renderer_main_thread_time) { | 2440 base::TimeDelta renderer_main_thread_time) { |
| 2441 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( | 2441 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( |
| 2442 this, job_id, save_status, digests_of_uris_of_serialized_resources, | 2442 this, job_id, save_status, digests_of_uris_of_serialized_resources, |
| 2443 renderer_main_thread_time); | 2443 renderer_main_thread_time); |
| 2444 } | 2444 } |
| 2445 | 2445 |
| 2446 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text, | 2446 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text, |
| 2447 uint32_t offset, | 2447 uint32_t offset, |
| 2448 const gfx::Range& range) { | 2448 const gfx::Range& range, |
| 2449 bool user_initiated) { |
| 2449 has_selection_ = !text.empty(); | 2450 has_selection_ = !text.empty(); |
| 2450 GetRenderWidgetHost()->SelectionChanged(text, offset, range); | 2451 GetRenderWidgetHost()->SelectionChanged(text, offset, range, user_initiated); |
| 2451 } | 2452 } |
| 2452 | 2453 |
| 2453 void RenderFrameHostImpl::OnFocusedNodeChanged( | 2454 void RenderFrameHostImpl::OnFocusedNodeChanged( |
| 2454 bool is_editable_element, | 2455 bool is_editable_element, |
| 2455 const gfx::Rect& bounds_in_frame_widget) { | 2456 const gfx::Rect& bounds_in_frame_widget) { |
| 2456 if (!GetView()) | 2457 if (!GetView()) |
| 2457 return; | 2458 return; |
| 2458 | 2459 |
| 2459 has_focused_editable_element_ = is_editable_element; | 2460 has_focused_editable_element_ = is_editable_element; |
| 2460 // First convert the bounds to root view. | 2461 // First convert the bounds to root view. |
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3902 } | 3903 } |
| 3903 | 3904 |
| 3904 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( | 3905 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( |
| 3905 const std::string& interface_name, | 3906 const std::string& interface_name, |
| 3906 mojo::ScopedMessagePipeHandle pipe) { | 3907 mojo::ScopedMessagePipeHandle pipe) { |
| 3907 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); | 3908 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); |
| 3908 } | 3909 } |
| 3909 #endif | 3910 #endif |
| 3910 | 3911 |
| 3911 } // namespace content | 3912 } // namespace content |
| OLD | NEW |