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

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

Issue 23651003: Use Blink accessibility enums in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile errors Created 7 years, 3 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/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process/kill.h" 16 #include "base/process/kill.h"
17 #include "content/browser/renderer_host/render_frame_host_impl.h" 17 #include "content/browser/renderer_host/render_frame_host_impl.h"
18 #include "content/browser/renderer_host/render_widget_host_impl.h" 18 #include "content/browser/renderer_host/render_widget_host_impl.h"
19 #include "content/browser/site_instance_impl.h" 19 #include "content/browser/site_instance_impl.h"
20 #include "content/common/accessibility_node_data.h" 20 #include "content/common/accessibility_node_data.h"
aboxhall 2013/08/29 00:59:06 Remove?
dmazzoni 2013/08/29 04:47:15 Used.
21 #include "content/common/accessibility_notification.h"
22 #include "content/common/drag_event_source_info.h" 21 #include "content/common/drag_event_source_info.h"
23 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
24 #include "content/public/browser/render_view_host.h" 23 #include "content/public/browser/render_view_host.h"
25 #include "content/public/common/javascript_message_type.h" 24 #include "content/public/common/javascript_message_type.h"
26 #include "content/public/common/window_container_type.h" 25 #include "content/public/common/window_container_type.h"
27 #include "net/base/load_states.h" 26 #include "net/base/load_states.h"
28 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/WebKit/public/web/WebAXEnums.h"
29 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 28 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
30 #include "third_party/WebKit/public/web/WebPopupType.h" 29 #include "third_party/WebKit/public/web/WebPopupType.h"
31 #include "third_party/WebKit/public/web/WebTextDirection.h" 30 #include "third_party/WebKit/public/web/WebTextDirection.h"
31 #include "third_party/skia/include/core/SkColor.h"
32 #include "ui/base/window_open_disposition.h" 32 #include "ui/base/window_open_disposition.h"
33 33
34 class SkBitmap; 34 class SkBitmap;
35 class ViewMsg_Navigate; 35 class ViewMsg_Navigate;
36 struct AccessibilityHostMsg_NotificationParams; 36 struct AccessibilityHostMsg_EventParams;
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
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 412 }
413 413
414 // Set the opener to null in the renderer process. 414 // Set the opener to null in the renderer process.
415 void DisownOpener(); 415 void DisownOpener();
416 416
417 // Turn on accessibility testing. The given callback will be run 417 // Turn on accessibility testing. The given callback will be run
418 // every time an accessibility notification is received from the 418 // every time an accessibility notification is received from the
419 // renderer process, and the accessibility tree it sent can be 419 // renderer process, and the accessibility tree it sent can be
420 // retrieved using accessibility_tree_for_testing(). 420 // retrieved using accessibility_tree_for_testing().
421 void SetAccessibilityCallbackForTesting( 421 void SetAccessibilityCallbackForTesting(
422 const base::Callback<void(AccessibilityNotification)>& callback); 422 const base::Callback<void(WebKit::WebAXEvent)>& callback);
423 423
424 // Only valid if SetAccessibilityCallbackForTesting was called and 424 // Only valid if SetAccessibilityCallbackForTesting was called and
425 // the callback was run at least once. Returns a snapshot of the 425 // the callback was run at least once. Returns a snapshot of the
426 // accessibility tree received from the renderer as of the last time 426 // accessibility tree received from the renderer as of the last time
427 // a LoadComplete or LayoutComplete accessibility notification was received. 427 // a LoadComplete or LayoutComplete accessibility notification was received.
428 const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() { 428 const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() {
429 return accessibility_tree_; 429 return accessibility_tree_;
430 } 430 }
431 431
432 // Set accessibility callbacks. 432 // Set accessibility callbacks.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 const string16& source_id, 558 const string16& source_id,
559 const string16& stack_trace); 559 const string16& stack_trace);
560 void OnUpdateInspectorSetting(const std::string& key, 560 void OnUpdateInspectorSetting(const std::string& key,
561 const std::string& value); 561 const std::string& value);
562 void OnShouldCloseACK( 562 void OnShouldCloseACK(
563 bool proceed, 563 bool proceed,
564 const base::TimeTicks& renderer_before_unload_start_time, 564 const base::TimeTicks& renderer_before_unload_start_time,
565 const base::TimeTicks& renderer_before_unload_end_time); 565 const base::TimeTicks& renderer_before_unload_end_time);
566 void OnClosePageACK(); 566 void OnClosePageACK();
567 void OnSwapOutACK(); 567 void OnSwapOutACK();
568 void OnAccessibilityNotifications( 568 void OnAccessibilityEvents(
569 const std::vector<AccessibilityHostMsg_NotificationParams>& params); 569 const std::vector<AccessibilityHostMsg_EventParams>& params);
570 void OnScriptEvalResponse(int id, const base::ListValue& result); 570 void OnScriptEvalResponse(int id, const base::ListValue& result);
571 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); 571 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url);
572 void OnRequestDesktopNotificationPermission(const GURL& origin, 572 void OnRequestDesktopNotificationPermission(const GURL& origin,
573 int callback_id); 573 int callback_id);
574 void OnShowDesktopNotification( 574 void OnShowDesktopNotification(
575 const ShowDesktopNotificationHostMsgParams& params); 575 const ShowDesktopNotificationHostMsgParams& params);
576 void OnCancelDesktopNotification(int notification_id); 576 void OnCancelDesktopNotification(int notification_id);
577 void OnRunFileChooser(const FileChooserParams& params); 577 void OnRunFileChooser(const FileChooserParams& params);
578 void OnDidAccessInitialDocument(); 578 void OnDidAccessInitialDocument();
579 void OnDomOperationResponse(const std::string& json_string, 579 void OnDomOperationResponse(const std::string& json_string,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 bool unload_ack_is_for_cross_site_transition_; 674 bool unload_ack_is_for_cross_site_transition_;
675 675
676 bool are_javascript_messages_suppressed_; 676 bool are_javascript_messages_suppressed_;
677 677
678 // The mapping of pending javascript calls created by 678 // The mapping of pending javascript calls created by
679 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding 679 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding
680 // callbacks. 680 // callbacks.
681 std::map<int, JavascriptResultCallback> javascript_callbacks_; 681 std::map<int, JavascriptResultCallback> javascript_callbacks_;
682 682
683 // Accessibility callback for testing. 683 // Accessibility callback for testing.
684 base::Callback<void(AccessibilityNotification)> 684 base::Callback<void(WebKit::WebAXEvent)> accessibility_testing_callback_;
685 accessibility_testing_callback_;
686 685
687 // The most recently received accessibility tree - for testing only. 686 // The most recently received accessibility tree - for testing only.
688 AccessibilityNodeDataTreeNode accessibility_tree_; 687 AccessibilityNodeDataTreeNode accessibility_tree_;
689 688
690 // True if the render view can be shut down suddenly. 689 // True if the render view can be shut down suddenly.
691 bool sudden_termination_allowed_; 690 bool sudden_termination_allowed_;
692 691
693 // The termination status of the last render view that terminated. 692 // The termination status of the last render view that terminated.
694 base::TerminationStatus render_view_termination_status_; 693 base::TerminationStatus render_view_termination_status_;
695 694
(...skipping 12 matching lines...) Expand all
708 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 707 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
709 }; 708 };
710 709
711 #if defined(COMPILER_MSVC) 710 #if defined(COMPILER_MSVC)
712 #pragma warning(pop) 711 #pragma warning(pop)
713 #endif 712 #endif
714 713
715 } // namespace content 714 } // namespace content
716 715
717 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698