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

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

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Suppress superfluous non-user initiated text selection events Created 3 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 // 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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 void OnDidStartLoading(bool to_different_document); 786 void OnDidStartLoading(bool to_different_document);
787 void OnDidStopLoading(); 787 void OnDidStopLoading();
788 void OnDidChangeLoadProgress(double load_progress); 788 void OnDidChangeLoadProgress(double load_progress);
789 void OnSerializeAsMHTMLResponse( 789 void OnSerializeAsMHTMLResponse(
790 int job_id, 790 int job_id,
791 MhtmlSaveStatus save_status, 791 MhtmlSaveStatus save_status,
792 const std::set<std::string>& digests_of_uris_of_serialized_resources, 792 const std::set<std::string>& digests_of_uris_of_serialized_resources,
793 base::TimeDelta renderer_main_thread_time); 793 base::TimeDelta renderer_main_thread_time);
794 void OnSelectionChanged(const base::string16& text, 794 void OnSelectionChanged(const base::string16& text,
795 uint32_t offset, 795 uint32_t offset,
796 const gfx::Range& range); 796 const gfx::Range& range,
797 bool user_initiated);
797 void OnFocusedNodeChanged(bool is_editable_element, 798 void OnFocusedNodeChanged(bool is_editable_element,
798 const gfx::Rect& bounds_in_frame_widget); 799 const gfx::Rect& bounds_in_frame_widget);
799 void OnSetHasReceivedUserGesture(); 800 void OnSetHasReceivedUserGesture();
800 void OnSetDevToolsFrameId(const std::string& devtools_frame_id); 801 void OnSetDevToolsFrameId(const std::string& devtools_frame_id);
801 802
802 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 803 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
803 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 804 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
804 void OnHidePopup(); 805 void OnHidePopup();
805 #endif 806 #endif
806 #if defined(OS_ANDROID) 807 #if defined(OS_ANDROID)
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1262
1262 // NOTE: This must be the last member. 1263 // NOTE: This must be the last member.
1263 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1264 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1264 1265
1265 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1266 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1266 }; 1267 };
1267 1268
1268 } // namespace content 1269 } // namespace content
1269 1270
1270 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1271 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698