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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
448 // renderer process, and the accessibility tree it sent can be | 448 // renderer process, and the accessibility tree it sent can be |
449 // retrieved using GetAXTreeForTesting(). | 449 // retrieved using GetAXTreeForTesting(). |
450 void SetAccessibilityCallbackForTesting( | 450 void SetAccessibilityCallbackForTesting( |
451 const base::Callback<void(ui::AXEvent, int)>& callback); | 451 const base::Callback<void(ui::AXEvent, int)>& callback); |
452 | 452 |
453 // Called when the metadata about the accessibility tree for this frame | 453 // Called when the metadata about the accessibility tree for this frame |
454 // changes due to a browser-side change, as opposed to due to an IPC from | 454 // changes due to a browser-side change, as opposed to due to an IPC from |
455 // a renderer. | 455 // a renderer. |
456 void UpdateAXTreeData(); | 456 void UpdateAXTreeData(); |
457 | 457 |
458 // Set the AX tree ID of the embedder RFHI, if this is a browser plugin guest. | |
459 void SetBrowserPluginEmbedderAXTreeID(AXTreeIDRegistry::AXTreeID ax_tree_id); | |
nasko
2016/03/29 21:35:44
nit: This is a simple setter method that is not pa
dmazzoni
2016/03/29 21:42:19
Done.
| |
460 | |
458 // Send a message to the render process to change text track style settings. | 461 // Send a message to the render process to change text track style settings. |
459 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params); | 462 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params); |
460 | 463 |
461 // Returns a snapshot of the accessibility tree received from the | 464 // Returns a snapshot of the accessibility tree received from the |
462 // renderer as of the last time an accessibility notification was | 465 // renderer as of the last time an accessibility notification was |
463 // received. | 466 // received. |
464 const ui::AXTree* GetAXTreeForTesting(); | 467 const ui::AXTree* GetAXTreeForTesting(); |
465 | 468 |
466 // Access the BrowserAccessibilityManager if it already exists. | 469 // Access the BrowserAccessibilityManager if it already exists. |
467 BrowserAccessibilityManager* browser_accessibility_manager() const { | 470 BrowserAccessibilityManager* browser_accessibility_manager() const { |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
874 // assigned) and a complete replacement accessibility tree. | 877 // assigned) and a complete replacement accessibility tree. |
875 int accessibility_reset_token_; | 878 int accessibility_reset_token_; |
876 | 879 |
877 // A count of the number of times we needed to reset accessibility, so | 880 // A count of the number of times we needed to reset accessibility, so |
878 // we don't keep trying to reset forever. | 881 // we don't keep trying to reset forever. |
879 int accessibility_reset_count_; | 882 int accessibility_reset_count_; |
880 | 883 |
881 // The last AXContentTreeData for this frame received from the RenderFrame. | 884 // The last AXContentTreeData for this frame received from the RenderFrame. |
882 AXContentTreeData ax_content_tree_data_; | 885 AXContentTreeData ax_content_tree_data_; |
883 | 886 |
887 // The AX tree ID of the embedder, if this is a browser plugin guest. | |
888 AXTreeIDRegistry::AXTreeID browser_plugin_embedder_ax_tree_id_; | |
889 | |
884 // The mapping from callback id to corresponding callback for pending | 890 // The mapping from callback id to corresponding callback for pending |
885 // accessibility tree snapshot calls created by RequestAXTreeSnapshot. | 891 // accessibility tree snapshot calls created by RequestAXTreeSnapshot. |
886 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; | 892 std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; |
887 | 893 |
888 // Callback when an event is received, for testing. | 894 // Callback when an event is received, for testing. |
889 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 895 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
890 // The most recently received accessibility tree - for testing only. | 896 // The most recently received accessibility tree - for testing only. |
891 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 897 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
892 // Flag to not create a BrowserAccessibilityManager, for testing. If one | 898 // Flag to not create a BrowserAccessibilityManager, for testing. If one |
893 // already exists it will still be used. | 899 // already exists it will still be used. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
942 | 948 |
943 // NOTE: This must be the last member. | 949 // NOTE: This must be the last member. |
944 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 950 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
945 | 951 |
946 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 952 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
947 }; | 953 }; |
948 | 954 |
949 } // namespace content | 955 } // namespace content |
950 | 956 |
951 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 957 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |