Chromium Code Reviews| 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 #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 Loading... | |
| 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*, |
| 455 ui::AXEvent, | |
| 456 int)>& callback); | |
| 455 | 457 |
| 456 // Called when the metadata about the accessibility tree for this frame | 458 // 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 | 459 // changes due to a browser-side change, as opposed to due to an IPC from |
| 458 // a renderer. | 460 // a renderer. |
| 459 void UpdateAXTreeData(); | 461 void UpdateAXTreeData(); |
| 460 | 462 |
| 461 // Send a message to the render process to change text track style settings. | 463 // Send a message to the render process to change text track style settings. |
| 462 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params); | 464 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params); |
| 463 | 465 |
| 464 // Returns a snapshot of the accessibility tree received from the | 466 // Returns a snapshot of the accessibility tree received from the |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 635 const BeginNavigationParams& begin_params, | 637 const BeginNavigationParams& begin_params, |
| 636 scoped_refptr<ResourceRequestBody> body); | 638 scoped_refptr<ResourceRequestBody> body); |
| 637 void OnDispatchLoad(); | 639 void OnDispatchLoad(); |
| 638 void OnAccessibilityEvents( | 640 void OnAccessibilityEvents( |
| 639 const std::vector<AccessibilityHostMsg_EventParams>& params, | 641 const std::vector<AccessibilityHostMsg_EventParams>& params, |
| 640 int reset_token); | 642 int reset_token); |
| 641 void OnAccessibilityLocationChanges( | 643 void OnAccessibilityLocationChanges( |
| 642 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 644 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
| 643 void OnAccessibilityFindInPageResult( | 645 void OnAccessibilityFindInPageResult( |
| 644 const AccessibilityHostMsg_FindInPageResultParams& params); | 646 const AccessibilityHostMsg_FindInPageResultParams& params); |
| 647 void OnAccessibilityChildFrameHitTestResult( | |
| 648 const gfx::Point& point, int hit_obj_id); | |
|
nasko
2016/03/30 21:01:41
style: params on new line.
dmazzoni
2016/03/31 16:15:54
Done.
| |
| 645 void OnAccessibilitySnapshotResponse( | 649 void OnAccessibilitySnapshotResponse( |
| 646 int callback_id, | 650 int callback_id, |
| 647 const AXContentTreeUpdate& snapshot); | 651 const AXContentTreeUpdate& snapshot); |
| 648 void OnToggleFullscreen(bool enter_fullscreen); | 652 void OnToggleFullscreen(bool enter_fullscreen); |
| 649 void OnDidStartLoading(bool to_different_document); | 653 void OnDidStartLoading(bool to_different_document); |
| 650 void OnDidStopLoading(); | 654 void OnDidStopLoading(); |
| 651 void OnDidChangeLoadProgress(double load_progress); | 655 void OnDidChangeLoadProgress(double load_progress); |
| 652 void OnSerializeAsMHTMLResponse( | 656 void OnSerializeAsMHTMLResponse( |
| 653 int job_id, | 657 int job_id, |
| 654 bool success, | 658 bool success, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 882 int accessibility_reset_count_; | 886 int accessibility_reset_count_; |
| 883 | 887 |
| 884 // The last AXContentTreeData for this frame received from the RenderFrame. | 888 // The last AXContentTreeData for this frame received from the RenderFrame. |
| 885 AXContentTreeData ax_content_tree_data_; | 889 AXContentTreeData ax_content_tree_data_; |
| 886 | 890 |
| 887 // The mapping from callback id to corresponding callback for pending | 891 // The mapping from callback id to corresponding callback for pending |
| 888 // accessibility tree snapshot calls created by RequestAXTreeSnapshot. | 892 // accessibility tree snapshot calls created by RequestAXTreeSnapshot. |
| 889 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; | 893 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; |
| 890 | 894 |
| 891 // Callback when an event is received, for testing. | 895 // Callback when an event is received, for testing. |
| 892 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 896 base::Callback<void(RenderFrameHostImpl*, |
| 897 ui::AXEvent, | |
| 898 int)> accessibility_testing_callback_; | |
| 893 // The most recently received accessibility tree - for testing only. | 899 // The most recently received accessibility tree - for testing only. |
| 894 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 900 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
| 895 // Flag to not create a BrowserAccessibilityManager, for testing. If one | 901 // Flag to not create a BrowserAccessibilityManager, for testing. If one |
| 896 // already exists it will still be used. | 902 // already exists it will still be used. |
| 897 bool no_create_browser_accessibility_manager_for_testing_; | 903 bool no_create_browser_accessibility_manager_for_testing_; |
| 898 | 904 |
| 899 // PlzNavigate: Owns the stream used in navigations to store the body of the | 905 // PlzNavigate: Owns the stream used in navigations to store the body of the |
| 900 // response once it has started. | 906 // response once it has started. |
| 901 scoped_ptr<StreamHandle> stream_handle_; | 907 scoped_ptr<StreamHandle> stream_handle_; |
| 902 | 908 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 945 | 951 |
| 946 // NOTE: This must be the last member. | 952 // NOTE: This must be the last member. |
| 947 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 953 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 948 | 954 |
| 949 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 955 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 950 }; | 956 }; |
| 951 | 957 |
| 952 } // namespace content | 958 } // namespace content |
| 953 | 959 |
| 954 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 960 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |