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