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

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

Issue 116293005: Refactor content/ to use ui::AXNodeData instead of blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get rid of typedefs in browser_accessibility.cc, rebase Created 6 years, 11 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/process/kill.h" 15 #include "base/process/kill.h"
16 #include "content/browser/renderer_host/render_widget_host_impl.h" 16 #include "content/browser/renderer_host/render_widget_host_impl.h"
17 #include "content/browser/site_instance_impl.h" 17 #include "content/browser/site_instance_impl.h"
18 #include "content/common/accessibility_node_data.h"
19 #include "content/common/drag_event_source_info.h" 18 #include "content/common/drag_event_source_info.h"
20 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
22 #include "content/public/common/javascript_message_type.h" 21 #include "content/public/common/javascript_message_type.h"
23 #include "content/public/common/page_transition_types.h" 22 #include "content/public/common/page_transition_types.h"
24 #include "content/public/common/window_container_type.h" 23 #include "content/public/common/window_container_type.h"
25 #include "net/base/load_states.h" 24 #include "net/base/load_states.h"
26 #include "third_party/WebKit/public/web/WebAXEnums.h" 25 #include "third_party/WebKit/public/web/WebAXEnums.h"
27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 26 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
28 #include "third_party/WebKit/public/web/WebPopupType.h" 27 #include "third_party/WebKit/public/web/WebPopupType.h"
29 #include "third_party/WebKit/public/web/WebTextDirection.h" 28 #include "third_party/WebKit/public/web/WebTextDirection.h"
30 #include "third_party/skia/include/core/SkColor.h" 29 #include "third_party/skia/include/core/SkColor.h"
30 #include "ui/accessibility/ax_node_data.h"
31 #include "ui/base/window_open_disposition.h" 31 #include "ui/base/window_open_disposition.h"
32 32
33 class SkBitmap; 33 class SkBitmap;
34 class ViewMsg_Navigate; 34 class ViewMsg_Navigate;
35 struct AccessibilityHostMsg_EventParams; 35 struct AccessibilityHostMsg_EventParams;
36 struct AccessibilityHostMsg_LocationChangeParams; 36 struct AccessibilityHostMsg_LocationChangeParams;
37 struct MediaPlayerAction; 37 struct MediaPlayerAction;
38 struct ViewHostMsg_CreateWindow_Params; 38 struct ViewHostMsg_CreateWindow_Params;
39 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 39 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
40 struct ViewHostMsg_OpenURL_Params; 40 struct ViewHostMsg_OpenURL_Params;
41 struct ViewHostMsg_SelectionBounds_Params; 41 struct ViewHostMsg_SelectionBounds_Params;
42 struct ViewHostMsg_ShowPopup_Params; 42 struct ViewHostMsg_ShowPopup_Params;
43 struct ViewMsg_Navigate_Params; 43 struct ViewMsg_Navigate_Params;
44 struct ViewMsg_PostMessage_Params; 44 struct ViewMsg_PostMessage_Params;
45 struct ViewMsg_StopFinding_Params; 45 struct ViewMsg_StopFinding_Params;
46 46
47 namespace base { 47 namespace base {
48 class ListValue; 48 class ListValue;
49 } 49 }
50 50
51 namespace gfx { 51 namespace gfx {
52 class Range; 52 class Range;
53 } 53 }
54 54
55 namespace ui { 55 namespace ui {
56 struct SelectedFileInfo; 56 struct SelectedFileInfo;
57 class AXTree;
jam 2014/01/06 21:51:53 nit: class before struct
dmazzoni 2014/01/06 22:25:53 Done.
57 } 58 }
58 59
59 namespace content { 60 namespace content {
60 61
61 class BrowserMediaPlayerManager; 62 class BrowserMediaPlayerManager;
62 class ChildProcessSecurityPolicyImpl; 63 class ChildProcessSecurityPolicyImpl;
63 class PageState; 64 class PageState;
64 class RenderWidgetHostDelegate; 65 class RenderWidgetHostDelegate;
65 class SessionStorageNamespace; 66 class SessionStorageNamespace;
66 class SessionStorageNamespaceImpl; 67 class SessionStorageNamespaceImpl;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 } 431 }
431 432
432 // Set the opener to null in the renderer process. 433 // Set the opener to null in the renderer process.
433 void DisownOpener(); 434 void DisownOpener();
434 435
435 // Turn on accessibility testing. The given callback will be run 436 // Turn on accessibility testing. The given callback will be run
436 // every time an accessibility notification is received from the 437 // every time an accessibility notification is received from the
437 // renderer process, and the accessibility tree it sent can be 438 // renderer process, and the accessibility tree it sent can be
438 // retrieved using accessibility_tree_for_testing(). 439 // retrieved using accessibility_tree_for_testing().
439 void SetAccessibilityCallbackForTesting( 440 void SetAccessibilityCallbackForTesting(
440 const base::Callback<void(blink::WebAXEvent)>& callback); 441 const base::Callback<void(ui::AXEvent)>& callback);
441 442
442 // Only valid if SetAccessibilityCallbackForTesting was called and 443 // Only valid if SetAccessibilityCallbackForTesting was called and
443 // the callback was run at least once. Returns a snapshot of the 444 // the callback was run at least once. Returns a snapshot of the
444 // accessibility tree received from the renderer as of the last time 445 // accessibility tree received from the renderer as of the last time
445 // a LoadComplete or LayoutComplete accessibility notification was received. 446 // an accessibility notification was received.
446 const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() { 447 const ui::AXTree& ax_tree_for_testing() {
447 return accessibility_tree_; 448 CHECK(ax_tree_.get());
449 return *ax_tree_.get();
448 } 450 }
449 451
450 // Set accessibility callbacks. 452 // Set accessibility callbacks.
451 void SetAccessibilityLayoutCompleteCallbackForTesting( 453 void SetAccessibilityLayoutCompleteCallbackForTesting(
452 const base::Closure& callback); 454 const base::Closure& callback);
453 void SetAccessibilityLoadCompleteCallbackForTesting( 455 void SetAccessibilityLoadCompleteCallbackForTesting(
454 const base::Closure& callback); 456 const base::Closure& callback);
455 void SetAccessibilityOtherCallbackForTesting( 457 void SetAccessibilityOtherCallbackForTesting(
456 const base::Closure& callback); 458 const base::Closure& callback);
457 459
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 bool unload_ack_is_for_cross_site_transition_; 688 bool unload_ack_is_for_cross_site_transition_;
687 689
688 bool are_javascript_messages_suppressed_; 690 bool are_javascript_messages_suppressed_;
689 691
690 // The mapping of pending javascript calls created by 692 // The mapping of pending javascript calls created by
691 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding 693 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding
692 // callbacks. 694 // callbacks.
693 std::map<int, JavascriptResultCallback> javascript_callbacks_; 695 std::map<int, JavascriptResultCallback> javascript_callbacks_;
694 696
695 // Accessibility callback for testing. 697 // Accessibility callback for testing.
696 base::Callback<void(blink::WebAXEvent)> accessibility_testing_callback_; 698 base::Callback<void(ui::AXEvent)> accessibility_testing_callback_;
697 699
698 // The most recently received accessibility tree - for testing only. 700 // The most recently received accessibility tree - for testing only.
699 AccessibilityNodeDataTreeNode accessibility_tree_; 701 scoped_ptr<ui::AXTree> ax_tree_;
700 702
701 // True if the render view can be shut down suddenly. 703 // True if the render view can be shut down suddenly.
702 bool sudden_termination_allowed_; 704 bool sudden_termination_allowed_;
703 705
704 // The termination status of the last render view that terminated. 706 // The termination status of the last render view that terminated.
705 base::TerminationStatus render_view_termination_status_; 707 base::TerminationStatus render_view_termination_status_;
706 708
707 // When the last ShouldClose message was sent. 709 // When the last ShouldClose message was sent.
708 base::TimeTicks send_should_close_start_time_; 710 base::TimeTicks send_should_close_start_time_;
709 711
710 // Set to true if we requested the on screen keyboard to be displayed. 712 // Set to true if we requested the on screen keyboard to be displayed.
711 bool virtual_keyboard_requested_; 713 bool virtual_keyboard_requested_;
712 714
713 #if defined(OS_ANDROID) 715 #if defined(OS_ANDROID)
714 // Manages all the android mediaplayer objects and handling IPCs for video. 716 // Manages all the android mediaplayer objects and handling IPCs for video.
715 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_; 717 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_;
716 #endif 718 #endif
717 719
718 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 720 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
719 }; 721 };
720 722
721 #if defined(COMPILER_MSVC) 723 #if defined(COMPILER_MSVC)
722 #pragma warning(pop) 724 #pragma warning(pop)
723 #endif 725 #endif
724 726
725 } // namespace content 727 } // namespace content
726 728
727 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 729 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698