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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 virtual bool AccessibilityViewHasFocus() const OVERRIDE; | 98 virtual bool AccessibilityViewHasFocus() const OVERRIDE; |
99 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; | 99 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; |
100 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) | 100 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) |
101 const OVERRIDE; | 101 const OVERRIDE; |
102 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE; | 102 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE; |
103 virtual void AccessibilityFatalError() OVERRIDE; | 103 virtual void AccessibilityFatalError() OVERRIDE; |
104 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; | 104 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; |
105 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() | 105 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() |
106 OVERRIDE; | 106 OVERRIDE; |
107 | 107 |
| 108 bool CreateRenderFrame(int parent_routing_id); |
| 109 bool IsRenderFrameLive(); |
108 void Init(); | 110 void Init(); |
109 int routing_id() const { return routing_id_; } | 111 int routing_id() const { return routing_id_; } |
110 void OnCreateChildFrame(int new_routing_id, | 112 void OnCreateChildFrame(int new_routing_id, |
111 const std::string& frame_name); | 113 const std::string& frame_name); |
112 | 114 |
113 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 115 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
114 RenderFrameHostDelegate* delegate() { return delegate_; } | 116 RenderFrameHostDelegate* delegate() { return delegate_; } |
115 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 117 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
116 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in | 118 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in |
117 // the future, so update this accessor to return the right pointer. | 119 // the future, so update this accessor to return the right pointer. |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 366 |
365 // The mapping of pending JavaScript calls created by | 367 // The mapping of pending JavaScript calls created by |
366 // ExecuteJavaScript and their corresponding callbacks. | 368 // ExecuteJavaScript and their corresponding callbacks. |
367 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 369 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
368 | 370 |
369 // Map from notification_id to a callback to cancel them. | 371 // Map from notification_id to a callback to cancel them. |
370 std::map<int, base::Closure> cancel_notification_callbacks_; | 372 std::map<int, base::Closure> cancel_notification_callbacks_; |
371 | 373 |
372 int routing_id_; | 374 int routing_id_; |
373 bool is_swapped_out_; | 375 bool is_swapped_out_; |
| 376 bool renderer_initialized_; |
374 | 377 |
375 // When the last BeforeUnload message was sent. | 378 // When the last BeforeUnload message was sent. |
376 base::TimeTicks send_before_unload_start_time_; | 379 base::TimeTicks send_before_unload_start_time_; |
377 | 380 |
378 ServiceRegistryImpl service_registry_; | 381 ServiceRegistryImpl service_registry_; |
379 | 382 |
380 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 383 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
381 | 384 |
382 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 385 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
383 | 386 |
384 // Callback when an event is received, for testing. | 387 // Callback when an event is received, for testing. |
385 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 388 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
386 // The most recently received accessibility tree - for testing only. | 389 // The most recently received accessibility tree - for testing only. |
387 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 390 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
388 | 391 |
389 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 392 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
390 }; | 393 }; |
391 | 394 |
392 } // namespace content | 395 } // namespace content |
393 | 396 |
394 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 397 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |