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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2901093003: Revert of Update TextSelection for non-user initiated events (Closed)
Patch Set: Created 3 years, 7 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 // 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 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 MhtmlSaveStatus save_status, 2484 MhtmlSaveStatus save_status,
2485 const std::set<std::string>& digests_of_uris_of_serialized_resources, 2485 const std::set<std::string>& digests_of_uris_of_serialized_resources,
2486 base::TimeDelta renderer_main_thread_time) { 2486 base::TimeDelta renderer_main_thread_time) {
2487 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( 2487 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse(
2488 this, job_id, save_status, digests_of_uris_of_serialized_resources, 2488 this, job_id, save_status, digests_of_uris_of_serialized_resources,
2489 renderer_main_thread_time); 2489 renderer_main_thread_time);
2490 } 2490 }
2491 2491
2492 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text, 2492 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text,
2493 uint32_t offset, 2493 uint32_t offset,
2494 const gfx::Range& range, 2494 const gfx::Range& range) {
2495 bool user_initiated) {
2496 has_selection_ = !text.empty(); 2495 has_selection_ = !text.empty();
2497 GetRenderWidgetHost()->SelectionChanged(text, offset, range, user_initiated); 2496 GetRenderWidgetHost()->SelectionChanged(text, offset, range);
2498 } 2497 }
2499 2498
2500 void RenderFrameHostImpl::OnFocusedNodeChanged( 2499 void RenderFrameHostImpl::OnFocusedNodeChanged(
2501 bool is_editable_element, 2500 bool is_editable_element,
2502 const gfx::Rect& bounds_in_frame_widget) { 2501 const gfx::Rect& bounds_in_frame_widget) {
2503 if (!GetView()) 2502 if (!GetView())
2504 return; 2503 return;
2505 2504
2506 has_focused_editable_element_ = is_editable_element; 2505 has_focused_editable_element_ = is_editable_element;
2507 // First convert the bounds to root view. 2506 // First convert the bounds to root view.
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 } 3970 }
3972 3971
3973 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 3972 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
3974 const std::string& interface_name, 3973 const std::string& interface_name,
3975 mojo::ScopedMessagePipeHandle pipe) { 3974 mojo::ScopedMessagePipeHandle pipe) {
3976 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 3975 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
3977 } 3976 }
3978 #endif 3977 #endif
3979 3978
3980 } // namespace content 3979 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_widget_host_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698