| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual bool AccessibilityViewHasFocus() const OVERRIDE; | 104 virtual bool AccessibilityViewHasFocus() const OVERRIDE; |
| 105 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; | 105 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; |
| 106 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) | 106 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) |
| 107 const OVERRIDE; | 107 const OVERRIDE; |
| 108 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE; | 108 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE; |
| 109 virtual void AccessibilityFatalError() OVERRIDE; | 109 virtual void AccessibilityFatalError() OVERRIDE; |
| 110 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; | 110 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; |
| 111 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() | 111 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() |
| 112 OVERRIDE; | 112 OVERRIDE; |
| 113 virtual BrowserAccessibilityManager* AccessibilityGetChildFrame( | 113 virtual BrowserAccessibilityManager* AccessibilityGetChildFrame( |
| 114 int64 frame_tree_node_id) OVERRIDE; | 114 int accessibility_node_id) OVERRIDE; |
| 115 virtual BrowserAccessibilityManager* AccessibilityGetParentFrame() OVERRIDE; | 115 virtual BrowserAccessibility* AccessibilityGetParentFrame() OVERRIDE; |
| 116 | 116 |
| 117 bool CreateRenderFrame(int parent_routing_id); | 117 bool CreateRenderFrame(int parent_routing_id); |
| 118 bool IsRenderFrameLive(); | 118 bool IsRenderFrameLive(); |
| 119 void Init(); | 119 void Init(); |
| 120 int routing_id() const { return routing_id_; } | 120 int routing_id() const { return routing_id_; } |
| 121 void OnCreateChildFrame(int new_routing_id, | 121 void OnCreateChildFrame(int new_routing_id, |
| 122 const std::string& frame_name); | 122 const std::string& frame_name); |
| 123 | 123 |
| 124 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 124 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
| 125 RenderFrameHostDelegate* delegate() { return delegate_; } | 125 RenderFrameHostDelegate* delegate() { return delegate_; } |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 #endif | 372 #endif |
| 373 | 373 |
| 374 // Returns whether the given URL is allowed to commit in the current process. | 374 // Returns whether the given URL is allowed to commit in the current process. |
| 375 // This is a more conservative check than RenderProcessHost::FilterURL, since | 375 // This is a more conservative check than RenderProcessHost::FilterURL, since |
| 376 // it will be used to kill processes that commit unauthorized URLs. | 376 // it will be used to kill processes that commit unauthorized URLs. |
| 377 bool CanCommitURL(const GURL& url); | 377 bool CanCommitURL(const GURL& url); |
| 378 | 378 |
| 379 void PlatformNotificationPermissionRequestDone( | 379 void PlatformNotificationPermissionRequestDone( |
| 380 int request_id, blink::WebNotificationPermission permission); | 380 int request_id, blink::WebNotificationPermission permission); |
| 381 | 381 |
| 382 // Update the the singleton FrameAccessibility instance with a map |
| 383 // from accessibility node id to the frame routing id of a cross-process |
| 384 // iframe. |
| 385 void UpdateCrossProcessIframeAccessibility( |
| 386 const std::map<int32, int> node_to_frame_routing_id_map); |
| 387 |
| 388 // Update the the singleton FrameAccessibility instance with a map |
| 389 // from accessibility node id to the browser plugin instance id of a |
| 390 // guest WebContents. |
| 391 void UpdateGuestFrameAccessibility( |
| 392 const std::map<int32, int> node_to_browser_plugin_instance_id_map); |
| 393 |
| 382 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 394 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| 383 // refcount that calls Shutdown when it reaches zero. This allows each | 395 // refcount that calls Shutdown when it reaches zero. This allows each |
| 384 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 396 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
| 385 // we have a RenderViewHost for each RenderFrameHost. | 397 // we have a RenderViewHost for each RenderFrameHost. |
| 386 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 398 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 387 // some form of page context. | 399 // some form of page context. |
| 388 RenderViewHostImpl* render_view_host_; | 400 RenderViewHostImpl* render_view_host_; |
| 389 | 401 |
| 390 RenderFrameHostDelegate* delegate_; | 402 RenderFrameHostDelegate* delegate_; |
| 391 | 403 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 464 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
| 453 // The most recently received accessibility tree - for testing only. | 465 // The most recently received accessibility tree - for testing only. |
| 454 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 466 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
| 455 | 467 |
| 456 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 468 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 457 }; | 469 }; |
| 458 | 470 |
| 459 } // namespace content | 471 } // namespace content |
| 460 | 472 |
| 461 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 473 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |