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 | |
152 // Notifications from RenderWidget. | 149 // Notifications from RenderWidget. |
153 void WasHidden(); | 150 void WasHidden(); |
154 void WasShown(); | 151 void WasShown(); |
155 | 152 |
156 // Start/Stop loading notifications. | 153 // Start/Stop loading notifications. |
157 // TODO(nasko): Those are page-level methods at this time and come from | 154 // TODO(nasko): Those are page-level methods at this time and come from |
158 // WebViewClient. We should move them to be WebFrameClient calls and put | 155 // WebViewClient. We should move them to be WebFrameClient calls and put |
159 // logic in the browser side to balance starts/stops. | 156 // logic in the browser side to balance starts/stops. |
160 // |to_different_document| will be true unless the load is a fragment | 157 // |to_different_document| will be true unless the load is a fragment |
161 // navigation, or triggered by history.pushState/replaceState. | 158 // navigation, or triggered by history.pushState/replaceState. |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // Gets the focused element. If no such element exists then the element will | 474 // Gets the focused element. If no such element exists then the element will |
478 // be NULL. | 475 // be NULL. |
479 blink::WebElement GetFocusedElement(); | 476 blink::WebElement GetFocusedElement(); |
480 | 477 |
481 // IPC message handlers ------------------------------------------------------ | 478 // IPC message handlers ------------------------------------------------------ |
482 // | 479 // |
483 // The documentation for these functions should be in | 480 // The documentation for these functions should be in |
484 // content/common/*_messages.h for the message that the function is handling. | 481 // content/common/*_messages.h for the message that the function is handling. |
485 void OnBeforeUnload(); | 482 void OnBeforeUnload(); |
486 void OnSwapOut(int proxy_routing_id); | 483 void OnSwapOut(int proxy_routing_id); |
| 484 void OnStop(); |
487 void OnShowContextMenu(const gfx::Point& location); | 485 void OnShowContextMenu(const gfx::Point& location); |
488 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 486 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
489 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 487 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
490 unsigned action); | 488 unsigned action); |
491 void OnUndo(); | 489 void OnUndo(); |
492 void OnRedo(); | 490 void OnRedo(); |
493 void OnCut(); | 491 void OnCut(); |
494 void OnCopy(); | 492 void OnCopy(); |
495 void OnPaste(); | 493 void OnPaste(); |
496 void OnPasteAndMatchStyle(); | 494 void OnPasteAndMatchStyle(); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 RendererAccessibility* renderer_accessibility_; | 708 RendererAccessibility* renderer_accessibility_; |
711 | 709 |
712 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 710 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
713 | 711 |
714 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 712 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
715 }; | 713 }; |
716 | 714 |
717 } // namespace content | 715 } // namespace content |
718 | 716 |
719 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 717 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |