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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 370 |
369 // The mapping of pending JavaScript calls created by | 371 // The mapping of pending JavaScript calls created by |
370 // ExecuteJavaScript and their corresponding callbacks. | 372 // ExecuteJavaScript and their corresponding callbacks. |
371 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 373 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
372 | 374 |
373 // Map from notification_id to a callback to cancel them. | 375 // Map from notification_id to a callback to cancel them. |
374 std::map<int, base::Closure> cancel_notification_callbacks_; | 376 std::map<int, base::Closure> cancel_notification_callbacks_; |
375 | 377 |
376 int routing_id_; | 378 int routing_id_; |
377 bool is_swapped_out_; | 379 bool is_swapped_out_; |
| 380 bool renderer_initialized_; |
378 | 381 |
379 // When the last BeforeUnload message was sent. | 382 // When the last BeforeUnload message was sent. |
380 base::TimeTicks send_before_unload_start_time_; | 383 base::TimeTicks send_before_unload_start_time_; |
381 | 384 |
382 ServiceRegistryImpl service_registry_; | 385 ServiceRegistryImpl service_registry_; |
383 | 386 |
384 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 387 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
385 | 388 |
386 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 389 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
387 | 390 |
388 // Callback when an event is received, for testing. | 391 // Callback when an event is received, for testing. |
389 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 392 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
390 // The most recently received accessibility tree - for testing only. | 393 // The most recently received accessibility tree - for testing only. |
391 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 394 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
392 | 395 |
393 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 396 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
394 }; | 397 }; |
395 | 398 |
396 } // namespace content | 399 } // namespace content |
397 | 400 |
398 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 401 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |