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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // This is called right after creation with the WebLocalFrame for this | 141 // This is called right after creation with the WebLocalFrame for this |
142 // RenderFrame. It must be called before Initialize. | 142 // RenderFrame. It must be called before Initialize. |
143 void SetWebFrame(blink::WebLocalFrame* web_frame); | 143 void SetWebFrame(blink::WebLocalFrame* web_frame); |
144 | 144 |
145 // This method must be called after the frame has been added to the frame | 145 // This method must be called after the frame has been added to the frame |
146 // tree. It creates all objects that depend on the frame being at its proper | 146 // tree. It creates all objects that depend on the frame being at its proper |
147 // spot. | 147 // spot. |
148 void Initialize(); | 148 void Initialize(); |
149 | 149 |
150 // Notification from RenderView. | |
151 virtual void OnStop(); | |
152 | |
153 // Notifications from RenderWidget. | 150 // Notifications from RenderWidget. |
154 void WasHidden(); | 151 void WasHidden(); |
155 void WasShown(); | 152 void WasShown(); |
156 | 153 |
157 // Start/Stop loading notifications. | 154 // Start/Stop loading notifications. |
158 // TODO(nasko): Those are page-level methods at this time and come from | 155 // TODO(nasko): Those are page-level methods at this time and come from |
159 // WebViewClient. We should move them to be WebFrameClient calls and put | 156 // WebViewClient. We should move them to be WebFrameClient calls and put |
160 // logic in the browser side to balance starts/stops. | 157 // logic in the browser side to balance starts/stops. |
161 // |to_different_document| will be true unless the load is a fragment | 158 // |to_different_document| will be true unless the load is a fragment |
162 // navigation, or triggered by history.pushState/replaceState. | 159 // navigation, or triggered by history.pushState/replaceState. |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 // Gets the focused element. If no such element exists then the element will | 487 // Gets the focused element. If no such element exists then the element will |
491 // be NULL. | 488 // be NULL. |
492 blink::WebElement GetFocusedElement(); | 489 blink::WebElement GetFocusedElement(); |
493 | 490 |
494 // IPC message handlers ------------------------------------------------------ | 491 // IPC message handlers ------------------------------------------------------ |
495 // | 492 // |
496 // The documentation for these functions should be in | 493 // The documentation for these functions should be in |
497 // content/common/*_messages.h for the message that the function is handling. | 494 // content/common/*_messages.h for the message that the function is handling. |
498 void OnBeforeUnload(); | 495 void OnBeforeUnload(); |
499 void OnSwapOut(int proxy_routing_id); | 496 void OnSwapOut(int proxy_routing_id); |
| 497 void OnStop(); |
500 void OnShowContextMenu(const gfx::Point& location); | 498 void OnShowContextMenu(const gfx::Point& location); |
501 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); | 499 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); |
502 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, | 500 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, |
503 unsigned action); | 501 unsigned action); |
504 void OnUndo(); | 502 void OnUndo(); |
505 void OnRedo(); | 503 void OnRedo(); |
506 void OnCut(); | 504 void OnCut(); |
507 void OnCopy(); | 505 void OnCopy(); |
508 void OnPaste(); | 506 void OnPaste(); |
509 void OnPasteAndMatchStyle(); | 507 void OnPasteAndMatchStyle(); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 #endif | 731 #endif |
734 | 732 |
735 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 733 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
736 | 734 |
737 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 735 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
738 }; | 736 }; |
739 | 737 |
740 } // namespace content | 738 } // namespace content |
741 | 739 |
742 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 740 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |