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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 12212188: Revert "content: convert accessibility notifications to callbacks" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Set the opener to null in the renderer process. 407 // Set the opener to null in the renderer process.
408 void DisownOpener(); 408 void DisownOpener();
409 409
410 // Updates the frame tree for this RVH and sends an IPC down to the renderer 410 // Updates the frame tree for this RVH and sends an IPC down to the renderer
411 // process to keep them in sync. For more details, see the comments on 411 // process to keep them in sync. For more details, see the comments on
412 // ViewHostMsg_FrameTreeUpdated. 412 // ViewHostMsg_FrameTreeUpdated.
413 void UpdateFrameTree(int process_id, 413 void UpdateFrameTree(int process_id,
414 int route_id, 414 int route_id,
415 const std::string& frame_tree); 415 const std::string& frame_tree);
416 416
417 // Set accessibility callbacks.
418 void SetAccessibilityLayoutCompleteCallbackForTesting(
419 const base::Closure& callback);
420 void SetAccessibilityLoadCompleteCallbackForTesting(
421 const base::Closure& callback);
422
423 void set_save_accessibility_tree_for_testing(bool save) { 417 void set_save_accessibility_tree_for_testing(bool save) {
424 save_accessibility_tree_for_testing_ = save; 418 save_accessibility_tree_for_testing_ = save;
425 } 419 }
426 420
427 const AccessibilityNodeData& accessibility_tree_for_testing() { 421 const AccessibilityNodeData& accessibility_tree_for_testing() {
428 return accessibility_tree_; 422 return accessibility_tree_;
429 } 423 }
430 424
431 bool is_waiting_for_unload_ack_for_testing() { 425 bool is_waiting_for_unload_ack_for_testing() {
432 return is_waiting_for_unload_ack_; 426 return is_waiting_for_unload_ack_;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 // the case of a cross-site transition ( = true). 645 // the case of a cross-site transition ( = true).
652 bool unload_ack_is_for_cross_site_transition_; 646 bool unload_ack_is_for_cross_site_transition_;
653 647
654 bool are_javascript_messages_suppressed_; 648 bool are_javascript_messages_suppressed_;
655 649
656 // The mapping of pending javascript calls created by 650 // The mapping of pending javascript calls created by
657 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding 651 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding
658 // callbacks. 652 // callbacks.
659 std::map<int, JavascriptResultCallback> javascript_callbacks_; 653 std::map<int, JavascriptResultCallback> javascript_callbacks_;
660 654
661 // Accessibility callbacks.
662 base::Closure accessibility_layout_callback_;
663 base::Closure accessibility_load_callback_;
664
665 // True if the render view can be shut down suddenly. 655 // True if the render view can be shut down suddenly.
666 bool sudden_termination_allowed_; 656 bool sudden_termination_allowed_;
667 657
668 // The session storage namespace to be used by the associated render view. 658 // The session storage namespace to be used by the associated render view.
669 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_; 659 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_;
670 660
671 // Whether the accessibility tree should be saved, for unit testing. 661 // Whether the accessibility tree should be saved, for unit testing.
672 bool save_accessibility_tree_for_testing_; 662 bool save_accessibility_tree_for_testing_;
673 663
674 // A JSON serialized representation of the frame tree for the current document 664 // A JSON serialized representation of the frame tree for the current document
(...skipping 27 matching lines...) Expand all
702 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 692 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
703 }; 693 };
704 694
705 #if defined(COMPILER_MSVC) 695 #if defined(COMPILER_MSVC)
706 #pragma warning(pop) 696 #pragma warning(pop)
707 #endif 697 #endif
708 698
709 } // namespace content 699 } // namespace content
710 700
711 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698