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

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

Issue 12210082: content: convert accessibility notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 const std::string& frame_tree); 415 const std::string& frame_tree);
416 416
417 void set_save_accessibility_tree_for_testing(bool save) { 417 void set_save_accessibility_tree_for_testing(bool save) {
418 save_accessibility_tree_for_testing_ = save; 418 save_accessibility_tree_for_testing_ = save;
419 } 419 }
420 420
421 const AccessibilityNodeData& accessibility_tree_for_testing() { 421 const AccessibilityNodeData& accessibility_tree_for_testing() {
422 return accessibility_tree_; 422 return accessibility_tree_;
423 } 423 }
424 424
425 // Set accessibility callbacks (only for testing).
jam 2013/02/14 00:39:01 nit: (only for testing). is redundant given the me
Paweł Hajdan Jr. 2013/02/14 09:28:11 Done.
426 void SetAccessibilityLayoutCompleteCallbackForTesting(
427 const base::Closure& callback);
428 void SetAccessibilityLoadCompleteCallbackForTesting(
429 const base::Closure& callback);
430
425 bool is_waiting_for_unload_ack_for_testing() { 431 bool is_waiting_for_unload_ack_for_testing() {
426 return is_waiting_for_unload_ack_; 432 return is_waiting_for_unload_ack_;
427 } 433 }
428 434
429 // Checks that the given renderer can request |url|, if not it sets it to 435 // Checks that the given renderer can request |url|, if not it sets it to
430 // about:blank. 436 // about:blank.
431 // empty_allowed must be set to false for navigations for security reasons. 437 // empty_allowed must be set to false for navigations for security reasons.
432 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, 438 static void FilterURL(ChildProcessSecurityPolicyImpl* policy,
433 const RenderProcessHost* process, 439 const RenderProcessHost* process,
434 bool empty_allowed, 440 bool empty_allowed,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 // the case of a cross-site transition ( = true). 651 // the case of a cross-site transition ( = true).
646 bool unload_ack_is_for_cross_site_transition_; 652 bool unload_ack_is_for_cross_site_transition_;
647 653
648 bool are_javascript_messages_suppressed_; 654 bool are_javascript_messages_suppressed_;
649 655
650 // The mapping of pending javascript calls created by 656 // The mapping of pending javascript calls created by
651 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding 657 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding
652 // callbacks. 658 // callbacks.
653 std::map<int, JavascriptResultCallback> javascript_callbacks_; 659 std::map<int, JavascriptResultCallback> javascript_callbacks_;
654 660
661 // Accessibility callbacks.
662 base::Closure accessibility_layout_callback_;
663 base::Closure accessibility_load_callback_;
664
655 // True if the render view can be shut down suddenly. 665 // True if the render view can be shut down suddenly.
656 bool sudden_termination_allowed_; 666 bool sudden_termination_allowed_;
657 667
658 // The session storage namespace to be used by the associated render view. 668 // The session storage namespace to be used by the associated render view.
659 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_; 669 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_;
660 670
661 // Whether the accessibility tree should be saved, for unit testing. 671 // Whether the accessibility tree should be saved, for unit testing.
662 bool save_accessibility_tree_for_testing_; 672 bool save_accessibility_tree_for_testing_;
663 673
664 // A JSON serialized representation of the frame tree for the current document 674 // A JSON serialized representation of the frame tree for the current document
(...skipping 27 matching lines...) Expand all
692 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 702 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
693 }; 703 };
694 704
695 #if defined(COMPILER_MSVC) 705 #if defined(COMPILER_MSVC)
696 #pragma warning(pop) 706 #pragma warning(pop)
697 #endif 707 #endif
698 708
699 } // namespace content 709 } // namespace content
700 710
701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 711 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698