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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // This is called right after creation with the WebLocalFrame for this | 140 // This is called right after creation with the WebLocalFrame for this |
141 // RenderFrame. It must be called before Initialize. | 141 // RenderFrame. It must be called before Initialize. |
142 void SetWebFrame(blink::WebLocalFrame* web_frame); | 142 void SetWebFrame(blink::WebLocalFrame* web_frame); |
143 | 143 |
144 // This method must be called after the frame has been added to the frame | 144 // This method must be called after the frame has been added to the frame |
145 // tree. It creates all objects that depend on the frame being at its proper | 145 // tree. It creates all objects that depend on the frame being at its proper |
146 // spot. | 146 // spot. |
147 void Initialize(); | 147 void Initialize(); |
148 | 148 |
| 149 // Notification from RenderView. |
| 150 virtual void OnStop(); |
| 151 |
149 // Notifications from RenderWidget. | 152 // Notifications from RenderWidget. |
150 void WasHidden(); | 153 void WasHidden(); |
151 void WasShown(); | 154 void WasShown(); |
152 | 155 |
153 // Start/Stop loading notifications. | 156 // Start/Stop loading notifications. |
154 // TODO(nasko): Those are page-level methods at this time and come from | 157 // TODO(nasko): Those are page-level methods at this time and come from |
155 // WebViewClient. We should move them to be WebFrameClient calls and put | 158 // WebViewClient. We should move them to be WebFrameClient calls and put |
156 // logic in the browser side to balance starts/stops. | 159 // logic in the browser side to balance starts/stops. |
157 // |to_different_document| will be true unless the load is a fragment | 160 // |to_different_document| will be true unless the load is a fragment |
158 // navigation, or triggered by history.pushState/replaceState. | 161 // navigation, or triggered by history.pushState/replaceState. |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // Gets the focused element. If no such element exists then the element will | 477 // Gets the focused element. If no such element exists then the element will |
475 // be NULL. | 478 // be NULL. |
476 blink::WebElement GetFocusedElement(); | 479 blink::WebElement GetFocusedElement(); |
477 | 480 |
478 // IPC message handlers ------------------------------------------------------ | 481 // IPC message handlers ------------------------------------------------------ |
479 // | 482 // |
480 // The documentation for these functions should be in | 483 // The documentation for these functions should be in |
481 // content/common/*_messages.h for the message that the function is handling. | 484 // content/common/*_messages.h for the message that the function is handling. |
482 void OnBeforeUnload(); | 485 void OnBeforeUnload(); |
483 void OnSwapOut(int proxy_routing_id); | 486 void OnSwapOut(int proxy_routing_id); |
484 void OnStop(); | |
485 void OnShowContextMenu(const gfx::Point& location); | 487 void OnShowContextMenu(const gfx::Point& location); |
486 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 488 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
487 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 489 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
488 unsigned action); | 490 unsigned action); |
489 void OnUndo(); | 491 void OnUndo(); |
490 void OnRedo(); | 492 void OnRedo(); |
491 void OnCut(); | 493 void OnCut(); |
492 void OnCopy(); | 494 void OnCopy(); |
493 void OnPaste(); | 495 void OnPaste(); |
494 void OnPasteAndMatchStyle(); | 496 void OnPasteAndMatchStyle(); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 RendererAccessibility* renderer_accessibility_; | 710 RendererAccessibility* renderer_accessibility_; |
709 | 711 |
710 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 712 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
711 | 713 |
712 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 714 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
713 }; | 715 }; |
714 | 716 |
715 } // namespace content | 717 } // namespace content |
716 | 718 |
717 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 719 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |