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

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

Issue 1836113002: Fix accessible touch exploration inside of iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test startup on Android Created 4 years, 8 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); 444 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
445 445
446 // Resets the accessibility serializer in the renderer. 446 // Resets the accessibility serializer in the renderer.
447 void AccessibilityReset(); 447 void AccessibilityReset();
448 448
449 // Turn on accessibility testing. The given callback will be run 449 // Turn on accessibility testing. The given callback will be run
450 // every time an accessibility notification is received from the 450 // every time an accessibility notification is received from the
451 // renderer process, and the accessibility tree it sent can be 451 // renderer process, and the accessibility tree it sent can be
452 // retrieved using GetAXTreeForTesting(). 452 // retrieved using GetAXTreeForTesting().
453 void SetAccessibilityCallbackForTesting( 453 void SetAccessibilityCallbackForTesting(
454 const base::Callback<void(ui::AXEvent, int)>& callback); 454 const base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>&
455 callback);
455 456
456 // Called when the metadata about the accessibility tree for this frame 457 // Called when the metadata about the accessibility tree for this frame
457 // changes due to a browser-side change, as opposed to due to an IPC from 458 // changes due to a browser-side change, as opposed to due to an IPC from
458 // a renderer. 459 // a renderer.
459 void UpdateAXTreeData(); 460 void UpdateAXTreeData();
460 461
461 // Set the AX tree ID of the embedder RFHI, if this is a browser plugin guest. 462 // Set the AX tree ID of the embedder RFHI, if this is a browser plugin guest.
462 void set_browser_plugin_embedder_ax_tree_id( 463 void set_browser_plugin_embedder_ax_tree_id(
463 AXTreeIDRegistry::AXTreeID ax_tree_id) { 464 AXTreeIDRegistry::AXTreeID ax_tree_id) {
464 browser_plugin_embedder_ax_tree_id_ = ax_tree_id; 465 browser_plugin_embedder_ax_tree_id_ = ax_tree_id;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 const BeginNavigationParams& begin_params, 648 const BeginNavigationParams& begin_params,
648 scoped_refptr<ResourceRequestBody> body); 649 scoped_refptr<ResourceRequestBody> body);
649 void OnDispatchLoad(); 650 void OnDispatchLoad();
650 void OnAccessibilityEvents( 651 void OnAccessibilityEvents(
651 const std::vector<AccessibilityHostMsg_EventParams>& params, 652 const std::vector<AccessibilityHostMsg_EventParams>& params,
652 int reset_token); 653 int reset_token);
653 void OnAccessibilityLocationChanges( 654 void OnAccessibilityLocationChanges(
654 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 655 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
655 void OnAccessibilityFindInPageResult( 656 void OnAccessibilityFindInPageResult(
656 const AccessibilityHostMsg_FindInPageResultParams& params); 657 const AccessibilityHostMsg_FindInPageResultParams& params);
658 void OnAccessibilityChildFrameHitTestResult(const gfx::Point& point,
659 int hit_obj_id);
657 void OnAccessibilitySnapshotResponse( 660 void OnAccessibilitySnapshotResponse(
658 int callback_id, 661 int callback_id,
659 const AXContentTreeUpdate& snapshot); 662 const AXContentTreeUpdate& snapshot);
660 void OnToggleFullscreen(bool enter_fullscreen); 663 void OnToggleFullscreen(bool enter_fullscreen);
661 void OnDidStartLoading(bool to_different_document); 664 void OnDidStartLoading(bool to_different_document);
662 void OnDidStopLoading(); 665 void OnDidStopLoading();
663 void OnDidChangeLoadProgress(double load_progress); 666 void OnDidChangeLoadProgress(double load_progress);
664 void OnSerializeAsMHTMLResponse( 667 void OnSerializeAsMHTMLResponse(
665 int job_id, 668 int job_id,
666 bool success, 669 bool success,
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 AXContentTreeData ax_content_tree_data_; 904 AXContentTreeData ax_content_tree_data_;
902 905
903 // The AX tree ID of the embedder, if this is a browser plugin guest. 906 // The AX tree ID of the embedder, if this is a browser plugin guest.
904 AXTreeIDRegistry::AXTreeID browser_plugin_embedder_ax_tree_id_; 907 AXTreeIDRegistry::AXTreeID browser_plugin_embedder_ax_tree_id_;
905 908
906 // The mapping from callback id to corresponding callback for pending 909 // The mapping from callback id to corresponding callback for pending
907 // accessibility tree snapshot calls created by RequestAXTreeSnapshot. 910 // accessibility tree snapshot calls created by RequestAXTreeSnapshot.
908 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; 911 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_;
909 912
910 // Callback when an event is received, for testing. 913 // Callback when an event is received, for testing.
911 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; 914 base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>
915 accessibility_testing_callback_;
912 // The most recently received accessibility tree - for testing only. 916 // The most recently received accessibility tree - for testing only.
913 scoped_ptr<ui::AXTree> ax_tree_for_testing_; 917 scoped_ptr<ui::AXTree> ax_tree_for_testing_;
914 // Flag to not create a BrowserAccessibilityManager, for testing. If one 918 // Flag to not create a BrowserAccessibilityManager, for testing. If one
915 // already exists it will still be used. 919 // already exists it will still be used.
916 bool no_create_browser_accessibility_manager_for_testing_; 920 bool no_create_browser_accessibility_manager_for_testing_;
917 921
918 // PlzNavigate: Owns the stream used in navigations to store the body of the 922 // PlzNavigate: Owns the stream used in navigations to store the body of the
919 // response once it has started. 923 // response once it has started.
920 scoped_ptr<StreamHandle> stream_handle_; 924 scoped_ptr<StreamHandle> stream_handle_;
921 925
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 968
965 // NOTE: This must be the last member. 969 // NOTE: This must be the last member.
966 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 970 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
967 971
968 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 972 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
969 }; 973 };
970 974
971 } // namespace content 975 } // namespace content
972 976
973 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 977 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/hit_testing_browsertest.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698