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

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: Add test for JS cursor movement 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 void OnDidStartLoading(bool to_different_document); 791 void OnDidStartLoading(bool to_different_document);
792 void OnDidStopLoading(); 792 void OnDidStopLoading();
793 void OnDidChangeLoadProgress(double load_progress); 793 void OnDidChangeLoadProgress(double load_progress);
794 void OnSerializeAsMHTMLResponse( 794 void OnSerializeAsMHTMLResponse(
795 int job_id, 795 int job_id,
796 MhtmlSaveStatus save_status, 796 MhtmlSaveStatus save_status,
797 const std::set<std::string>& digests_of_uris_of_serialized_resources, 797 const std::set<std::string>& digests_of_uris_of_serialized_resources,
798 base::TimeDelta renderer_main_thread_time); 798 base::TimeDelta renderer_main_thread_time);
799 void OnSelectionChanged(const base::string16& text, 799 void OnSelectionChanged(const base::string16& text,
800 uint32_t offset, 800 uint32_t offset,
801 const gfx::Range& range); 801 const gfx::Range& range,
802 bool user_initiated);
802 void OnFocusedNodeChanged(bool is_editable_element, 803 void OnFocusedNodeChanged(bool is_editable_element,
803 const gfx::Rect& bounds_in_frame_widget); 804 const gfx::Rect& bounds_in_frame_widget);
804 void OnSetHasReceivedUserGesture(); 805 void OnSetHasReceivedUserGesture();
805 void OnSetDevToolsFrameId(const std::string& devtools_frame_id); 806 void OnSetDevToolsFrameId(const std::string& devtools_frame_id);
806 807
807 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 808 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
808 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 809 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
809 void OnHidePopup(); 810 void OnHidePopup();
810 #endif 811 #endif
811 #if defined(OS_ANDROID) 812 #if defined(OS_ANDROID)
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 1271
1271 // NOTE: This must be the last member. 1272 // NOTE: This must be the last member.
1272 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1273 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1273 1274
1274 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1275 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1275 }; 1276 };
1276 1277
1277 } // namespace content 1278 } // namespace content
1278 1279
1279 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1280 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698